Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Main topics: Plotting 1. Open MATLAB 2. Create a Function file named Lab08 (a) R

ID: 3759775 • Letter: M

Question

Main topics: Plotting 1. Open MATLAB 2. Create a Function file named Lab08 (a) Right click Current Folder title of that window (b) Select New File by moving mouse to that option (c) Click on Script in the pop-up menu (d) Type Lab08 in the highlight field and hit the enter key 3. Double click the Lab08.m entry (that you just created) in the Current Folder window 4. Modify the Sript file so that it: (a) Generates six random x coordinates in the range of [10, 10] (b) Generates six random y coordinates in the range of [10, 10] (c) Plots the six resulting points (x1,y1)... in a single grid window, whose axis are defined to be [10, 10]. Use a diamond for your Mark, and a different color for each point give me the codes please, thanks

Explanation / Answer

lowx=-10
highx=10
num=6
x=lowx+rand(1,num)*(highx-lowx)
lowy=-10
highy=10
num1=6
y=lowy+rand(1,num1)*(highy-lowy)
plot(x,y,'d')

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote