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일

0 개 추천

t = a./(b.^c)
% ^ you forgot this
Read this to understand the difference:

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

릴리스

R2016b

태그

질문:

2022년 3월 8일

댓글:

2022년 3월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by