I asked for help earlier have tried all kinds of different ways of entering and still get errors
question i have to answer is
plot the following functions. Choose intervals and axis settings that highlight the important features of the graph.
1. y = x^5 -5x^3 +4x the result I get is as follows
>> x = linspace(value1, value2, numPointsInBetween); y = x .^ 5 - 5 * x .^ 3 + 4 * x; plot(x,y,'-');
Unrecognized function or variable 'value1'.

 Accepted Answer

You have to define value1, value2, and numPointsInBetween yourself. They are, respectively: the minimum x the plot shows, the maximum x the plot shows, and the number of points in the plot (like a resolution). Figuring out what these should be is part of the question ("Choose intervals and axis settings that highlight the important features of the graph."), but you might start with something like:
value1 = -2;
value2 = 2;
numPointsInBetween = 100;
x = linspace(value1, value2, numPointsInBetween);
y = x .^ 5 - 5 * x .^ 3 + 4 * x;
plot(x, y, '-');
and see what you get and make adjustments from there.

1 Comment

We were not given values so I will try that, thank you!

Sign in to comment.

More Answers (0)

Categories

Find more on RF Toolbox in Help Center and File Exchange

Products

Asked:

on 10 Dec 2021

Commented:

on 10 Dec 2021

Community Treasure Hunt

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

Start Hunting!