1 view (last 30 days)

Show older comments

I have attached the code in a comment , if you guys have any advice thank you

Walter Roberson
on 29 Oct 2016

What is your line

T_new=T(1:182,T_1,183:207,T_1,200:216,T_2,217:233,T_2)

intended to mean?

I suspect you want

T_new=T(1:182, [T_1,183:207,T_1,200:216,T_2,217:233,T_2])

Note: your T_1 and T_2 are empty. You assigned them on the line above with

T_1=t_i*ones(8:1)

T_2=t_i*ones(16:1)

which should probably be

T_1=t_i*ones(1, 8);

T_2=t_i*ones(1, 16);

LauraLee Austin
on 28 Oct 2016

inv(A) generates a matrix of inf's, B contains 0's, inf*0 = NaN

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!