Write a program in a script file that creates a n-m matrix

Assignment Help Electrical Engineering
Reference no: EM13253019

Write a program in a script file that creates a nxm matrix with elements that have the following values. The values of the elements in the first row is the number of the column. The value of the element in the first column is the number of the row. The rest of the elements are equal to the sum of the element above them and the element to the left. When executed, the program asks the user to enter values for n and m.

Hint: Use for and if else if else loops Your Solution should look like this:

enter the rows3

enter the columns3

>>A = 123 247 3 7 14

enter the rows4

enter the columns5

>>A = 12345 24 7 11 16 7 14 25 41 11 25 5091

Reference no: EM13253019

Questions Cloud

Find current which flows in parallel resistor combination : 4 resistors are connected in electrical parallel. R1=2 OHM, R2= 4 OHM, R3= 6 OHM, R4= 8 OHM. if this parallel resistor combination is placed across an ideal current source = 3A.
Explain monofluoro derivatives of methylcyclopentane : Draw the structures of all monofluoro derivatives of methylcyclopentane, C6H11F, which have the fluorine on a secondary carbon
Determine the speed of the test charge : Two identical point charges are fixed at opposite corners of a square whose sides have a length of A test charge, Determine the speed of the test charge when it reaches the center of the square
What is the eight month forward rate for one dollar : What does this indicate about the market's inflation expectations in Japan compared to the US?
Write a program in a script file that creates a n-m matrix : The value of the element in the first column is the number of the row. The rest of the elements are equal to the sum of the element above them and the element to the left. When executed, the program asks the user to enter values for n and m.
Find fraction of total energy transferred to the particle : A 0.15 kg particle moving to the left with a speed of 0.05 m/s, Determine the final velocity of each particle and the fraction of total energy transferred to the 0.27 kg particle
Explain the full symbol for the atom of ion : give the full symbol for the atom of ion that has 26 protons and 30 neutrons in its nucleus and 23 electrons outside its nucleus. Also give the number of the group this element is in
Compare and contrast the two supercars : Compare and contrast the two supercars in about four paragraphs and an introductory paragraph a paragraph in which you discuss similarities
Explain smallest to largest first ionization energy : Arrange the atoms I, Zr, Ag, and rb for smallest to largest first ionization energy. what does this say about metals vs nonmetals

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Determine the charge and current flowing in the circuit

The capacitor in an RC circuit (R=10.0k Ohms and C=25.0uF) is initially uncharged. Determine the charge and current flowing in the circuit at 0.40 time constants (t=0.40 tau) after the circuit is connected to a 9.00 V battery.

  What are the rated full -load speeds of a motor

What are the rated full -load speeds of a 400HZ motor that may be connected for either two or four pole operation, assuming a full load slip of 4% for both cases

  Describe why the intrinsic carrier concentration changes

Describe why the intrinsic carrier concentration changes with temperature. This would include from very cold temperatures to 600K+ temperatures. Why does an extrinsic semiconductor become intrinsic above ~ 500K

  What two points associated with the load line

Discuss the steps required in calculating the collector-emitter voltage in a VDB circuit. Why does this circuit have a very stable Q point Discuss whether transistors being used as switching circuits should be biased in the active region.

  What is the sample period ts

What is the sample period Ts?

  Solve using gauss-seidel method perform four iterations

Solve Using Gauss-Seidel Method (Perform Four Iterations) Using the Gauss-Seidel method and the initial guess X1(0)=1, solve the following equation (x_1)^2 - 6x_1 + 2 = 0

  Determine power and limiting error of the power

determine power and limiting error of the power?

  Find the magnetic field at the origin

A semicircular current elment of radius b is positioned in the x-y plane and has its center at the origin. A second long current element is placed along the coordinate y= -b. If current magnitude I flows through each element in clockwise direction..

  What is the difference between the words

what is the difference between the words "rated as 3mA" , and "biased at 5mA" , when talking about a diode what is teh difference between saying " the diode is rated as a 3mA device", and " The diode is biased at a current of 0.5mA"

  Find the phase shift in degrees through the filter

The transfer function of a particular active low pass filter is G(s) = 200/[s(1+0.4s)(1+0.1s)]. a) At a frequency of 1.0Hz it is determined that the gain of this filter in dB b) Find the phase shift in degrees through the filter as the frequency appr..

  What is the value of the total circuit complex impedance

An input signal of 10V at 0o and a frequency of 1592 Hz is applied to a series RLC circuit with resistor R = 100 ohm, inductor L = 40 mH, and capacitor C = 0.5 F. The value of the total circuit complex impedance is

  Discuss the flat and segmented memory models

Discuss the flat and segmented memory models and provide an example

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