Question: EXERCISE 4 Write a script file that creates a row vector v containing all the powers of 3 that are ( strictly ) less than

EXERCISE 4
Write a script file that creates a row vector v containing all the powers of 3 that are (strictly) less than
105. The output vector should have the form: v=[3,9,27,81dots]. Use the while loop.
if statement
The basic structure of an if statement is the following:
if condition
y={x3+2,x11x-2,x>1xx=2yx=2y=f(x)x==2x=2'x1y=x-3+2;y=1x-2;xx=-1,x=2x=4f(-1)=f(2)yx=2>f(4)
 EXERCISE 4 Write a script file that creates a row vector

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!