how to graph this system of questions into mathlab
1 view (last 30 days)
Show older comments
Here is my question to solve: Graph the following system on the same set of axes
f(𝑣) = { −0.001778 ∙ 𝑣^2 + 0.05333 ∙ 𝑣 𝑖𝑓 0 ≤ 𝑣 < 30
{ 0 𝑖𝑓 𝑣 ≥ 30
Plots the efficiency for speed ranging from 0-35
0 Comments
Answers (1)
Alan Stevens
on 22 Oct 2020
Edited: Alan Stevens
on 22 Oct 2020
You can define the function as follows
f = @(v) (-0.001778*v.^2+0.05333*v).*(v<30);
The (v<30) part simply multiplies the rest by 1 if v is less than 30, and by 0 if v is greater than or equal to 30.
Then construct a vector of values of v running from 0 to 35; call th function with these values to create a vector y, then plot y against v.
0 Comments
See Also
Categories
Find more on Graphics 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!