how to run c at intervals [0, 1] with a jump of 0.5

1 回表示 (過去 30 日間)
Relly Syam
Relly Syam 2021 年 3 月 25 日
編集済み: Relly Syam 2021 年 3 月 25 日
s=3; E=[]; for i=1:s for j=1:s E(i,j)=euler(i,c); end end E
  1 件のコメント
Relly Syam
Relly Syam 2021 年 3 月 25 日
編集済み: KSSV 2021 年 3 月 25 日
s=3; E=[];
for i=1:s
for j=1:s
E(i,j)=euler(i,c);
end
end
E

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

回答 (1 件)

KSSV
KSSV 2021 年 3 月 25 日
  9 件のコメント
KSSV
KSSV 2021 年 3 月 25 日
E is a cell now...you need to access using: E{1}, E{2}
Relly Syam
Relly Syam 2021 年 3 月 25 日
編集済み: Relly Syam 2021 年 3 月 25 日
I don't understand the flow. I want to make a matrix [E1(c1) E1(C2) ... E1(Cn); E2(C1) E2(C2) .. E2(Cn); .....; En(C1) En(C2) ... En(Cn)].
so when n = 3 then we get C1 = 0, C2 = 1/2, C3 = 1. and the matrix [E1(c1) E1(C2) E1(C3); E2(C1) E2(C2) E2(C3); E3(C1) E3(C2) E3(C3)] where the result is [-0.5 0 0.5; 0 -0.25 0; 0.25 0 -0.25]. because I want to multiply the results of the matrix above with another matrix.
E=euler(i, j) % i=1:n and j=1:n

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

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by