Determine the size for variables used in matlab program

Assignment Help MATLAB Programming
Reference no: EM1370498

Q1) This question is based on matlab..

for i=1:a*b
z(i)=i*a-b;
end

a) if b=3, a=6 how many loops would the following program do?

b) what would be the out put for z(4)?

c) what would be the size (in rows and columns) for variables z, i and b ??

d) of these 3 variables which are scalars and which are arrays?

Reference no: EM1370498

Questions Cloud

Encrypt block in block cipher using key : Suppose that there is block cipher ABC that always encrypts block of b=72 bits using key of k= 60 bits. Prove that XYZ doesn't give much stronger security than ABC.
Characteristics of a statement of cash flow : Discuss and explain the reasons why net income for a particular period does not necessarily reflect a firm's cash flow during that same period.
Computing optimal output of competitive firm : It is supposed that the liquid soap market is perfectly competitive and current price of a case of liquid soap is $42.00. The firm has estimated it's marginal cost function to be as follows: MC=0.006Q.
Find the total current market value of firm debt : In order to accurately assess the capital structure of a company, it is necessary to convert its balance sheet figures to a market value basis. KJM Company's balance sheet as of today,
Determine the size for variables used in matlab program : If b=3, a=6 how many loops would the given program do? what will be the out put for z(4)? what would be size (in rows and columns) for variables z, i and b?
Determining optimal output and price levels : Now assume that there're five firms in the industry, and that they collude to set the price. What price will they set? What will be the output of each firm? What will be the profit of each firm?
Compute effective rate on the bank loan : Bright Flashlight Corporation requires $300,000 to take a cash discount of 2/10, net 70. A bank will loan the money for 60 days at a total interest cost of $5,500.
Describe how if a project manager expects a team to exercise : Describe how if a project manager expects a team to exercise their own judgment and the project manager must provide the team with decision making experience.
Calculate the paid interest amount : Nancy Tai has recently opened a revolving charge account with MasterCard. Her credit limit is $1000, but she has not charged that much since starting the account.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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