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
a) Write short notes on part feeding devices and transfer mechanism. b) Explain with example automation for machining operation with relevant diagrams. c) discuss different p

Zener Diode A Zener diode is a sort of diode that allows current not only in the forward direction such as a normal diode, but as well in the reverse direction if the voltage


What is the main difference between 16 bit and 32 bit versions of C/C++ while using in line assembler. The 32-bit applications are written by using Microsoft Visual C/C++ for t

Consider the magnetic circuit of Figure with an air gap, while neglecting leakage flux. Correct for fringing by adding the length of the air gap l g = 0.1 mm to each of the other

Q. What is inter digit time? Break time is nominally 61 ms and make time is nominally 39ms. Digits are separated by idle period of 300 ms known as inter digit time. It is vital

Q. A 230-V, single-phase, 60-Hz source supplies two loads in parallel. One draws 10 kVA at a lagging power factor of 0.80 and the other draws 6 kWat a lagging power factor of 0.90.

Static or Electronic Energy Meters Electronic energy meters are replacing traditional electromechanical meters in several residential, commercial and industrial applications s

Merits: 1.      It is very simple to shift the operating point anywhere in the active region by just changing the base resistor (R B ). 2.      A very small number of compon

Q.   what is oscilloscope probe compensation and how is it adjusted?  What effects are noted when the compensation is not correctly adjustment? Direct Probe: This probe  is