Question

Task 1 The equivalent resistance Req of four resistors R1, R2, R3 and R4 connected in series is given as eq.series R1 R2 R3 RTask 5 The average atmospheric pressure on Earth is approximated as a function of altitude by the relation Patm-101.325a - 0.Use MATLAB to solve these problems, thank u

Task 1 The equivalent resistance Req of four resistors R1, R2, R3 and R4 connected in series is given as eq.series R1 R2 R3 R4. The equivalent resistance Req of four resistors R1, R2, R3 and R4 connected in parallel is given as q.parallel K1R2R3 R Write an m-file that does the following in order: Prompt the user for the type of connection (e.g. user should enter "1" for series and "2" for parallel) Prompt the user to enter the number of resistors, n Prompt the user to enter the values of the resistors in vector form, R Check if the user has entered the correct number of resistors. If not, your program should end with an error message stating incorrect input. 1. 2. 3. 4. 5. Compute the equivalent resistance and output the following statement using fprintf): The equivalent resistance of X resistors of values X, X, X connected in X is X. Here X represents the appropriate variables E.g. The equivalent resistance of 3 resistors of values 5, 7, 9 connected in series is 21. Hint: you may need to use the error() function Hint: you may need to use the num2str() function. Activate W Go to Settings
Task 5 The average atmospheric pressure on Earth is approximated as a function of altitude by the relation Patm-101.325a - 0.022562)5256 Where Patm is in kPa and z is in km. a) Create a function that computes the outputs Patm provided z is known. b) Create a separate m-file which produces a z vector from 0 to 10km with increments of 25m Plot Patm against z as a red dashed line, remembering to label your plot. Turn the grid on. On the same plot you should mark with blue circles the pressure values for Perisher Valley (F|740m), Hotham heights (z=1700m), Canberra (z-660m), Yamdrok Lake (z=4441m), Lipulekh Pass (z-5334m), Jejudo (z-1950m) and the top of Mount Everest (z-8848m) c)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

type input (\nSelect type of connection \n 1: Series \n 2: Parallel \nEnter Choice : ); n - input (nEnter the number of reCommand Windo >> EqResistance Select type of connection 1:Series 2: Parallel Enter Choice: 1 Enter the number of resistors:3

Question 2:

Function:

function P_atm -atm pressure (2) P atm-101.325.(10.02256z).5.256 end

Script:

z-0:25 10A-3:10: 2 Per 1740: z Hot - 1700: z_Can - 660: zYam 4441; z_Lip-5334; - Jej = 1950; z_Mount -8848; zl。с = (10^-3)*[z

Atmospheric Pressure vs. Altitude 110 100ト , 90 T 80 으 70 60 50 40 30 20 0 1 234 5 6 789 10 Altitude [km]

Add a comment
Know the answer?
Add Answer to:
Task 1 The equivalent resistance Req of four resistors R1, R2, R3 and R4 connected in series is g...
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