Learning Yourself Matlab
Search this blog!
Thursday, July 5, 2012
How to print variable value in title of a matlab figure?
Imagine my MATLAB figure has a title where I want to print the value of a variable. How can I do that ?
for var=1:3
figure;
plot(randn(10,1)); title(['rand number=: ' num2str(var) ]);
end
%%%%%%%%%%%%%%%%%%Out Put%%%%%%%%%%%%%%%%%%%%%%%%%%
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment