Question: 1-Write a matlab program that firstly takes 8 different numbers from a user. Secondly, you should put 8 numbers into an 2x4 matrix. Thirdly, you

1-Write a matlab program that firstly takes 8 different numbers from a user. Secondly, you should put 8 numbers into an 2x4 matrix. Thirdly, you should find max number, min number, index of max. number, index of min. number, length, number of elements, sum of elements, average of elements, row number, column number. Then, put all of them into a 1x10 vector. Finally, show the result on command window using both disp and fprintf functions separately. 2-Can you generate a random integer number without using randi? If the answer is yes, how? If the answer is no, why not? 3-Generate 25 different values between 2 and 8 and hold a vector. Calculate sinus, cosinus and logarithm values of three vectors and hold results into another three vectors. Plot the graph of them in one figure and in one graph. Give names for x and y axes. Give a name for the title of the graph. Show legend information. Show x axis values between 5 and 30. Show y axis values between -5 and 5. 4- Hold [6,6,4,1,4,6,3] them into a vector. Plot histogram, pie, vertical bar and horizontal bar graphs of the vector, respectively. Show four graphs in one figure and four different graphs 5-Define a vector that contains [0,1,2,3,4,3,2,1,2,3,4,5,6,7,8,7,6,5,4]. Find local minimum and local maximum points on this vector. Hold their x and y coordinates. Plot the graph of the vector and mark all local minimum and local maximum points you found. 6 Define a vector that contains randomly generated 50 values. Find local minimum and local maximum points on this vector. Hold their x and y coordinates. Plot the graph of the vector and mark all local minimum and local maximum points you found.

(3-4-5-6. questions about the plot. i need all solutions in MATLAB.)

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!