matrix manipulations of columns

1 Ansicht (letzte 30 Tage)
Charlene
Charlene am 8 Mai 2013
Hi guys,
does any one knows how to generate a matrixD that adds a new column of zeros to matrix A.This cloumn must be placed between the 4th and 5th column of matrix A
pls note that matrix A is A=random('norm',3,0.2,100,100)

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 8 Mai 2013
A(:,5)=zeros(size(A,1),1)

Weitere Antworten (0)

Kategorien

Mehr zu Just for fun finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by