Community Profile |

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

accepted

2

Answered 6 months ago

You probably have a workspace variable named |diff|

accepted

2

Answered 8 months ago

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

accepted

1

Answered 6 months ago

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

accepted

1

Answered 1 year ago

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

accepted

1

Answered 2 years ago

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

accepted

1

Answered 2 years ago

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

accepted

1

Answered 2 years ago

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

accepted

1

Answered 2 years ago

[tf, index]=ismember(A,B,'rows');

accepted

1

Answered 2 years ago