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