matlab for循环中怎么输出每一次循环的结果,每次输出的都是最后一次循环的结果
例如
for t=1:100 a=t^2; end
a=10000
a=[1,4,9,...,10000]
a=[]; for t=1:100 a(t)=t^2; end