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"

*62086* views

Responded 10 years ago

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

*28908* views

Responded 10 years ago

sum(A(:))

*28908* views

Responded 10 years ago

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

*23059* views

Responded 9 years ago

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

*20871* views

Responded 10 years ago

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

*12281* views

Responded 9 years ago