求大佬帮忙!!!!
已知第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)]

 채택된 답변

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!