diffrence of vector element and addition element- wise
Mostrar comentarios más antiguos
hi!
i have a vector
%
A=[1 2 3 98 99 102]
i calculate the difference betwen thelement with the function diff
%
B=[ 1 1 95 1 3]
how could i manipulte vector A in this manner
%
BB=[A(1) A(1)+B(1)*5 A(2)+B(2)*5 A(3)+B(3)*5 ....A(5)+B(5)*5]
Thank you!
Respuesta aceptada
Más respuestas (1)
Categorías
Más información sobre Get Started with Problem-Based Optimization and Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!