Answered
How do I remove the empty cells from a vector of cells?
Here's one way to do it. strs = {'one','','two','three','','','four',''}; empties = find(cellfun(@isempty,strs)); % ...

16 years ago | 3

Question


How do I remove the empty cells from a vector of cells?
I have a vector of cells which contain strings. Some of the cells in the vector are empty. I want to remove the empty cells from...

16 years ago | 5 answers | 7

5

answers

Answered
How do I cut H and E planes from a 3D plot of an antenna radiation pattern?
You might find Eric Ludlam's <http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic Sliceomatic> file (from the Fi...

16 years ago | 1

Answered
How do I simplify a symbolic expression into numeric output?
It looks like you've got a symbolic expression. You can substitute real numeric values for x1 and x2 like this: % Defin...

16 years ago | 6

Question


Why does 1 - 2/3 - 1/3 not equal zero?
Try this: >> 1 - 2/3 - 1/3 MATLAB gets the wrong answer: 5.5511e-017

16 years ago | 4 answers | 8

4

answers

Answered
How do I turn off the grid in a polar plot?
It's a shame that it's not easier to do this, but here is a Solution that explains how to do it: <http://www.mathworks.com/sup...

16 years ago | 2

| accepted

Question


How do I turn off the grid in a polar plot?
For a normal MATLAB plot, I can turn the grid off and on with the |grid| command. x = 1:10; plot(x,sin(x)) grid on ...

16 years ago | 3 answers | 2

3

answers

Answered
How to extract leading non-zero digit?
You'll probably need to do some kind of textual manipulation. Here's one way to do it. function y = leadingDigit(x) s = s...

16 years ago | 4