Question
i need help solving these questions,please

Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *ba
first plot should show the pressure in Pascal and the second plot should show the temperature in Centigrade 04:_Re-write the

don’t know how to solve it by using matlab.!
Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *base *height, where the base is length *width. Prompt the user to enter values for the length, width, and height, and then calculate the volume of the pyramid. When the user enters each value, he or she will then also be prompted to sele menu items are: Inch, Foot, mm, cm, or m. (Note that 2.54 cm1 inch.) The script should print the volume in cubic meters with three decimal places. As an example, the output format will be ct the units from a menu. The This program will calculate the volume of a pyramid. Enter the length of the base: 50 Is that i or c? i Enter the width of the base: 6 Is that i or c? c Enter the height: 4 Is that i or c? i The volume of the pyramid is xxx.xxx cubic inches. A. Write the algorithm for this task. B. Write MATLAB script to accomplish this task (make sure to switch case as conditional statements). 02: Write a function to classify input argument as: Upper case letter, Lower case letter, numerical value, or a special character? 03: The atmospheric properties, such as temperature, air density, and air pressure, are important in aviation. The data file: "atmoprop. dat" was created to store pressure in bar and the temperatures in degrees Kelvin at various altitudes. The altitude is stored in the first column, the pressure is in the second column and the te it may look like this mperatures in the third. For example, 1000 1.05 288 2000 1.03 281 000 .0 269 Write a MATLAB script that will load this data into a matrix, separate it into vectors, and then create two plots in one figure for the data with appropriate axis la bels and a title. The
first plot should show the pressure in Pascal and the second plot should show the temperature in Centigrade 04:_Re-write the following nested if-else statement as a switch statement that accomplishes exactly the same result for all possible values. Assume that val is an integer variable that has been initialized, and that "ok", "Xx", "yy", "tt", and "mid" are functions. Write the switch statement in the most succinct way if val >5 if val
0 0
Add a comment Improve this question Transcribed image text
Answer #1

solu ion you ase eaedo develop ascpt the volume op a I Algorfthm to calcutaie the volume of Pyzamia egh 01 o?ven ots length u% onput of length length , 1N44( tnt ethe length of.+he base % valda te length urM end endSuorth length uni) case tength length o9s4 Case (ase c length- lengthP。.64 Cas e m end cas e case 0CCuse Casef height, hegh0304t Casem 7 Calculat e volume metetsn, vol prnf (the volume of the Py-samd so c Enle the nth d the

Add a comment
Know the answer?
Add Answer to:
I need help solving these questions,please don’t know how to solve it by using matlab.!
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