This.
T1= evalin('base','T1');
T3= evalin('base','T3');
[x,sT1]=size(T1);
[y,sT3]=size(T3);
r1=1;
r2=1;
r3=1;
cT1=1;
cT2=1;
cT3=1;
T13=0;
while cT1<sT1+1
T13a=0;
iter=1;
for iter=1:sT3
T13a(iter)=T1(1,cT1);
T13(r1,1)=T13a(iter)';
T13(r1,2)=T3(r3,cT3);
r1=(r1)+1;
cT3=(cT3)+1;
end
cT3=1;
cT1=(cT1)+1;
end
[sT2,z]=size(T13);
T2=0;
while cT2<sT2+1
T2(cT2,r2)=(((L1*T13(cT2,1))/L2)+T13(cT2,2))/(1+(L1/L2));
cT2=(cT2)+1;
end
I know this can use cleaning up, but obviously I am not very proficient with MATLAB. Either way, this does what I need it to do, how I need it to do it, regardless of the two input matrices sizes or ranges. Now if this should be or can be a function, that's another story. Right now I am content with just running the script as is. I will also probably find a way to combine T13 and T2 and plot in 3D. Not sure how to do this at the moment, but I already got this far...