Hello i am tryinfg to plot the abs of Y:
x=-400:400;
Y=1./(j*x+3);
(abs(Y))
title('Fourier's transform of h(t)=e^(-3t)*u(t)');
xlabel('-400 < x < 400 (rad/sec)')
ylabel('Fouriers Transform of h(t)')
plot(Y)
but i am taking all the time the following error message:
Invalid expression. Check for missing
multiplication operator, missing or unbalanced
delimiters, or other syntax error. To construct
matrices, use brackets instead of parentheses.
Please help!

 채택된 답변

madhan ravi
madhan ravi 2018년 12월 18일
편집: madhan ravi 2018년 12월 18일

0 개 추천

EDITED
clear all
x=-400:400;
Y=1./(j.*x+3);
y=(abs(Y));
plot(x,y)
xlabel('-400 < x < 400 (rad/sec)')
ylabel('Fouriers Transform of h(t)')
title('Fouriers transform of h(t)=e^{-3t}*u(t)')

댓글 수: 6

Spiros Arkoudelis
Spiros Arkoudelis 2018년 12월 18일
Yeah that fix the problem but it still does not plot the whole thing. It just opens empty x and y labels
madhan ravi
madhan ravi 2018년 12월 18일
See edited answer
Spiros Arkoudelis
Spiros Arkoudelis 2018년 12월 18일
Still nothing ploted :(Screenshot_1.png
madhan ravi
madhan ravi 2018년 12월 18일
Try my edited answer one last time.
Spiros Arkoudelis
Spiros Arkoudelis 2018년 12월 18일
Yeah that worked at last! Thank you for your time!
madhan ravi
madhan ravi 2018년 12월 18일
Anytime :)

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2018년 12월 18일

편집:

2018년 12월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by