How to create price weighted index function?
Show older comments
I'm looking to calculate the following price weighted function using the average price data AvgPrice2019. It just results in NaN. Can someone help?




I still keep getting NaN. Do you know why?
1 Comment
Jan
on 29 Apr 2022
Typing an answer would be easier, if you post the code as text, not as screenshot. Then the readers can copy&paste it to show a modification.
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!