For loop for hilb matrix

1 visualización (últimos 30 días)
Jade Henrichon
Jade Henrichon el 25 de Feb. de 2021
Comentada: Rena Berman el 23 de Ag. de 2022
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 comentarios
John D'Errico
John D'Errico el 26 de Feb. de 2021
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 el 23 de Ag. de 2022
(Answers Dev) Restored edit

Iniciar sesión para comentar.

Respuesta aceptada

ANKUR KUMAR
ANKUR KUMAR el 26 de Feb. de 2021
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

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by