Clear Filters
Clear Filters

plotting graph with multiple uknown variables

1 view (last 30 days)
Hello Im new with matlab and I couldnt figure out if its possible to plot this equation.
u0 w v0 are constant that we dont know.
x(y)=(u0/w)*sin(w*y/v0)
Thank you

Answers (2)

John D'Errico
John D'Errico on 18 Dec 2021
Edited: John D'Errico on 18 Dec 2021
Sorry. If you have no idea what all of those parameters are, then there is nothing you can plot. A plot requires NUMBERS. You have no numbers.
Yes. You know that it will be essentially a sine wave. But the amplitude of that sine wave is unknown. The period of the sine wave is unknown. So exactly what would you hope to plot? The only thing you do know is the sine wave will pass through the point (0,0). Well, it will unless w or v0 are 0. In those cases, the curve will be everywhere undefined.
Beyond that there is nothing you can hope to plot. And this question has effectively nothing to do with MATLAB or your experience with it, as unless you know those three parameters, then it is meaningless to try to plot anything. (A tiny caveat there, if you know the RATIO of w/v0, AND the ratio of u0/w, both a specific values, then you can plort a curve.)

Star Strider
Star Strider on 18 Dec 2021
If the objective is to determine those parameters from data, it will be relatively straightforward to adapt the approach in Curve fitting to a sinusoidal function to that model. I will help as needed.
.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!