MATLAB Answers

I am unable to store values for every iteration, values are overwritten in each iteration.

1 view (last 30 days)
karishma koshy
karishma koshy on 25 Jul 2019
Edited: karishma koshy on 31 Aug 2019
how can i get all the values for frame. it is showing only the last value of numimgs ie., 1000. it is being overwritten. i tried using fr(:)=frame(:). but then it show error 'Unable to perform assignment because the left and right sides have a different number of elements'.
thanking in advance for help.

Answers (1)

infinity
infinity on 25 Jul 2019
Hello,
Try this
fr{Fr} = frame(:);
  5 Comments
infinity
infinity on 25 Jul 2019
Hello,
Since you have stored values of frame into "fr". Now, you want to show it like column vector ("fr"), you could simply change type of it by
obtained_result = cell2mat(fr)'

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!