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

Top 1% contributor

**717**Contributions

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

*60810* views

Responded 10 years ago

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

*28048* views

Responded 10 years ago

sum(A(:))

*28048* views

Responded 10 years ago

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

*22620* views

Responded 9 years ago

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

*20731* views

Responded 9 years ago

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

*11934* views

Responded 9 years ago