How can i make my code interactive?
8 ビュー (過去 30 日間)
古いコメントを表示
I want to let people choose Forces and Angles then it will give them the answer of a total force.
For my first section i am already given 3 angles and 3 forces where i find the total force and result angle.
I started to use 'Force1= input('Enter force');
for all forces and angles then put end at the end of that but when i run it it just keeps going on. Then i put the equations underneath that for the total force and result angle but it doesnt run.
2 件のコメント
Rik
2019 年 4 月 15 日
Show the code you're using. The input function is indeed the function you should be using (unless you want to make a GUI).
採用された回答
Rik
2019 年 4 月 15 日
You aren't checking if the values are valid. That means you're never changing the value of valid, which results in an endless loop.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Assembly についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!