How do I multiply an integer with a single value from the matrix?
조회 수: 1 (최근 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에서 Data Type Conversion에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!