Adding values along different dimensions in an array

조회 수: 2(최근 30일)
Prerna Mishra
Prerna Mishra 2022년 7월 5일
댓글: Prerna Mishra 2022년 7월 5일
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)
  댓글 수: 4
Prerna Mishra
Prerna Mishra 2022년 7월 5일
Ah, sorry. I sse now where I am visualizing this wrong.
Thanks!

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

답변(0개)

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by