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
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

Q. What do you mean by Continuous signals? Continuous signals are described by time functionswhich are defined for all values of t (a continuous variable). Commercial broadcast

Compute the total capacitance with parallel connection: Three capacitors C 1 , C 2 and C 3 contain capacitance 20 μf, 15 μf, 30 μf, respectively. compute: 1. Charge on ea

scientific method in operations research

Q. Find the voltage gain of the overall circuit? (a) Consider the circuit of the inverting amplifier shown in Figure (a), including an ideal op amp. Show that the voltage gain

Analysis of Frequency Response with PSpice and PROBE PSpice can readily accomplish the circuit analysis as a function of frequency, and PROBE can display Bode plots for magnitu

Q. What do you mean by Instrument transformers? These are generally of two types, potential transformers (PTs) and current transformers (CTs). They are designed in such a way t

Estimate the software tasks required for developing the product. These are likely to include the development of various software routines, associated documentation and verification

Explain index mode and base address mode (with examples) available in microprocessors. Index Mode and Base Address Mode: Address supplied through the instruction is adde

what are the significance of solid state devices in electrical engineering