Can someone help me with the code to plot this
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Can someone tell me how to plot this function on matlab. Every time I input the function and try plotting, the graph does not look right.

2 commentaires
John D'Errico
le 6 Juil 2017
Show what you tried. Otherwise, you are just asking us to do your homework for you.
Ziv Melamed
le 6 Juil 2017
Modifié(e) : Walter Roberson
le 6 Juil 2017
Réponses (1)
Walter Roberson
le 6 Juil 2017
x = linspace(0,1);
4 commentaires
Ziv Melamed
le 6 Juil 2017
Walter Roberson
le 6 Juil 2017
You missed a .^2 inside the exp()
Les Beckham
le 7 Juil 2017
You should check your parentheses also. As written, you are taking the square root of the entire expression instead of just the sin^2(x) portion.
Walter Roberson
le 7 Juil 2017
Good catch, Les.
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!