필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Info how to plot this signal in Matlab<

조회 수: 1 (최근 30일)
Franta Cymorek
Franta Cymorek 2017년 9월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to code a very simple code in Matlab. I don't want you to do it for me, I just want if you could please refer me to any website, where I can find valuable info for it?
The signal is:
m(t) = 0.001*cos(0.005*pi*t+pi/4)
t = time
pi = 3.14

답변 (1개)

Rik
Rik 2017년 11월 2일
There are multiple way to do this, which you'll learn in just about every tutorial for Matlab. You can try the Onramp course offered (for free) by Mathworks, on any other you can find with your favorite internet search engine.
For your problem, the easiest might be to use an anonymous function:
m = @(t) 0.001*cos(0.005*pi*t+pi/4);
You can plot this with plot if you generate values for t, or you can let fplot do that for you:
fplot(m,[0 1000])

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by