Community Profile

photo

S Priya


Last seen: meer dan 2 jaar ago Active since 2021

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Content Feed

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)

meer dan 2 jaar 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

meer dan 2 jaar ago | 1 answer | 0

1

answer