Electrical Engineering professor. Coauthor of the "Mastering MATLAB" book series.

Top 1% contributor

**712**Contributions

Press the Control key and letter C key down simultaneously. Duane "Mastering MATLAB 7"

*48634* views

Responded 9 years ago

Too quick with the submit button sum(A(:)==0)

*21251* views

Responded 9 years ago

sum(A(:))

*21251* views

Responded 9 years ago

I don't understand the need for disrespectful dialog about this issue.

*19581* views

Responded 9 years ago

There is a function in the MATLAB File Exchange that does what you want. Duane

*18666* views

Responded 9 years ago

Use Cell Arrays ydata=cell(n,1); tdata=cell(n,1); Duane

*9656* views

Responded 8 years ago