Community Profile |

x = {'a','b',5,[]} x = cellfun(@num2str,x,'UniformOutput',false) sprintf('%s ',x{:})

accepted

2

Answered 12 months ago

You probably have a workspace variable named |diff|

accepted

2

Answered 1 year ago

y = filter([a b c],1,x); plot(y)

accepted

1

Answered 12 months ago

fft(x,1024) Will automatically zero pad your signal to 1024 points and perform FFT

accepted

1

Answered 2 years ago

You should use |isnan| to test whether a number is NaN or not.

accepted

1

Answered 3 years ago

A(1:size(A,1)+1:end) = 0

accepted

1

Answered 3 years ago

b = ~a; c = ~b; or if you are looking for the functional form b = not(a); c = not(b);

accepted

1

Answered 3 years ago

You can add alpha(0.5) after you plot the first one.

accepted

1

Answered 3 years ago