Skip to content

Instantly share code, notes, and snippets.

@OwiseKyawMinOo
Created March 10, 2018 17:17
Show Gist options
  • Save OwiseKyawMinOo/38156795107c0d7ad35628062af9fe43 to your computer and use it in GitHub Desktop.
Save OwiseKyawMinOo/38156795107c0d7ad35628062af9fe43 to your computer and use it in GitHub Desktop.
>> % Project 2
>> % Owise Kyaw Min Oo
>>
>> x=0:4;
>> y=5:5:25;
>> z=[x y]
z =
0 1 2 3 4 5 10 15 20 25
>> f=[x' y']
f =
0 5
1 10
2 15
3 20
4 25
>> %change roe to column
>> z(1)=1;
>> %change first value in the matrix z from 0 to 1
>> a=f(:,1);
>> % : = all row // first column
>> b=f(1:2 , 2:1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment