Question: Must have: The script when it start it must clear the command windows and workspase history, and foreach statement you must: a . add display

Must have:
The script when it start it must clear the command windows and workspase history, and
foreach statement you must:
a. add display/fprintf to print the question number,
b. add display/fprintf to print the question text, and
c. add display/fprintf to print the question output/result/answer.
2 Scalar variables.Make the following variables:
g=9.81
a=10
b=3.141021
c=2+3i, where i is the square root of -1
d=ej23, where j is the square root of -1 and e is Euler's number ?1(use exp, pi)
3 Vector variables. Make the following variables:
vec1=3.14,15,9,26
vec2={:[5.23]423102
vec 3=5,4.8,dots,-4.8,-5, all the numbers from 5 to -5 increments of -0.2
vec 4=100,100.01,dots,100.09,101, logarithmically spaced numbers between 1 and 10, use logspace, make
sure you get the length right
vec 4= Hello, this is a string, which is a vector of characters, what is the length of this vector? use MATLAB
statement to get the length
 Must have: The script when it start it must clear the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!