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

Obtain the z-parameters for the circuit, Q. (a) Consider the capacitor -...

Q. (a) Consider the capacitor - input filter circuit of Figure and obtain the z-parameters for the circuit. (b) Determine the transfer function V 2 /V 1 when I 2 is zero.

Find the small-signal equivalent circuit parameters, Given that a BJT has β...

Given that a BJT has β = 60, an operating point defined by I CQ = 2.5 mA, and an Early voltage V A = 50 V. Find the small-signal equivalent circuit parameters g m , r o , and rπ.

Determine the disadvantages of GPS system, Determine the disadvantages of G...

Determine the disadvantages of GPS system -  Maps not up to date hence instructed to carry out an incorrect manoeuvre (for example turn into a road that no longer exists) -

Find the new operating point in transistor, Q. A transistor in a fixed bias...

Q. A transistor in a fixed bias amplifier circuit was replaced by another transistor of beta equaling 150 instead of 60.if IB of transistor is equal to 100 microampere and collecto

Arduino Microcontroller, Hi. Do you do projects with Arduino microcontrolle...

Hi. Do you do projects with Arduino microcontroller? How much does it cost?

Spread time - power semiconductor devices , Spread Time (t s ) During  ...

Spread Time (t s ) During  spread time anode  voltage  falls from 10% I a  to the  on state  voltage  drop  and anode  current  rises  from 90% I a   to final  value  of anode

Introduction to electronics, Explain the difference between a microprocesso...

Explain the difference between a microprocessor and an embedded microcontroller

Machine, explain inifinite bus

explain inifinite bus

Find the voltage ratio, Q. (a) Two amplifiers, which can be represented by ...

Q. (a) Two amplifiers, which can be represented by the model of Figure of the text, are connected in cascade (that is, head to tail), as shown in Figure. Let their parameters be R

Input output operations , Input Output Operations Many times microproc...

Input Output Operations Many times microprocessor has to  accept data  from input port and send data to  output  port to  interact with the  real world. Input  port is  tri st

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