Community Profile

photo

Hosein Jeddi


Last seen: nästan 2 år ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


The size of the indicated variable or array appears to be changing with each loop iteration. Commonly, this message appears because an array is growing by assignment or concat
clc clear h = 1; r = 0:h:20; z = 0:h:20; [rgrid,zgrid] = meshgrid(r,z); zgrid = flip(zgrid); b1=[]; for i=1:s...

nästan 3 år ago | 1 answer | 0

1

answer

Question


Subscripted assignment dimension mismatch.
hello a=[0 1;0 0]; b=[0;1]; q1=10; q2=1; r=1; N=3; S(3)=1; Q=[q1 q2;q2 q1]; for k=2:-1:0 K(k,:)=inv((b'*S(k+1)*b...

ungefär 3 år ago | 1 answer | 0

1

answer