How to make a Line in command window not showing??

1 view (last 30 days)
This is my editor script
angle=input('Please insert the angle you want in degree form');
radian=degreetoradian(angle);
% Converting angle in degree to radian
fprintf('Your angle in radian is %.3f\n ', radian)
this is my command window
Please insert the angle you want in degree form 180
rad =
3.1416 *HOW do i make this disappear just showing the text below*
Your angle in radian is 3.142
PS how to make it into coding text?

Accepted Answer

Star Strider
Star Strider on 23 Mar 2015
The problem is likely in your ‘degreetoradian’ function.
In the line that calculates ‘rad’, you need to be certain that there is a semicolon (;) at the end of that line to suppress that output.
I don’t have your ‘degreetoradian’ function code so I can’t say for sure, but that would be my guess.
  2 Comments
Victor Seaw
Victor Seaw on 23 Mar 2015
omgawd u are a matlab genius way better compare to my lecturer!!

Sign in to comment.

More Answers (0)

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!