Info
This question is closed. Reopen it to edit or answer.
How do I show the variables the users' inputted in a disp or fprintf fucntion?
1 view (last 30 days)
Show older comments
I'm kind of new to MATLAB, how can I show the users' inputted data on a disp or fprintf function?
4 Comments
Walter Roberson
on 14 Sep 2020
disp() only accepts one parameter. But you can
disp(['Your answer is: ', num2str(ans)])
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!