1
function [stk,txt,top]=sci_line()
11
if stk(top-1)(3)=='1'|stk(top-1)(4)=='1' then
12
if isname(stk(top-1)(1)) then
14
txt=[txt;x+' = '+x+'(:)']
17
txt=[txt;x+' = '+stk(top-1)(1)+';'+x+' = '+x+'(:)']
20
if isname(stk(top-1)(1)) then
24
txt=[txt;x+' = '+stk(top-1)(1)]
27
'if min(size('+x+'))==1 then'
28
' '+x+' = '+x+'(:)*ones(1,size('+y+',2))'
32
if stk(top)(3)=='1'|stk(top)(4)=='1' then
33
if isname(stk(top)(1)) then
35
txt=[txt;y+' = '+y+'(:)']
38
txt=[txt;y+' = '+stk(top)(1)+';'+y+' = '+y+'(:)']
41
if isname(stk(top)(1)) then
45
txt=[txt;y+' = '+stk(top)(1)]
48
'if min(size('+y+'))==1 then'
49
' '+y+' = '+y+'(:)*ones(1,size('+x+',2))'
53
txt=[txt;'xpolys'+rhsargs([x,y,options])]
55
stk=list(' ','-2','0','0','0')