필터 지우기
필터 지우기

Create Specific Sized Cell

조회 수: 2 (최근 30일)
Austen Thomas
Austen Thomas 2019년 6월 6일
답변: Walter Roberson 2019년 6월 6일
Hi Everyone!
I need a little help with making a specific sized cell.
For my case I need a 1 x 37 cell. The cell needs to hold values ranging from 0:10:360. The first cell needs to be all zeros, the second all 10 and so on... Each of these need to be a 1 x n double matrix. The length of n will be quite large around 1E6 or so.
If anyone can help I would appreciate it.

채택된 답변

Walter Roberson
Walter Roberson 2019년 6월 6일
arrayfun(@(v) v+zeros(1,n), 0:10:360, 'uniform', 0)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by