How do I multiply an integer with a single value from the matrix?
1 view (last 30 days)
Show older comments
Suleman Jalal
on 11 Jun 2019
Commented: Suleman Jalal
on 11 Jun 2019
%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 Comments
madhan ravi
on 11 Jun 2019
Edited: madhan ravi
on 11 Jun 2019
Is it MATLAB? MATLAB doesn’t use // for comment.
Accepted Answer
More Answers (1)
KALYAN ACHARJYA
on 11 Jun 2019
Edited: KALYAN ACHARJYA
on 11 Jun 2019
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}
See Also
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!