倒数第三步加个点吧。不然就是矩阵相乘,不是数了
clear;n=1.51630;a=50;i1=0:0.01:pi/4;i2=asin(sin(i1)./n);l=a./sin(i2);h=1*sin(i1-i2);figure;plot(i1,h)
sin(i2)=(sin(i1))./n分开写
sin(i2)=(sin(i1))./h啥意思