Transpose of a Vector
Example
Create a script file with the following code:
r = [ 1 2 3 4 ];
tr = r';
v = [1;2;3;4];
tv = v';
disp(tr); disp(tv);
When you run the file, it displays the following result:
1
2
3
4
1 2 3 4
No comments:
Post a Comment