Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function that is called pickone, which will receive one input argument x, which is a vector, and will return one randomly selected element

image text in transcribed
image text in transcribed
Write a function that is called pickone, which will receive one input argument x, which is a vector, and will return one randomly selected element from the vector. 1. 2. Write a function that converts inches to feet and prints a message indicating the vale in inches and its corresponding value in feet. 3. Write a script that would create a 5x5 matrix of random integers. From this, create another matrix variable which is the middle 3x3 part of the original matrix. 4. Write a function that will receive one vector as input and will return another vector with values arranged in the opposite order. For example, if you input |1 2 3], you should get back [3 2 1]. Vector A has magnitude of 11 m/s? and makes an angle of 65 degrees with the positive x-axis, and vector B has Cartesian components Bx 4 m/s2 and By 3 m/s2. If C A+ B, write a MATLAB scapt to: 5. a. Find the x- and y- components of C. b. What are the magnitude and direction of C? 6. Write a MATLAB function to compute unit vectors in the direction of a given 15 Vector A has magnitude of 11 m/s2 and makes an angle of 65 degrees with the positive x-axis, and vector B has Cartesian components Bx = 4 m/s? and By =-3 m/s2. If C = A + B, write a MATLAB 5. script to: a. Find the x and y- components of C. b. What are the magnituded direction of C? function to compute unit vectors in the direction of a given vector. Use your function to compute unit vector along the vector (5,-3, 2). 7. Write a script that plots exp(x) and log(x) for values ranging from 0 to 3.5. 8. Write a MATLAB function that takes two matrices A'and B, checks if A*B can be computed. Then, instead of using the MATLAB operator " build a code to multiply the two matrices. Write your code in a general way such that the user can input matrix of any dimension

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

Students also viewed these Databases questions

Question

=+4. What do you think?

Answered: 1 week ago