How do I input the y-coordinate as a variable in Matlab?
Show older comments
I have to input a function where the output is reliant on the y-axis coordinate
Uwind = -75*(1-((75-y)/75)^2)
Is there any way that i can make the y value the y coordinate at any given point along the x axis?
1 Comment
madhan ravi
on 14 Oct 2018
Your code for better understanding.
Answers (1)
madhan ravi
on 14 Oct 2018
Edited: madhan ravi
on 14 Oct 2018
syms y
Uwind = -75*(1-((75-y)/75)^2)
fplot(Uwind)
is this what you are looking for ? if not let know
7 Comments
John Rae
on 14 Oct 2018
madhan ravi
on 14 Oct 2018
That’s why I told you upload the full code
John Rae
on 14 Oct 2018
madhan ravi
on 14 Oct 2018
Edited: madhan ravi
on 14 Oct 2018
maybe try
Uwind = @(y) -75*(1-((75-y)/75)^2)
for some reason I'm not able to run your code , takes long time
John Rae
on 14 Oct 2018
madhan ravi
on 14 Oct 2018
Edited: madhan ravi
on 14 Oct 2018
It doesn't seem like its changing anything. When I add it into the vx components it doesn't alter the final plot
can you show the code?
John Rae
on 14 Oct 2018
Categories
Find more on Code Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!