how can i fill a vector with result of 4 instructions?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
bay rem
el 24 de Dic. de 2015
Comentada: bay rem
el 25 de Dic. de 2015
hello, assuming that i have:
DE1 = pdist2(vecteur(1),V1(2),'euclidean')
DE2 = pdist2(vecteur(2),V1(2),'euclidean')
DE3 = pdist2(vecteur(3),V1(2),'euclidean')
DE4 = pdist2(vecteur(3),V1(2),'euclidean')
- how can i write those 4 lignes on one ligne please and store results in a vector?
0 comentarios
Respuesta aceptada
Walter Roberson
el 24 de Dic. de 2015
DE = abs(vecteur([1:3 3]) - V1(2));
Are you sure you did not want the DE4 to use vecteur(4) ?
This code substitution is not applicable if your values happen to be symbolic matrices.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Assembly 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!