把循环计算的值存进数组即可,参考下面代码:
x = zeros(1,100);y = zeros(1,100);for t = 1:100 [x(t) y(t)] = satellitespot(t);endplot(x,y)