r=[rmin:rmax];t=[tmin:tmax];AT2=T1*r.^((gamma-1)./gamma);AP2=P1.*r;AT3=T1.*t;AP3=AP2;AT4=(AT3.*T1)./AT2;The error saysError using ./ Matrix dimensions must agree.Error in attempt11 (line 24)AT4=(AT3.*T1)./T2A;
MATLAB: A line of the code is T4=(T3.*T1)./T2 where T2 is a 1×10 double matrix and T3 is a 1x6double matrix. How to reshape one of the matrices so that the line of code works enabling me to get values of T4. T1 is a 1×1 double.
reshaping matrices
Best Answer