MATLAB Answers

Hello everyone, I would like to ask a question. How to plot only the (-pi:+pi) range of the following curve.

조회 수: 1(최근 30일)
Wesley
Wesley 2021년 1월 14일
답변: KSSV 2021년 1월 14일
load jizuobiao1.mat
XX1=[THETA11;RHO11];
THETA11=linspace(-pi,+pi,length(RHO11))';
f1 = fit(THETA11,RHO11,'smoothingspline','SmoothingParam',0.99);%smoothingspline
plot(f1,THETA11,RHO11)%,THETA11,RHO11
plot(f1,'-r');
grid on;
hold on
load jizuobiao2.mat
XX2=[THETA12;RHO12];
f2 = fit(THETA12,RHO12,'smoothingspline','SmoothingParam',0.99);%smoothingspline
plot(f2,THETA12,RHO12)
%plot(f2,'-b');
%grid on;
hold on

채택된 답변

KSSV
KSSV 2021년 1월 14일
load jizuobiao2.mat
THETA12 = linspace(-pi,+pi,length(RHO12)) ;
f2 = fit(THETA12,RHO12,'smoothingspline','SmoothingParam',0.99);%smoothingspline
plot(f2,THETA12,RHO12)

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by