Adding values along different dimensions in an array
조회 수: 2(최근 30일)
표시 이전 댓글
I have an array kdsimind that has dimensions 5000X5000X35. I want to initialize is such that along the first dimension I have floor(nk/2) and along the second dimension I have floor(nd/2) and along the third dimension I have 1. How do I do this? I know how to do in 2 dimension, like if I had 5000X35 I could have written
kdsimind(:,1)=floor(nk/2)
답변(0개)
참고 항목
범주
Find more on Resizing and Reshaping Matrices 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!