I'm getting troubles plotting the function x=V*sqrt(m/k)*sin(A), where V, m and k are constants, A and x are variables and I want to plot A in horizontal axis and x in vertical. I use:
syms A x
ezplot(x==V*sqrt(m/k)*sin(A))
and I get an error saying V m and k are not defined. The thing is that I do not want to define any values for them, I want to have a plot with those symbols.
Any help appreciated,
Dominika

 Accepted Answer

Sorry. No can do.
You want to plot a function that is parameterized with unknown parameters. ezplot does NOT handle this problem.
Essentially, there are infinitely many curves in this "plot" that you want to do, an infinite family of functions to plot.
In practice, for this problem, all three of those parameters are simply applied to the front, as a scale factor! So all of the curves will simply be scaled sine waves, all with the same period, and with no translation. It reduces to the basic curve
x = u*sin(A)
for some value of u, defined by those three unknown parameters. u here is the amplitude of the sine wave.
u = V*sqrt(m/k)
So, no ezplot cannot do this. But why do you need to bother???????? It is a basic sine wave. Nothing more.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!