Applying a Plot to cftool

5 次查看(过去 30 天)
Ausamah Hobbi
Ausamah Hobbi 2016-2-14
Hey! Please help.
I am relatively new to Matlab and I would love some help. I have a random 5x5 binary code with zeroes and ones. With that I have plotted it using:
x=randi([0 1], 5);
index = find(1);
x(index) = [];
stairs([x,x(end)]);
print('tempplot','-dpng');
Which looks like the attached file. With this function/plot now I am trying to apply the Fourier Series Approximation using cftool (which I have). But every time I do it it says "Input must be two, three, or four variables or a curve fitting session file." I am trying to find the approximation of this function. Is there a way around it? Someone please help! I very much appreciate it in advance.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by