Hello good day.
I have the following matrix
A = [1 1 1 1
         2 2 2 2
         3 3 3 3];
What instruction or how do I add two more lines
equal to the third line, that is, it looks like this
A = [1 1 1 1
         2 2 2 2
         3 3 3 3
         3 3 3 3
         3 3 3 3];
Waiting for your valuable help
Regards

 Respuesta aceptada

Matt J
Matt J el 3 de Dic. de 2019

0 votos

A=A([1;2;3;3;3],:)

Más respuestas (0)

Categorías

Productos

Versión

R2014a

Preguntada:

el 3 de Dic. de 2019

Comentada:

el 3 de Dic. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by