Reapeting same line with different coordinates
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Matija Kosak
el 3 de Jul. de 2018
Respondida: Guillaume
el 3 de Jul. de 2018
Hi, I have a line in matlab with X,Y,Z coordinates. I need to make for example 10 lines with same Y and Z coordinates but with changed X coordinate, where X is the same for the whole line. Is there a code for that or a way to do it?
2 comentarios
Guillaume
el 3 de Jul. de 2018
It's very likely that there is a simple way to do it. However, your input and output description is not very clear. Can you give an example of inputs in valid matlab syntax and the desired output.
Respuesta aceptada
Guillaume
el 3 de Jul. de 2018
If I understood correctly, all you need to do is
B = A;
B(:, 1) = 25;
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays 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!