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

RESISTACE, What is the value of a resistor marked as 47KK?

What is the value of a resistor marked as 47KK?

Determine line voltage for the y- connected machine, A 3-phase, 16-pole syn...

A 3-phase, 16-pole synchronous machine is driven by a prime mover at a speed of 600-rpm with the stator open circuited. The rotor flux per pole is 0.025-Wb. Determine (a) the fr

Analogue and digital, 1. Pattern recognition A synchronous sequential machi...

1. Pattern recognition A synchronous sequential machine is to generate 1 on output z after the next clock pulse whenever the bit sequence on input x has exactly two 0’s in the last

Find resistance of the armature circuit and field circuit, When delivering ...

When delivering rated load a 10-kW, 230-V self excited shunt generator has an armature-circuit voltage drop that is 6% of the terminal voltage and a shunt-field current equal to 4%

Form factor, Significance of form factor,why we decide the power handing ca...

Significance of form factor,why we decide the power handing capacity in transmission with the help of form factor?

Determine the upper limit of tdm signal, A TDM signal of the type is formed...

A TDM signal of the type is formed by samplingM voice signals at fs = 8 kHz. If the TDM signal then modulates the amplitude of a 4-MHz carrier for radio transmission, determine the

For which type of measurement thermocouples are used, Thermocouples are use...

Thermocouples are used for the measurement of (A)  Humidity.                                   (B) Pressure. (C) Temperature.                               (D) Density.

Low pressure gas hazards, Low Pressure Gas Hazards : Safety screens and wi...

Low Pressure Gas Hazards : Safety screens and wire-mesh guards should be placed round evacuated glassware and safety goggles or a face shield must be worn against the possibility

Find the rotor copper loss, A three-phase, 50-hp, 440-V, 60-Hz, four-pole, ...

A three-phase, 50-hp, 440-V, 60-Hz, four-pole, wound-rotor inductionmotor operates at a slip of 0.03 at full load,with its slip rings short-circuited. The motor is capable of devel

Discuss electrical properties of insulating materials, Discuss electrical p...

Discuss electrical properties of insulating materials. Electrical properties of an insulating material are As Follows: Insulation resistance - It is the property, through

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