Project

Creating a row and column vector in matlab

% Creating a row and column vector

clear all

close all

clc

% Row vector

% A is a row vector with 1 row and 5 columns

A=(1 2 3 4 5)

% Column vector

% B is a column vector with 1 column and 5 rows

B=(5

4

3

2

1)

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.