The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: displaying data in a uitable.
Replies: 1   Last Post: Dec 20, 2012 6:47 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Barry Shaw

Posts: 32
Registered: 2/16/12
displaying data in a uitable.
Posted: Dec 20, 2012 5:32 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


Simplified version of my problem.....
If I have the variable 'cor' below, I can display it in a uitable using the following code.
>> cor = {[0.1 0.2];[0.1 0.2]};
>> cor = cellstr(num2str(cell2mat(cor)));
>> uitable('Data',cor)

I run into difficulties when I have 'cor' of the form
>> cor = {[0.1 0.2];[0.1 0.2 0.3]};
>> cor = {[0.1 0.2];[0.1 0.2];'N/A'};

I can't figure out how to display this in uitable. Problem is either because (1) the doubles in each row are of different sizes, or (2) rows are of a different data type.

Also, I could have 1000's of rows, so I don't really want to implement any loops.

Any suggestions please?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.