Not enough input arguments.

조회 수: 2 (최근 30일)
Haya Ali
Haya Ali 2022년 3월 26일
댓글: Haya Ali 2022년 3월 26일
I want to build a graph of this equation
where phi0=pi/3. and it's graph is like
but I am getting an error " not enough input arguments'. Please help me to resolve the error. Below is my code
clear all; close all; clc;
phi=0.9*pi;
phi0=pi/3;
PHI=0:2*pi;
%%PRC Type-1:
z=[1-cos*(phi)]*exp*{3*[cos*(phi-phi0)-1]};
% Plot the signal versus time:
figure;
plot(PHI,z);

채택된 답변

VBBV
VBBV 2022년 3월 26일
clear all; close all; clc;
% phi=0.9*pi;
phi0=pi/3;
phi=0:0.1:2*pi;
%%PRC Type-1:
z=(1-cos(phi)).*exp(3*(cos(phi-phi0)-1));
% Plot the signal versus time:
figure;
plot(phi,z);
axis([0 2*pi -0.5 0.8])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by