Assigning value in array

조회 수: 3 (최근 30일)
Mate 2u
Mate 2u 2011년 2월 10일
I want to create an array of size 100 all the with the value 50 in it.
Please tell me how to do it

채택된 답변

Mate 2u
Mate 2u 2011년 2월 10일
when i use this for large arrays I get
??? Maximum variable size allowed by the program is exceeded.
  댓글 수: 3
Mate 2u
Mate 2u 2011년 2월 10일
360214x1, should not be problem as I already have many huge arrays
Mate 2u
Mate 2u 2011년 2월 10일
MyHuge=MM*ones(LLL,'single');
MM =4400 and LLL=360214
I was not meant to accept answer
??? Error using ==> ones
Maximum variable size allowed by the program is exceeded.

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

추가 답변 (1개)

Mate 2u
Mate 2u 2011년 2월 10일
any other method? Fast method would be preferred.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by