how to input in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
ask the user for three numbers in the form of a vector,[a b c].then tell the user the number of real-valued roots there are for the equation y=a*x^2+b*x+c having the user's values for a,b,c.
0 件のコメント
回答 (2 件)
Youssef Khmou
2014 年 1 月 30 日
編集済み: Youssef Khmou
2014 年 1 月 30 日
you can use input instead of fscanf, and enter scalar, vector or matrix :
a=input(' Player 1: ');
0 件のコメント
Image Analyst
2014 年 1 月 30 日
See the example for inputdlg() in the help for that function.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!