in the above code the output isCode:`function one()`

x=3;

disp(x)

end

3

how can i get it as

value of x is 3

please help

Printable View

- May 25th 2010, 08:27 AMAUCCprint text along with variable valueCode:
`function one()`

x=3;

disp(x)

end

3

how can i get it as

value of x is 3

please help - May 26th 2010, 04:06 AMelbarto
Something like this:

Code:`EDU>> x = 3;`

EDU>> fprintf('value of x is %i\n',x)

value of x is 3

EDU>>