photo

S Priya


Last seen: 3 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Why is pre-allocating done?
In a program why is pre-allocating done?for example using arrays of zeros ex- A=zeros(3)

3 years ago | 2 answers | 0

2

answers

Question


Index exceeds the number of array elements (2).Please help ?
h=1; Ha=[-0.5;0.5]*h; for i=1 h1=Ha('1,i');h2=Ha('2,i'); hnl=h2-h1; end

3 years ago | 1 answer | 0

1

answer