フィルターのクリア

assign a vector

3 ビュー (過去 30 日間)
samia
samia 2011 年 4 月 28 日
how can'I assign a vector to another;for example of this is Meniere
for(k=1:K) for(m=1:M) [D(1,2,2,2,k,m) D(2,1,2,2,k,m) D(1,3,2,2,k,m) D(3,1,2,2,k,m) D(2,2,2,2,k,m)]=Ac(1,:,k,m);
end
end

採用された回答

Andrei Bobrov
Andrei Bobrov 2011 年 4 月 28 日
variant with loop with example
Ac = randi(100,[1 5 2 2]);
D = zeros(3,3,2,2,2,2)
for k=1:K
for m=1:M
C = num2cell(Ac(1,:,k,m));
[D(1,2,2,2,k,m) D(2,1,2,2,k,m) D(1,3,2,2,k,m) D(3,1,2,2,k,m) D(2,2,2,2,k,m)] = C{:};
end
end
  3 件のコメント
Andrei Bobrov
Andrei Bobrov 2011 年 4 月 28 日
sorry, correcting
samia
samia 2011 年 4 月 28 日
thank you

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by