x = linspace(20,100000);
y = 20*log10(1./(1+(2*(3.14)*(x)*(985.1)*(59*10.^-9)-(985.1/(2*(3.14)*(x)(4.7*10.^-3))).^2).^0.5);
plot(x,y)
If it write like this there is error like the below, whats the matter? Can you mend it??
Thans
error: parse error:
syntax error
>>> y = 20*log10(1./(1+(2*(3.14)*(x)*(985.1)*(59*10.^-9)-(985.1/(2*(3.14)*(x)(4.7*10.^-3))).^2).^0.5);
^
error: 'y' undefined near line 1, column 1

 채택된 답변

Stephan
Stephan 2020년 10월 20일
편집: Stephan 2020년 10월 20일

0 개 추천

2 closing brackets missing, one '*' operator missing, one times use './' instead of '/':
x = linspace(20,100000);
y = 20*log10(1./(1+(2*(3.14)*(x)*(985.1)*(59*10.^-9)-(985.1./(2*(3.14)*(x)*(4.7*10.^-3))).^2).^0.5));
plot(x,y)

추가 답변 (2개)

KSSV
KSSV 2020년 10월 20일

0 개 추천

x = linspace(20,100000);
y = 20*log10(1./(1+(2*3.14*x*985.1*(59*10.^-9)-(985.1./(2*3.14*x*(4.7*10.^-3))).^2).^0.5));
plot(x,y)

댓글 수: 1

whiyan
whiyan 2020년 10월 20일
this is also correct. thanks a lot~~~

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

Torsten K
Torsten K 2020년 10월 20일

0 개 추천

Is this what you are looking for?
clearvars;
x = linspace(20,100000);
y = 20*log10(1./(1+(2*3.14*x*985.1*(59*10.^-9)-(985.1./(2*3.14*x*4.7*10.^-3))).^2).^0.5);
plot(x,y)
If not, please enter the equation with the formula editor:

댓글 수: 1

whiyan
whiyan 2020년 10월 20일
this efforts helped me and appeciate it~~~

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

카테고리

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

태그

질문:

2020년 10월 20일

댓글:

2020년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by