hope the plotting graph
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
whiyan
le 19 Oct 2020
Réponse apportée : Ameer Hamza
le 19 Oct 2020
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 commentaires
Réponse acceptée
Ameer Hamza
le 19 Oct 2020
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!