How to create a Matrix
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
What should i write in the code to create this matrix

1 comentario
Huma Hafeez
el 24 de Mayo de 2021
you can write this in MATLAB like:
A=[22 18 14; 21 17 13; 20 16 12; 19 15 11]
I would suggest you to take MATLAB Fundamentals course, its free
Respuestas (6)
David Fletcher
el 9 de Mayo de 2021
A=[22 18 14; 21 17 13; 20 16 12; 19 15 11]
I would recommend you have a look at the Matlab Onramp course. It will give you a good grounding in the basics of Matlab
3 comentarios
Andrei Bobrov
el 9 de Mayo de 2021
Editada: Andrei Bobrov
el 9 de Mayo de 2021
A = reshape(flip(11:22),4,[])
A = reshape(22:-1:11,4,[])
4 comentarios
Andrei Bobrov
el 9 de Mayo de 2021
Editada: Andrei Bobrov
el 9 de Mayo de 2021
v = 22:-1:11;
A = reshape(v,4,[]);
or
v = 22:-1:10;
n = numel(v);
A = reshape(v(1:n - mod(n,4)),4,[])
fyp matlab
el 14 de Mayo de 2021
Just write this to create this Matrix
A=[22 18 14; 21 17 13; 20 16 12; 19 15 11]
0 comentarios
Ver también
Categorías
Más información sobre Matrix Indexing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!