Skip to content

Instantly share code, notes, and snippets.

@l337quez
Created May 9, 2015 03:13
Show Gist options
  • Save l337quez/a72cfe50ca9689a0c82c to your computer and use it in GitHub Desktop.
Save l337quez/a72cfe50ca9689a0c82c to your computer and use it in GitHub Desktop.
Trabajando con vectores en matlab
%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