Project

coding basics

1. A = [1,2,3,4,5]
A =

   1   2   3   4   5


2.B=[1;2;3;4;5]
B =

   1
   2
   3
   4
   5


3.C = A*B\'
error: operator *: nonconformant arguments (op1 is 1x5, op2 is 1x5)


4.C = B*A
C =

    1    2    3    4    5
    2    4    6    8   10
    3    6    9   12   15
    4    8   12   16   20
    5   10   15   20   25


5.A(1:end)
ans =

   1   2   3   4   5


6.A(1:2)
ans =

   1   2


7.B(1:2,3)
error: A(I,J): column index out of bounds; value 3 out of bound 1


8.B(length(B)-2)
ans =  3
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.