matlab, Electrical Engineering

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.
Posted Date: 1/17/2013 12:08:01 AM | Location : United States







Related Discussions:- matlab, Assignment Help, Ask Question on matlab, Get Answer, Expert's Help, matlab Discussions

Write discussion on matlab
Your posts are moderated
Related Questions

Explain the meaning of Synchronous Counters? In the synchronous counters the clock inputs of all the flip-flops are connected together and are triggered by the input pulses, the

Q A handbook lists the 60-Hz resistance at 50°C of a 900-kcmil aluminumconductor as 0.1185/mile. If four such conductors are used in parallel to form a line, determine the 60-Hz r

Discuss classification of conducting materials into low resistivity and high resistivity materials. Conducting materials are categorized as low resistivity materials and high r

Explain Open Loop Control Systems In an open-loop control system, the controller independently computes exact voltage or current required by the actuator to do the job and send

Externally  Initiated Signals Other than  interrupt  there are followings externally initiated  signals  available in 8085 microprocessor.

explain speed control of dc motor

Discuss DOS function call with one example. DOS function call: So as to use DOS function calls, always place the function number in register AH and load all other pertinent

Ask questCompute the mean and variance of a four-level image with histogram p(z\ ) = 0.1, p{zi) = 0.4, ?(1?) =0.3, p{za) = 0.2. Assume that z\ = 0, zi = 1, z$ = 2, and ? — ?. i

The term representing the energy stored in the coil may be written in terms of the inductance of the coil as... The energy stored in the coil increases with the square of t