Assigning value in array

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

0 个投票

when i use this for large arrays I get
??? Maximum variable size allowed by the program is exceeded.

3 个评论

what is your array size???
360214x1, should not be problem as I already have many huge arrays
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

0 个投票

any other method? Fast method would be preferred.

类别

在 帮助中心 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by