Project

To create row and column vector

%program to create a row vector and a column vector
clear all
close all
clc

%row vector
row=[1 2 3 4 5 6]

%column vector
coulumn=[1;2;3;4;5]

%end
row =

     1     2     3     4     5     6


coulumn =

     1
     2
     3
     4
     5


Published with MATLAB® R2017b

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.