MATLAB Answers

Calculations in the cell array

조회 수: 1(최근 30일)
Mepe 2021년 6월 12일
답변: Mouhamed Niasse 2021년 6월 12일
Given is a cell array where I want to perform calculations (e.g. double all values). The cell array should also be retained for the further operation.
I thought I could just do this as follows:
test={1; 2; 3; 4; 5}
Which of course didn't work ...
Any ideas?


Mouhamed Niasse
Mouhamed Niasse 2021년 6월 12일
Here is what i achieved based on my understanding of your question.
Hope it does help.
test={1; 2; 3; 4; 5}

Community Treasure Hunt

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

Start Hunting!

Translated by