Enter the following variables: a= 123456, b=31/4 , c=cos(π/8). Now calculate
2 ビュー (過去 30 日間)
古いコメントを表示
a) (a + b)/c
b) 2a – 3b
c) a/ (3b +4c)
0 件のコメント
回答 (2 件)
Les Beckham
2021 年 3 月 20 日
You really should go through the lessons in the Matlab Onramp tutorial if you don't understand how to do these very basic things.
Link: Matlab Onramp
Also, you are much more likely to get help if you show that you actually tried to solve the problem instead of assigning your homework to the Answers community.
0 件のコメント
Walter Roberson
2021 年 3 月 20 日
a = 12; b = 34; c = .56;
a) (a + b)/c
In MATLAB, the only times that it is valid to have a non-matching bracket or brace, is inside a comment or a character string. Therefore the
a)
part of the required expression is invalid.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!