Created
May 9, 2015 03:13
-
-
Save l337quez/a72cfe50ca9689a0c82c to your computer and use it in GitHub Desktop.
Trabajando con vectores en matlab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%otra forma de guardar el tamaño del vector | |
>> r=[5 3 -5]; | |
%guardando el primer campo del vector | |
>> r(1) | |
ans =5 | |
%guardando el tamaño del vector | |
>> r(end) | |
ans =-5 | |
>> length(r) | |
ans = 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment