Matlab 中动态矩阵的表达。

2 views (last 30 days)
求大佬帮忙!!!!
已知第i行的权值表达为: c_weight={i*rand(8,6);i*rand(8,6);i*rand(8,6)}; %w(i|k)
如何用MATLAB表达出整个权值序列:W_k=[w(1|k)
w(2|k)
w(3|k)
……
w(N|k)]

Accepted Answer

果博东方注册网站【微8785092】
N=4;
for i=1:1:N
c_weight={i*rand(8,6);i*rand(8,6);i*rand(8,6)};
w{i}=c_weight;
end
% 所有数在c中
% w(i|k)就是w{i}
% w(i|k)中第n个矩阵就是w{i}{n}

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!