Azzera filtri
Azzera filtri

how to find the value at mid of the indices

1 visualizzazione (ultimi 30 giorni)
Mubashara Wali
Mubashara Wali il 18 Ott 2020
Commentato: Durganshu il 19 Ott 2020
Actually I need to find this sum with value of Y at (j+1/2)
Rsum1=0;
for j=1:1:n+1
Rsum1=Rsum1+aa(j)*Y(j)
end
so how to do it?
  1 Commento
Durganshu
Durganshu il 19 Ott 2020
Your problem description is not clear.
'Actually I need to find this sum with value of Y at (j+1/2)'
If Y contains n+1 values and each value is stored at an index that varies with an interval of j=1, how will we be able to extract the values at the intermediate indexes (j+1/2)?
Also, what exactly is aa(j)?
Elaborate more on what you exactly need and if possible, provode with sample inputs and outputs.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by