Project

                                                                CREATING A ROW AND COLUMN VECTOR IN MATLAB

program for creating a row and column vector :

%Creating a row and column vector

% in order to create a row and colum vector we are using linspace command

x = linspace(1,2,4);

y = linspace(1,2,4);

%In the above lines we are creating variable for X and y axis

% Now we are using meshgrid command to create a row and column vector

[xx, yy] = meshgrid(x,y);

disp(xx);

disp(yy);

Result:

We have created two row&column vectors

>> R_Colv

    1.0000    1.3333    1.6667    2.0000

    1.0000    1.3333    1.6667    2.0000

    1.0000    1.3333    1.6667    2.0000

    1.0000    1.3333    1.6667    2.0000

    1.0000    1.0000    1.0000    1.0000

    1.3333    1.3333    1.3333    1.3333

    1.6667    1.6667    1.6667    1.6667

    2.0000    2.0000    2.0000    2.0000

Screenshots


Sharable link: https://drive.google.com/open?id=1UiGxcXEycqchzn7Kk6Tsw8UnFls1veHE

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.