Help with MatLab hw??
G = [0.1:.1:.7; 10:-1:4; 0:.2:1.2; 5:-2:-7]
G =
0.1000 0.2000 0.3000 0.4000 0.5000 0.6000 0.7000
10.0000 9.0000 8.0000 7.0000 6.0000 5.0000 4.0000 0 0.2000 0.4000 0.6000 0.8000 1.0000 1.2000 5.0000 3.0000 1.0000 -1.0000 -3.0000 -5.0000 -7.0000
My professor wants us to creat a 3x4 matrix called XZ from the first, third and fourth rows and the first two and last two columns. I learn nothing in class because he reads off of powerpoint slides and barely uses the app. Please help.
I've been using this to help, but its confusing. I took this straight form the slides.
B = [1 2 3 4 5;2:2:10;11:15 linspace(50,10,5)] B = 1 2 3 4 5 2 4 6 8 10 11 12 13 14 15 50 40 30 20 10 Last_Row = B(end,:) Last_Row = 50 40 30 20 10 Last_Col = B(:,end) Last_Col = 5 10 15 10 Sub_B = B(2:3,2:4) Sub_B = 4 6 8 12 13 14
Posted Feb 17, 2017, 3:10 AM UTC