Question

USE MATLAB TO SOLVE THIS PROBLEM:

Use a primary function that uses a subfunction to compute the zeros of the function 3.23 – 12:22 – 33.+80 over the range -10

0 0
Add a comment Improve this question Transcribed image text
Answer #1

%MATLAB Code

lb = -10; % Set a lower bound for the function.
ub = 10; % Set an upper bound for the function.
x = NaN*ones(100,1); % Initializes x.
starting_points=linspace(-10,10,100);
for i=1:100
% Look for the zeros in the function's current window.
x(i)=fzero(@(x)(3*x^3-12*x^2-33*x+80), starting_points(i));
end
x_unique=x(diff(x)>1e-12)

Paste this matlab code in the mall ab script 16 = -10 ub= 10 x = Nant ones (200, 1); Starting points = line space (-10,10,100

Add a comment
Know the answer?
Add Answer to:
USE MATLAB TO SOLVE THIS PROBLEM: Use a primary function that uses a subfunction to compute...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT