I need help with coding I keep getting an error and i cant f

I need help with coding. I keep getting an error and i cant figure it out.

Working with MATLAB scalars, vectors, and complex numbers. Using MATLAB, define a unique variable for the following quantities. 5 (ex. Define x = 5, etc.) 25^2 (3 + 4i) + 8^2 Squareroot 36 + 7^2 e^72/5 + 6.54 the area of a circle of radius 11.21 the circumference of the same circle in (f) the area of a square with side length 7.81 the side length of a cube of volume 107.81. the magnitude of the vector in (c) Using built-in functions to manipulate MATLAB variables. define the following vector: (problems a - f) v = what is the max and minimum value of the above vector? In what elements are these values found? find the squareroot , cube root and 7^th root of this vector using a single operation. what is the length of the vector? How many elements does it have? (you must use MATLAB to determine/prove this) Replace the max value of the vector with a value 8.1x its size without redefining the entire vector. Do the same with the minimum value. create a new, unique, vector containing the 3^rd, 7^th and last values of the vector in (a). define a vector from 0 to 10 with 100 equally spaced entries define a vector ranging from 110 to 120 with a step size of 0.1. What is the length of the resulting vector? evaluate the trigonometric functions sin and cos from 0 to 2 pi radians in steps of 0.1.

Solution

MATLAB CODE FOR QUESTION NO. 01

RUN THIS SCRIPT IN MATLAB . YOU WILL GET THE OUTPUT AS REQUIRED.

A = 5
B = A^2
C = (3+ 4i) + 8^2
D = sqrt(36 + 7^2)
E = exp((72/5) + 6.54)
r = 11.21; %radius of circle
F = pi*r^2 %area of circle
G = 2*pi*r % circumference of the circle
l = 7.81; % side length of square
H = l^2 % area of square with side length l
v = 107.81; % volume of the cube
I = v^(1/3) % side length of the cube
J = abs(C)

I need help with coding. I keep getting an error and i cant figure it out. Working with MATLAB scalars, vectors, and complex numbers. Using MATLAB, define a uni

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site