I NEED TO DIVED TWO ARRAYS OF DIFFERENT SIZES
Mostrar comentarios más antiguos
i have two arrays F and R
problem is that F has a size of (1 x 10) and R has a size of (1 x 9)
i need to shift the division process by the differnce of the size
ex.
F= 0.0026 0.0026 0.0026 0.0026 0.0027 0.0027 0.0027 0.0028 0.0028 0.0028
R = 0.0024 0.0019 0.0015 0.0012 0.0010 0.0007 0.0005 0.0003 0.0002
i need to divide the 2nd element of F with the 1st element in R
and the 3rd element of F with the 2nd element in R
Result would be
Answer = 1.083 1.368 1.733 2.25 2.7 3.857 5.6 9.3 14
Respuesta aceptada
Más respuestas (1)
KSSV
el 29 de Abr. de 2019
R = [NaN R] ;
iwant = F./R ;
Categorías
Más información sobre Loops and Conditional Statements 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!