33. (3 pts) create the vector zeta- (-4, 8, 2, -1, o, -5, 9, 3, 4) Then use the
ID: 3571658 • Letter: 3
Question
33. (3 pts) create the vector zeta- (-4, 8, 2, -1, o, -5, 9, 3, 4) Then use the find function to return the following vector: I-4 5 9) 34. (10 pts) Prompt the user to enter a value for x and then prompt the user to enter a value for y. If the value of x is greater than the value of y, send a message to the command window telling the user that x.> y. If x is less than or equal to y, send a message to the command window telling the user that y x. 35 (10 pts) use a for loop to create a vector of the squares of the numbers 1 through 5. 36. (10 pts) Use a while loop to create a vector of the squares of the numbers l through 5. 37. (2 pts) create the following symbolic variables using the syms function. a 38. (2 pts) Using the variables from Problem 37, create the equation symbolically y 2ax b c. 39. (2 pts) Solve equation y for x.Explanation / Answer
34.
x = input('Enter the value of x: ');
y = input('Enter the value of y: ');
if x > y
disp('x > y');
else
disp('y >= x');
end
35.
squares = []
for i = 1:5
squares = [squares i * i];
end
36.
squares = []
i = 1;
while i <= 5
squares = [squares i * i];
i = i + 1;
end
37.
syms a b c x
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.