Comandos Basicos Matlab

Páginas: 2 (429 palabras) Publicado: 9 de octubre de 2011
29/08/11 07:46 AM

MATLAB Command Window

1 of 4

>> M1=(1:10) M2=(1:0.5:10) M3=linspace(10,40,5) M4=logspace(10,40,5) M5=(2:8)M5(4) M5(2:6) M5(1:2:6) M5(6:-2:1) Z=[2 4 6;1 3 5] Z(2,3)=0 W=Z' Y=[W eye(3)] U=Y(:,1:2:5) E=Y([1 2],[3 5]) F=Y([1 2],3:5)G=diag(diag(U)) H=Y([1 3],[2 3 5]) I=[eye(5,4) zeros(5,4) ones(5,4)] I(1,:) J=I(1:2:5,2:2:12) size(J) M1 = 1 2 3 4 5 6 7 8 9 10

M2 = Columns 1through 15 1.0000 1.5000 2.0000 2.5000 3.0000 3.5000 4.0000 5.0000 5.5000 6.0000 6.5000 7.0000 7.5000 8.0000 Columns 16 through 198.5000 9.0000 9.5000 10.0000 4.5000

M3 = 10.0000 17.5000 25.0000 32.5000 40.0000

M4 = 1.0e+040 * 0.0000 0.0000 0.0000 0.0000 1.0000 29/08/11 07:46 AM

MATLAB Command Window

2 of 4

M5 = 2 3 4 5 6 7 8

ans = 5

ans = 3 4 5 6 7

ans = 2 4 6

ans = 7 53

Z = 2 1 4 3 6 5

Z = 2 1 4 3 6 0

W = 2 4 6 1 3 0

Y = 2 4 6 1 3 0 1 0 0 0 1 0 0 0 1

29/08/11 07:46 AM

MATLAB CommandWindow

3 of 4

U = 2 4 6 1 0 0 0 0 1

E = 1 0 0 0

F = 1 0 0 1 0 0

G = 2 0 0 0 0 0 0 0 1

H = 1 0 1 0 0 1

I = 1 0 0 00 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

ans = 1 0 0 0 0 0 00 1 1 1 1

J = 0 0 0 0 0 0 0 0 1 1 1 1

29/08/11 07:46 AM 0 0 0 0

MATLAB Command Window 1 1

4 of 4

ans = 3 >> 6

Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Comandos Basicos En Matlab
  • Matlab comandos básicos
  • Comandos basicos de audio en MatLab
  • Comandos de MatLab
  • COMANDOS MATLAB
  • Comandos Matlab
  • Comandos Matlab
  • Comandos Matlab

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS