How do I multiply an integer with a single value from the matrix?
3 ビュー (過去 30 日間)
古いコメントを表示
%Start of the code
Module_Information = inputdlg ({'Thrust','Mixture Ratio','Reserve'},'Test', [1 50; 1 50; 1 50;]);
Exhaust_Veloctiy = 4 * Module_Information(1,1)
%End of the code
How do I extract "Moduel_Information(1,1)" or the "Thrust" and multiple with a integator, such as 4.
2 件のコメント
madhan ravi
2019 年 6 月 11 日
編集済み: madhan ravi
2019 年 6 月 11 日
Is it MATLAB? MATLAB doesn’t use // for comment.
採用された回答
その他の回答 (1 件)
KALYAN ACHARJYA
2019 年 6 月 11 日
編集済み: KALYAN ACHARJYA
2019 年 6 月 11 日
Here Module_Information is cell
>> whos Module_Information
Name Size Bytes Class Attributes
Module_Information 3x1 192 cell
So
Exhaust_Veloctiy =4*Module_Information{1,1}
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!