MATLAB Answers

0

I NEED TO DIVED TWO ARRAYS OF DIFFERENT SIZES

Asked by Omar Almahallawy on 29 Apr 2019
Latest activity Answered by KSSV
on 29 Apr 2019
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

  0 Comments

Sign in to comment.

Tags

2 Answers

Answer by madhan ravi
on 29 Apr 2019
 Accepted Answer

F(2:end)./R

  0 Comments

Sign in to comment.


Answer by KSSV
on 29 Apr 2019

R = [NaN R] ;
iwant = F./R ;

  0 Comments

Sign in to comment.