I'm trying to plot this
'Plot[Fit[med,{1,x},x],{x,0,10}]'Plot[Fit[med,{1,x},x],{x,0,10}]
Why this doesn't work? I find out that if I do 'Plot[Evaluate@Fit[med,{1,x},x],{x,0,10}]'Plot[Evaluate@Fit[med,{1,x},x],{x,0,10}]
works fine. But can somebody explain me why this happens in first place?
Post Closed as "Duplicate" by J. M.'s missing motivation♦
- General::ivar is not a valid variable when plotting - what actually causes this and how to avoid it?