Project

Commands for row and column vector in Matlab

Here are some of the commands to create a row and column vector in Matlab:

% Commands to create rows and column vector in Matlab

% Row vector
A=[1 2 3 1]
% Column vector
B=[1;8;5;8]
% to create a row vector from a range of \'a\' to \'b\'
C=[2:4]
% to create a matrix of 3*3
D=[1 2 3;4 5 6;7 8 9]
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.