Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write one MATLAB program and make use of the MATLABs menu command that creates three (3) interactive menu buttons to solve the following 3 problems.

Write one MATLAB program and make use of the MATLABs menu command that creates three (3) interactive menu buttons to solve the following 3 problems. Label the buttons, for example, as Solution 1, Solution 2, and Solution 3. Present one solution when each menu button is clicked. Menu Example:

choice = menu('Choose a unit','in','ft','yd','m','cm','mm');

R = input('Input a value for the radius:');

result = (pi*R^2); switch choice case 1

result = pi*R^2; case 2

result = result/12; case 3

result = result/36; case 4

result = result * .0254; case 5

result = result * 2.54; case 6

result = result * 25.4; end

Problem 1:

image text in transcribed

The electrical circuit shown consists of resistors and voltage sources. Determine i1, i2, i3, and i4, using the mesh current method based on Kirchhoffs voltage law. Print each current name and its answer in one line on screen.

(An example of the result shown in the command window can look like the following:) i1 = 1.131 i2 = -1.7795 i3 = 0.67249 i4 = -3.9389

Problem 2:

image text in transcribed

(The answer should look like the following figure.)

image text in transcribed

(After clicking on the Rotate 3D button and rotate the figure, the curve can look like below.)

image text in transcribed

Problem 3:

image text in transcribed

(The answer should look like the following figure.)

image text in transcribed

4 2 18 V 6 SR 4 SQ 18 V 4 2 2 2 2.52 3 2 i4 L I I 12 28 V

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions