ASsign Array element

조회 수: 1 (최근 30일)
Mate 2u
Mate 2u 2011년 2월 10일
Hi there I accidentally accepted my answer beforehand. I have an array of size 1x360214 and to each element I want to assign a value of 440. Please give me the quickest way to do this. I need this array to plot with a time series I already have of 360214 share prices.

채택된 답변

Vieniava
Vieniava 2011년 2월 10일
MyVec=440*ones(1,360214);
  댓글 수: 1
Mate 2u
Mate 2u 2011년 2월 10일
Thank you :)

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

추가 답변 (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