Write a valid matlab statement to calculate the value of x


Question 1:
Write a valid MATLAB statement to calculate the value of X.

X = 1/(2 + 3)2 + 4/5 x 6/7

Question 2:
What values will be contained by the following row vector rv?

>> rv = [3 55 11]

>> rv(4) = 2

rv = ?

Question 3:
The following MATLAB statement will do what?
A = [2:4; 3:5]

Question 4:
What will be the value of A(2,3) after execution of both the statements given below?
>>A = [2:4; 3:5]
>>A(2,3)

Question 5:
Describe the following expressions in sequential order.

>>mat = [2:4; 3:5];
>>mat(1,2) = 11
>>mat(2,:) = 5:7

Question 6:
A polynomial function p1(x) is given below. Write MATLAB statement(s) to find its roots.

p1(x) = 4x4 + 5x3 - 27 x2 - 25x - 20

Question 7:
Another polynomial p5(x) is given below. Write MATLAB statement (s) to find It's value when x = -4. Also calculate the value manually and submit the result.

p5(x) = x6 + 2x5 - 4x3 -4x2 + 3x + 2

Question 8:
Write MATLAB statements to plot the following waveform in the interval 0≤t≤5. Also write statements to label X-axis as t and Y-axis as f(t).

y = f(t) = 5e-2tcos3t -3e-4tsin2t + t2/t+1

Hint: use the statement t = 0: 0.01: 5; to define the interval.

Question 9:

Write MATLAB statements to save as ASCII text file the following waveform in the time interval 0≤t≤1. The time interval is to be split into 1024 points.

y = sin(10θt) + 1/3 sin(30θt)

Question 10:
Refer to the worksheet image given below - you want to calculate the equivalent CO2 emission in Kg in column K based on the Electricity usage in kWh per month. A conversion factor of 0.573 is used to convert Electricity consumption in kWh to equivalent CO2 in Kg. What formula will you use in cell K2 to do this conversion?

Question 11:

Refer to the following worksheet - you want to calculate the average monthly productions (in pieces) between the periods of January to December, which will be 131,200 pieces as indicated in cell k2. Write the correct form of function "average" to do this calculation.

2115_workbook.jpg

Question 12:
In order to modify the current style of your worksheet components, which tab, under the ribbon, you need to be on?

Question 13:
Refer to the worksheet below - you want to evaluate in Column G whether the daily sales of your company in Column F reaches the daily sales target of $30,000.00 or not. If it reaches the target, you want to display Y, if not you want to display N in the cells of column G. Write a conditional IF function that you can invoke in cell G3 to do this.

141_workbook1.jpg

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: Write a valid matlab statement to calculate the value of x
Reference No:- TGS02533457

Now Priced at $40 (50% Discount)

Recommended (95%)

Rated (4.7/5)