matlab, Electrical Engineering

Assignment Help:
Exercise 1: Data array manipulation and selection using for loops
These exercises demonstrate the use of for loops in array manipulation and selection.
a) Write a user-defined function named reverse_array(x) which reverses the positions of
any input argument data array and output the results in the MATLAB Command Window.
(The function should work on any sized array; TAs will check with array of their choosing)
b) for loops and if conditional statements
i) Write a user-defined function named max_element(x) which determines the
maximum element in any input argument data array and output the results in MATLAB.
ii) Write a user-defined function named min_element(x) which determines the
minimum element in any input argument data array and output the results in the
MATLAB.

Related Discussions:- matlab

Equipment parameter data, Equipment parameter data: The schematic diag...

Equipment parameter data: The schematic diagrams for existing substations have to be prepared along with information of power transformer rating and numbers, impedance values,

Find the slip and the rotor frequency at full load, Q. A three-phase, 50-Hz...

Q. A three-phase, 50-Hz induction motor has a full load speed of 700 r/min and a no-load speed of 740 r/min. (a) How many poles does the machine have? (b) Find the slip and t

Show the block diagram for a 3-bit ripple counter, Q. (a) For a JKFFwith JK...

Q. (a) For a JKFFwith JK = 11, the output changes on every clock pulse. The change will be coincident with the clock pulse trailing edge and the flip-flop is said to toggle, when T

Explain norton''s theorem procedure, Norton's theorem procedure: 1.  Re...

Norton's theorem procedure: 1.  Remove R L from the circuit. Search I N by shorting links output terminal. 2.  Search R N by short-circuit voltage source or open-circuit

Calculate total resistance, Calculate total resistance among terminal A and...

Calculate total resistance among terminal A and B for the circuit below.

On a scale of one to ten, TRAPS: Give a perfect 10, and you'll seem too sim...

TRAPS: Give a perfect 10, and you'll seem too simple to please. Give anything less than a perfect 10, and he could press you as to where you're being significant, and that road lea

Determine the motor current and speed, A dc series motor is connected to a ...

A dc series motor is connected to a load. The torque varies as the square of the speed.With the diverter-circuit open, the motor takes 20 A and runs at 500 r/min. Determine the mot

Give illustration of and and or gate - microprocessor, Give Illustration of...

Give Illustration of AND and OR Gate - Microprocessor? Illustration: The image below demonstrate the 4 possible inputs into a 2-input AND gate and all the corresponding outputs

Find an expression for the total flux, Q. A rectangular loop is placed in t...

Q. A rectangular loop is placed in the field of an infinitely long straight conductor carrying a current of I amperes, as shown in Figure. Find an expression for the total

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd