how to input variables?

1 回表示 (過去 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:
  1 件のコメント
arian hoseini
arian hoseini 2022 年 3 月 8 日
thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

タグ

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by