How would I go about writing this equation in matlabs?
1 view (last 30 days)
Show older comments
Arnav Dharane
on 18 Sep 2021
Commented: Star Strider
on 18 Sep 2021
I am relatively new to matlabs, currently using it for a course in college.
I need help in understanding how to write this equation in matlabs.
Image included.
0 Comments
Accepted Answer
Star Strider
on 18 Sep 2021
There are several options, depending on what you want to do.
syms x
p(x) = 1/(2*sqrt(sym(pi)))*exp(-(x-5)^2/4)
figure
fplot(p, [-5 15])
.
2 Comments
More Answers (0)
See Also
Categories
Find more on Function Creation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!