I have a matrix x=[1 2 3; 4 5 6; 7 8 9]. i wanted to replace 3rd column of matrix by a scalor value of 10. new matrix should look like x=[1 2 10; 4 5 10; 7 8 10]

 Respuesta aceptada

KSSV
KSSV el 30 de Ag. de 2016
x(:,3) = 10

1 comentario

Raghavendra Reddy P
Raghavendra Reddy P el 30 de Ag. de 2016
sir thank you.. Actually its a small step but i got confused :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 30 de Ag. de 2016

Comentada:

el 30 de Ag. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by