필터 지우기
필터 지우기

smoothness of a data based on previous dataset

조회 수: 1 (최근 30일)
Rajdeep Ghosh
Rajdeep Ghosh 2019년 8월 31일
댓글: darova 2019년 9월 19일
Dear All
I need to define an array of 5 values with 'e' in all the rows initially as : E = [0.167 0.167 0.167 0.167 0.167]
After first iteration of an algorithm, I will have a cell array with me that have element number and their corresponding e value,(say 6000) rowwise. I want to replace 0.167 at 5th position by 6000 as: [0.167 0.167 0.167 0.167 6000] .
Similarly, after 2nd iteration of that algorithm, say new e value is 2(it can be anything random) and so I need to put that new 'e' value i.e 2 wil be shifted to 5th position and previous value of 6000 will be shifted 1 column ahead to 4th position as: [0.167 0.167 0.167 6000 2] and so on till all the 4 values of the array are updated after 4 successive iterations of that algorithm.
Please help ! Not getting a clue of the algorithm.
N.B: Say after 4 iterations it can be anything like [6000 2 10 6000 1] and everytime it depends upon what is the corresponding e value rowwise for all the element numbers in the cell array after each iteration.
  댓글 수: 2
darova
darova 2019년 8월 31일
All you need to know is how for loop works
darova
darova 2019년 9월 19일
Have you tried something?

댓글을 달려면 로그인하십시오.

채택된 답변

Nikhil Sonavane
Nikhil Sonavane 2019년 9월 3일
Using a for loop may help you solve the problem. You may refer to the Documentation of for loop.
  댓글 수: 1
Rajdeep Ghosh
Rajdeep Ghosh 2019년 9월 6일
Dear Mr. Nikhil, I am not getting out how to retrieve the e values corresponding to a element number each time after every iteration and to put it in the 5th position..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by