photo

S Priya


Last seen: fast 3 Jahre vor Aktiv seit 2021

Followers: 0   Following: 0

Statistik

  • Thankful Level 2
  • Thankful Level 1

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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

etwa 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort