Question

B. (4 pts) Use the : operator to create the vectors x [2.5,1.50.5,-0.5,-1.51 and y [0.4,0.8,1.2,1.6,2], then use them in the
Please show matlab editor and command window
0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

B)

clc;
clear all;
close all;
x=[2.5:-1:-1.5]
y=[0.4:0.4:2]
z=(x.^2).*(y.^3).*exp(y./x)-((x.^3).*(y.^2)+72.67).^(1/4)

MATLAB R2014a EDITOR Find Files Compare ▼ Comment Print New Open Save Breakpoints Run Run and Advance Advance Run and Indent

C)

clc;
clear all;
close all;

u=0.35;
theta=[0:5:35];

l=numel(theta);

for i=1:l
F(i)=(70*u)./((u.*sind(theta(i)))+cosd(theta(i)));

end
disp('THE F(THETA) VALUES FOR THETA ARE=');
disp(F);

%FOR THETA NOW FROM 5 TO 35 AND SPACING OF 0.01.


theta1=5:0.01:35;

l1=numel(theta1);
disp('IN NEW O.O1 SPACED VECTOR THE MINIMUM AND MAXIMUM VALUE OF F AND THETA ARE');
for i=1:l1
F(i)=(70*u)./((u.*sind(theta1(i)))+cosd(theta1(i)));

end
disp('THE MINIMUM VALUE OF F=');

[ m,i]=min(F);
disp(m);

disp('THE VALUE OF THETA AT MINIMUM F=');
disp(theta1(i));

disp('THE MAXIMUM VALUE OF F=');
[ma,j]= max(F);
disp(ma);

disp('THE VALUE OF THETA AT MAXIMUM F=');
disp(theta1(j));
plot(theta1,F);

Figure 1 Eile Edit Yew Insert 1ools Desktop 岦indow Help 24.1 瀡 23.9 23.8 23.7 23.6 23.5 23.4 23.3 23.2 23.1 10 15 20 25 30 35

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
Please show matlab editor and command window B. (4 pts) Use the : operator to create...
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