So why doesn't this work?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Wouter Stg
el 10 de Abr. de 2015
Respondida: A Jenkins
el 10 de Abr. de 2015
A simplified question for what im doing,
I've got variables
- X :[1;2;3;4;5;6;7;8;9;10]
- Y: magic(10)and i want to create Z,
Z= (number of x),Yvalue: (number of x),Y value) I tried this
y(x(1),3) which is the correct number i want.
y(x(4),3) which is also the correct number i want.
Now when i try Z= y(x(1),3): y(x(4),3)
I get
Columns 1 through 13
1 2 3 4 5 6 7 8 9 10 11 12 13
Columns 14 through 19
14 15 16 17 18 19
What am i doing wrong?
2 comentarios
KL
el 10 de Abr. de 2015
y(x(1),3) is 1 and y(x(4),3) is 19. So by Z= y(x(1),3): y(x(4),3) you mean Z = 1:19. I don't find anything surprising here. Can you explain what do you expect in Z?
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Encryption / Cryptography en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!