outputs;
1) A=[1,2,3] B=[2,3,5]
A.*B=[2,6,15]
(A.*B is the element-by-element product of the arrays A and B. A and B must have the same size)
2) J=[1,4,6;5,7,9];J[2,1] command gives parse syntax error because we can't access the elements of matrix by syntax J[2,1] to correct this syntax we hava to use J(2,1) as follows
J=[1,4,6;5,7,9];J(2,1)=5 is output. (J(2,1) is used to access 2nd row 1st column element in the J matrix)
-------------------------------------------
Hope you understand.Upvote me.Thank you.
Q3: Write the output of the following MATLAB commands. A-[1 2 31. B-12 3 5), A.B...
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.
#11 and #13 MATLAB ASsignment #1: Solve the following problems by writing commands in by writing a program in a seript file and executing the file. Tum in a printout of the results and email the m file. All work should be individual, not shared. 11. Let x 2 then evaluate 2 4 3x X x+1 12. Evaluate the trigonomctric identity for 12° 4 tanx 4tan3x 1-6tan x+tanx 13. In the triangle shown a 5 in, b 7 in, and...
MATLAB HELP Solve this problem first by hand and then check your answers in MATLAB. Write the output of the following commands when executed sequentially (i.e. in the order shown, from top to bottom) in the MATLAB command window Expression ans logical a) (6 + 3) >= 8 < 1 11 false 4 > (2 + 9) 11 ~true <- (-2*0.5) 4 + (4 < 7) (3&2) 0) d) e) Given |x= [10, 2, 6, 0, -31: y=[9, 0, 2,...
matlap Question 1 1. Consider the following Matlab program 5 - (2 < 3) & (C2 > 3) 1 (1 - 0)) What is the final value of s? A. True B. *1 CO D. false 2- Which expression tests whether variable x is between (but not the same as) the values 5 and 10 (a) 5 <x< 10 (b) 5 <= x <= 10 (c) 5 < X & X > 10 (d) x < 10 & 5 <...
matlab help Write a script to manipulate the array A = [2 1 4 3 6 5 8 7 10 9 12 11 14 13 16 15 18 17 20 19] to be in descending order without using the sort function. You must do everything using array manipulation in MATLAB (i.e. you cannot sort it by hand and then hardcode it, you cannot simply create the array 1:20, you cannot simply add .rej3mat(J-l 1],1,10) to A). Write a script that...
Use MATLAB OR SCILAB TO PERFORM THE FOLLOWING MATRIX OPERATION Use MATLAB or Scilab to perform the following matrix operation 1 7 -2 3 10 91 5 -1 1) 2 51 13 7 -54 21 31 4 -15 2 9 6 18 -4 -2 31 Input: (copy and paste the MATLAB or Scilab command in the following box) Output: (copy and paste the output in the following box)
For all questions, write commands in Matlab (or Octave) that you would use to solve the exercises, not the result. For all exercises, you must write the commands that you would use to solve them, not the result 1. Compute sin(/5), e2v17 +4.(-33) 2. Write an anonymous function with the formula f) sin 2 3. 3. Write the function above so that it can be applied to vectors of arguments 4. Graph the function from-5 to 5 How would you...
İ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
The Output of the following Commands: 1. Output of the cp -v /etc/host 2. Output of the mv -v /tmp/myfile ~ 3. Output of the rm -v file.txt 4. Output of the rmdir -v data 5. Output of the rm -v file.txt
MATLAB Assignment #1: Solve the following problems by writing commands in by writing a program in a script file and executing the file. Tum in a printout of the results and email the m file. All work should be individual, not shared 9. Let a 13, b= 4.2 (4b) abc d= ab+c then evaluate da - (a- )(c+ d) cb c+ d 10. A cube has a side of 18 cm. Detemine the radius of a sphere that has the...