Output:
For all questions, write commands in Matlab (or Octave) that you would use to solve the...
PLEASE USE MATLAB COMMANDS THANK YOU Use Matlab to graph the functions f(x) = 3xsin(3x) and g(x)= 12 - 2x² so that you can read off the point(s) of intersection (if any), accurate up to two decimal places. 1) Write down the Matlab command(s) you used to create the x-vector. 2) Write down the Matlab command(s) you used to produce the vectors containing the f- and g-function values. 3) Write down the Matlab command(s) you used to plot the graphs....
3. (3 points) Write the sequence of MATLAB commands that you would use to produce a plot depicting the rotini-like surface defined by: for radii (r) going from 0 to 1 (21 values) and angles (θ) going from-10π to 10π (501 values). Your sequence of commands should define rectangular grids of radii and angles, transform them to cartesian coordinates (x.y), compute z, and plot the result as a solid surface, without gridlines (use shading command), with equally scaled x, y...
Comprehension Check 1. Write commands to solve the equation e <x+2 by graphing functions and determining points of intersection. Putting it All Together Create a new section in your Live Script for this portion. Include all commands, output and graphs you use. Add explanations as needed. Consider the function below (after giving it your name and filling in the month and day of the month of your birth). -YOUR-NAME-(x) 《cos (.5#x)-exp《co s (x-Day)))/sqrt(Month-x^2) - Use Matlab to do each of...
Solve in Matlab by using Script file: Problem 4: Write a user-defined MATLAB unction that calculates the determinant of a 3x3 matrix by using the formula: A22 A23 11 A32 A33 A23 A12 A31 A33 21 A For the function name and arguments use d3-det3by3 (A), where the input argument A is the matrix and the output argument d3 is the value of the determinant. Write the code of det3by3 such that it has a subfunction that calculates the 2x2...
İn MatLab (please don't use any find sum or zeros commands only use loops) 4) Write a function that takes a matrix and puts its columns into reverse order. Example: Input 6 2 1 8 6 5 | 4 1 6 4 3 8 0 5 2 5 Output 3 0 1 5 8 2 3 5 3 1 8 3 4 4 3 8 6 5 4 4
1.convert the following arithmetic expression into MATLAB and then evaluate it 27*8+84/12-64/8+33-(36-9). 2. write MATLAB commands to solve the following system of equations. 2x+5y-z=3 -6+3y-3z=-5 8x-6y+7z=-1 3. write MATLAB commans for y=sin2(4.12/6) and give its numerical value.
please solve in matlab 1[35p) Write a user-defined MATLAB function that determines the unit vector in the direction of the line that connects two points (A and B) in space. For the func- tion name and arguments, use n = unitvec (A,B). The input to the function are two vectors A and B, each with the Cartesian coordinates of the corre- sponding point. The output is a vector with the components of the unit vector Join the direction from A...
Need help with this MatLab exercise. Please show all commands in MatLab. Enter the following matrices and vectors in MATLAB [ 2 -6 3 ] [ 5 ] -3 A= 2 -7 -2 , B= 2 -2 -3 , b= -13 , c= 3 -1 4], d= 0 [ 7 -2 7 [1 -8 -1 ] [ 10 (a) Perform the following operations: AB, BA, CA and Bd (use standard linear algebra multiplication). - 3 (b) Construct a 6 x...
Compute the following problems using Math Lab. Instructions: Answer All Questions using MATLAB commands. Question 1. Create a vector of the even whole numbers between 31 and 75. Question 2. Let x [2516] a. Add 16 to each element b. Add 3 to just the odd-index elcments c. Compute the square root of each element d. Compute the square of each element Question 3. Let x 13 268T and y [4 1 3 5] (NB. x and y should be...
solve all questions simply by using Matlab writh all steps here please 1 Normal 1 No Spac.. Heading 1 Heading2 Title Subtitle Subtle Em... Ep Paragraph Styles 7. Write an M-file that creates subplots (not superimposed) of Yfor n[:5) and X= [-10 : 0.01 : 101. Each subplot's Y axis should have an appropriate title. 8. Write a Matlab program to calculate the values of the function ro-ssint for all t where sint >0 f(t)=t0 elsewhere. 6π at intervals of...