how to input variables?

조회 수: 2 (최근 30일)
arian hoseini
arian hoseini 2022년 3월 8일
댓글: arian hoseini 2022년 3월 8일
Data=[1 2 3
4 5 6]
Data = 2×3
1 2 3 4 5 6
a = Data(:,1);
b = Data(:,2);
c = Data(:,3);
t=a/(b.^c)
t = 2×2
1.0e+-3 * 0 0.0640 0 0.2560
as u see i have 4 ans but i need 2 ... 1,2,3 is my first input and 4,5,6 is my second ...can anyone help?the way i put these variable is wrong right?

채택된 답변

Stephen23
Stephen23 2022년 3월 8일
편집: Stephen23 2022년 3월 8일
t = a./(b.^c)
% ^ you forgot this
Read this to understand the difference:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by