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
Define some Huntington postulates - Boolean Algebra? Postulates 1. Commutative Law (a) A + B = B + A (b) A B = B A 2. Distributive Law (a) A (B + C) = A B + A

Q. The equations for a two-port network are given by V 1 = z 11 I 1 + z 12 I 2 0 = z 21 I 1 + (z 22 + Z L )I 2 V 2 = - I 2 Z L (a) Satisfying the equations, dev

Q. Explain the working of a photo - transistor with a sketch A second optoelectronic device that conducts current when exposed to light is the PHOTOTRANSISTOR. A phototransisto

Can someone please guide me on how to compute a nash equilibrium in matlab

Role of StakeHolders in Distribution Reform These challenges could be met only by comprehensive reforms in the distribution sector. Earlier, you have studied about the roles o

#questionfrfrfrfr..

Process The rectangle symbol  is used to represent  the process  operations as shown below.   MOV A, B

It has been known for a thousand years or more (originating in China) that certain (magnetic) materials would always orientate    themselves in a  particular direction if suspended

Discuss any one application of 8254 Programmable Interval Timer in detail. Mode1 causes the counter to treat as a retriggerable monostable multivibrator one shot. The G inpu

Q. Two shunt generators operate in parallel to supply a total load current of 3000 A. Each machine has an armature resistance of 0.05and a field resistance of 100. If the generat