Sign in

Not a member? | Forgot your Password?


Search matlab

Search tips

Subscribe to matlab

Search tips

Discussion Groups

FFT Spectral Analysis Software

See Also

Embedded SystemsFPGA

Discussion Groups | Matlab DSP | How to delete rows/columns?

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread



Is this thread worth a thumbs up?

+1

How to delete rows/columns? - ali shamsaie - Oct 22 5:14:00 2002

Dear friends,

How can I delete a single row/column or an array of rows/columns from a matrix?

Is there any specific command in matlab for doing this?

Thanks.

ali




_____________________________
 Free pdf download: Digital Signal Processor Fundamentals and System Design.




RE: How to delete rows/columns? - Author Unknown - Oct 22 16:22:00 2002

Just use

X(rows:cols) = []

e.g
X =

1 2 3
4 5 6
7 8 9

X(2,:) = [] -- removes the 2nd row..
X(:,2) = [] -- removes the 2nd column... Kind Regards,

Prakash -- Original Message --

>Dear friends,
>
>How can I delete a single row/column or an array of rows/columns from a
>matrix?
>
>Is there any specific command in matlab for doing this?
>
>Thanks.
>
>ali >
>
>_____________________________________
>/groups.php3



_____________________________
 Free pdf download: Complex Digital Signal Processing in Telecommunications.