For loop for hilb matrix

조회 수: 1 (최근 30일)
Jade Henrichon
Jade Henrichon 2021년 2월 25일
댓글: Rena Berman 2022년 8월 23일
Hi!
I have to make 8 matrix hilb with different n. I tried to do a for loop, but each time, the result was always the matrix of n=40. Can someone help me on how to do it? Thank you
  댓글 수: 3
John D'Errico
John D'Errico 2021년 2월 26일
If you want help with your code, you need to show the code you wrote. Otherwise, someone would need to completely write your homework assignment for you, and we don't do that here. But if you show the code, the odds are good that the fix will be simple.
Rena Berman
Rena Berman 2022년 8월 23일
(Answers Dev) Restored edit

댓글을 달려면 로그인하십시오.

채택된 답변

ANKUR KUMAR
ANKUR KUMAR 2021년 2월 26일
for i = 5:5:40
output_mat=hilb(i);
% if you wish to store in cell array, uncomment the below line
output_mat_cell{i/5}=hilb(i);
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by