How can I delete rows having zero?

1 Ansicht (letzte 30 Tage)
Abubakr Sheikh
Abubakr Sheikh am 3 Nov. 2016
Kommentiert: Abubakr Sheikh am 3 Nov. 2016
I have a matrix of order (1x8763) in excel sheet format and I want to delete the rows containing zero using MATLAB. What should I do. Kindly help me.

Akzeptierte Antwort

KSSV
KSSV am 3 Nov. 2016
Let x be your data of 1X8763.
use
x(x==0) = [] ;

Weitere Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB 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