Make a vector for given number.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
How can I make a vector for given number end with 9.
For example I want 5 elements.
A = [7 8 8 9 9]
For 4 elements
B=[8 8 9 9]
and so on.
Hope you can help me
0 comentarios
Respuestas (1)
Image Analyst
el 25 de Nov. de 2018
Try this
vec = [vec, 9];
Adapt for different vector names.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!