how can fill a table using a loop ?
Show older comments
hello I m having a problem filling a table
let's say I have a table
a c
1
4
10
11
...
n
I want c to be the mean of a starting from 1 to n
for example
c(1) = 1
c(2) =1+4 / 2
c(3) = 1+4+10 / 3
c(4)=1+4+10+11 / 4
... n
how do I fill c using a loop ?
thank you
Accepted Answer
More Answers (1)
Mohamed ben hadj yahia
on 20 May 2019
0 votes
Categories
Find more on Matrix Indexing 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!