Matlab 中动态矩阵的表达。

2 次查看(过去 30 天)
求大佬帮忙!!!!
已知第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)]

采纳的回答

果博东方注册网站【微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}

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!