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

Top 1% contributor

**717**Contributions

1 downloads

4 years ago

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

*63757* views

Responded 10 years ago

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

*29912* views

Responded 10 years ago

sum(A(:))

*29912* views

Responded 10 years ago

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

*23675* views

Responded 9 years ago

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

*21063* views

Responded 10 years ago

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

*12695* views

Responded 9 years ago