Date: Nov 29, 2011 10:25 PM
Author: mailcwc@gmail.com
Subject: How do I show variable value in the same line of variable name in the<br> command window
I want to list the values of some selected variables in a given order.

The most easy way is type each variable one by one.

For examples,

a=1;

b=2;

c=3;

a

b

c

In the command widows, it will show

a =

1

b =

2

c =

3

Is it possible to make it look like

a = 1

b = 2

c = 3

I don't want the values showed in a new line.

the later is more readable for me.

Moreover, this way can show more variables at the same time on the

screen.

The second ideas is to use cell array, but these mean more coding.

A{1,1} = 'a';

A{1,2} = a;

A{2,1} = 'b';

A{2,2} = b;

A{3,1} = 'c';

A{3,2} = c;

A =

'a' [1]

'b' [2]

'c' [3]