Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago