Matlab builder JA: parse java string to matlab cell

Hi all,

I'm building a java swing based GUI for my Matlab application. As such, user input is available as text strings, for example "{[0; 0], [3.5 0; 0 2]}" (mean vector and covariance matrix of a 2D Gaussian). 

The user input will be passed to the compiled matlab method as a MWCellArray. Problem is how do a convert (parse) the above string into a  MWCellArray? 
From its javadoc
the following  method is available:
 java.lang.String 	toString() Returns a string representation of this array,
but the reverse method is not. 

Evidently, parsing a string like the one above is a  non trivial task and I'm loath to attempt writing one by myself. I would be very thankful if someone can point me to the required parser implementation. Matlab itself is carrying out this task all the time, perhaps it is possible to access Matlab's own parser.

Help much appreciated,
10/7/2009 5:27:01 AM
comp.soft-sys.matlab 211264 articles. 26 followers. lunamoonmoon (257) is leader. Post Follow

1 Replies

Similar Articles

[PageSpeed] 6

did you solve the problem?

MWCellArray Rulelist_Jtable=new MWCellArray(49,3);
for (int i=0;i<val.length;i++){
                                for (int j=0;j<val.length;j++){

Myeclipse points out that the method set(int[],Object) is of wrong using with the parameter 'Object'.     
9/20/2016 6:58:03 AM

Web resources about - Matlab builder JA: parse java string to matlab cell - comp.soft-sys.matlab

Associated Builders and Contractors - Wikipedia, the free encyclopedia
^ "ABC Strategic Partnership - Maxwell Systems" . Maxwell Systems, Inc . Retrieved July 10, 2013 . Text is available under the Creative Commons ...

Cheezburger Builder Turns Facebook Photos Into Memes
... the Internet love using Cheezburger to turn photos into memes , but now users can connect their Facebook accounts into the Cheezburger Builder ...

JetSet Secrets, MeuChip, Cinemagram, Jurassic Park Builder and more on this week’s emerging Facebook ...
... Deluxe 790,000 +90,000 + 13% 10. High 5 Casino 318,775 +81,001 + 34% 11. Talkatone 240,000 +80,000 + 50% 12. Jurassic Park Builder ...

Dream Builders (@NBCDreamBuilder) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Business Builders Community
Business Builders is a group for professionals who are business and entrepreneur minded who understand the power and value of networking to grow ...

Retro Car Builder 3D Free - Custom Body Shop and Classic Car Cruiser for iPhone 3GS, iPhone 4, iPhone ...
Get Retro Car Builder 3D Free - Custom Body Shop and Classic Car Cruiser on the App Store. See screenshots and ratings, and read customer reviews. ...

How to avoid dodgy builders
NSW Fair Trading offers some tips and things to look out for to avoid being scammed by shonky builders.

Grossly negligent builder fined $65,000 and banned
Substandard and &quot;hazardous&quot; work on 69 homes lead to builder's registration being stripped for three years.

Scissor lifts banned as RAH builders resume work
WORKERS at the new Royal Adelaide Hospital will return today but will stop using scissor lifts after the death of a grandfather in a second industrial ...

Dodgy Sydney builder Paul Logan ordered to pay $90,475 for fleecing customers
Mark carried out a quick licence check for Sydney builder Paul Logan before paying him thousands to carry out work in his new North Bondi home. ...

Resources last updated: 3/14/2016 8:47:52 AM