Multiplication in cell arrays
조회 수: 1 (최근 30일)
이전 댓글 표시
Hey all, I have a cell (408*1), which has 408 rows of 33*33 array inside it. I attached this cell to this question (the name is precip(my_data).mat).
now I want to multiply a 408*1 double array to this cell. I attached this array too (the name numbers.mat).
so please help me to do multiply my file (numbers.mat) to my data (precip.mat). In the end I would like to have:
precip(my_data) * (numbers.mat) %each row multiplying to the same row from numbers
Thank you all in advance.
댓글 수: 0
채택된 답변
David Hill
2019년 11월 12일
Or a simple loop.
for i=1:408
PRECTOTCORR{i}=PRECTOTCORR{i}*result(i);
end
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!