# Signal syntax and plotting

조회 수: 1 (최근 30일)
sverre Kvist 2022년 5월 29일
편집: Walter Roberson 2022년 5월 30일
i need to plot the following signal
as i'm relatively new to MatLab. i've got no idea on how i'm supposed to write it.
i would like some help/assistance on how to do the aformentioned task and how to solve signal-plottying/syntax in general.
i've googeled a bit, but so far i've not been able to understand how to do it.
anny direct help or reference to resources on "how to" would be greately appreciated. thanks in advance.

댓글을 달려면 로그인하십시오.

### 채택된 답변

Mahmoud Ashraf 2022년 5월 29일
편집: Mahmoud Ashraf 2022년 5월 29일
first you must understand the equation you need to solve, then know how to write it with the right syntax and finally plot the required results.
i think the V is the max value and its constant so i will define it as vaule
V_max=10; % max value of V is 10
then the value of t i suppose it value from 1 to 90 with step of 1
t=1:1:90;
and easily we can write the equation
vo=(2+0.1961*cos(0.1*t-0.1961)+0.003998*cos(15*t-1.5375)+0.001667*cos(300*t-1.5691))*V_max;
and plot t with vo
plot(t,vo)
##### 댓글 수: 3이전 댓글 1개 표시이전 댓글 1개 숨기기
Mahmoud Ashraf 2022년 5월 29일
편집: Walter Roberson 2022년 5월 30일
for the mathematics syntax
sverre Kvist 2022년 5월 30일
To clarify V just stands for "Voltage" and the "t" is time.
alrighty. i'll try to implement something, seems so simple above, thanks :)
i'll update on how it goes.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by