hope the plotting graph
조회 수: 1 (최근 30일)
이전 댓글 표시
x = linspace(20,100000);
y = 20*log(1/(1+(2*(3.14)*(x.)*(102*10^-9)*(985.1))^2)^0.5);
plot(x,y)
the matlab said like the below~~~~~~~~~ whats the matter?
error: parse error:
syntax error
>>> y = 20*log(1/(1+(2*(3.14)*(x.)*(102*10^-9)*(985.1))^2)^0.5);
^
error: 'y' undefined near line 1, column 1
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 10월 19일
Try this
x = linspace(20,100000);
y = 20*log(1./(1+(2*(3.14)*(x)*(102*10^-9)*(985.1)).^2).^0.5);
plot(x,y)
Read about element-wise opetators in MATLAB: https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!