MATLAB: How can one refer to the calculation in a function m-file

livescriptMATLAB

I have a livescript file main.mlx. The file refers to a function m file test.m. In this test.m I calculate
s1=polyvar(x,y).
I want to use s1 in main.mix to calculate polyfit. What should one do?

Best Answer

Hi,
Please check the example of live script and a function called by it.