Community Profile

photo

Hosein Jeddi


Last seen: 2 years ago Active since 2021

Statistics

  • Thankful Level 1

View badges

Content Feed

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...

2 years 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...

3 years ago | 1 answer | 0

1

answer