Project

A PROGRAM FOR CREATING A ROW VECTOR AND COLUMN VECTOR USING MATLAB

%A PROGRAM FOR CREATING A ROW AND COLUMN VECTOR USING MATLAB

clear all
close all
clc

Students_height_and_weight = [172,67;189,81;163,59;196,98]

%Column vector
Students_height = Students_height_and_weight(:,1);
Students_weight = Students_height_and_weight(:,2)

%Row vector
First_student_height_and_weight = Students_height_and_weight(1,:);
Second_student_height_and_weight =  Students_height_and_weight(2,:);
Third_student_height_and_weight = Students_height_and_weight(3,:);
Forth_student_height_and_weight = Students_height_and_weight(4,:)
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.