Matlab program to plot y(t) graph

조회 수: 26 (최근 30일)
mohamed Arsh khatib
mohamed Arsh khatib 2020년 11월 29일
댓글: Walter Roberson 2021년 9월 11일
  1. Program to plot the given function y(t) and then to plot y(t+4),2y(t+4) , y(2t), y(2t-3) , y(t/2).
  댓글 수: 1
mohamed Arsh khatib
mohamed Arsh khatib 2020년 11월 30일
some one please make the code and provide me , the magnitude assigned to us is -2 to 3

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

답변 (3개)

madhan ravi
madhan ravi 2020년 11월 29일
doc plot
doc fplot
  댓글 수: 1
mohamed Arsh khatib
mohamed Arsh khatib 2020년 11월 30일
i didnt understand it yet, could you elaborate it or explain how to do it, or provide the code so i can understand how the process takes place

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


Setsuna Yuuki.
Setsuna Yuuki. 2020년 11월 30일
If you function is y(t), and you iterate this function in the time, your can plot it:
time = 0:0.01:1;
y = sin(time) %Your y(t). Can be anything function.
plot(time,y)

Ali Imran
Ali Imran 2021년 9월 11일
편집: Walter Roberson 2021년 9월 11일
Function y=2x(t)
y=t^2;
Error program
  댓글 수: 1
Walter Roberson
Walter Roberson 2021년 9월 11일
MATLAB is case sensitive for the keywords, so you need to use function instead of Function
MATLAB function names have the same rules as MATLAB variable names.
MATLAB variable names must start with an english letter A through Z or a through z. After that they may have those letters, or the digits 0 to 9, or underscore ('_') . -- so start with letter, but after that can be letters, numbers, underscore. The maximum variable length is 64 characters.
You tried to use a name 2x which starts with a number.

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

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by