필터 지우기
필터 지우기

How to create a long list using the same number?

조회 수: 16 (최근 30일)
Shane
Shane 2014년 7월 23일
편집: Azzi Abdelmalek 2014년 7월 23일
Simple question but can't find it anywhere. I need to make a long list of the number say, 59, a thousand times.
59
59
59
59 etc
What is the syntax to do this? Thanks

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 23일
편집: Azzi Abdelmalek 2014년 7월 23일
repmat(59,1000,1)
%or
59*ones(1000,1)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by