How can I calculate multi outputs in a single input?
Show older comments
Example: I have to calculate Circumference and Area of Circle while the radius of a circle is same say 4.
Answers (1)
madhan ravi
on 23 Oct 2018
Edited: madhan ravi
on 23 Oct 2018
0 votes
see https://in.mathworks.com/matlabcentral/answers/424875-unwanted-ans-in-my-output#answer_342206 for reference
- use a function with two outputs , that would solve your homework problem
1 Comment
madhan ravi
on 23 Oct 2018
[area,cr] = circle(4)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!