Matlab Livescript In-Line Outputs all Displaying at the End of the File

7 views (last 30 days)
I'm working on a simple problem and find it easier to plug my stuff into matlab, but suddenly when I'm in the livescript editor and have it set to inline outputs, all the outputs are moving to the end of the file. Is this operator error, and if so how can I fix it? I've tried reloading the file and opening it in a different livescript window. Here is the PDF output of my file. I'm running Matlab R2018b on a Windows 10 computer. It was not doing this before today.

Accepted Answer

Cris LaPierre
Cris LaPierre on 9 Feb 2019
Edited: Cris LaPierre on 9 Feb 2019
You need to include a space between the symbolic variable and the "..."
syms theta ... %angle of tilt off from the horizontal
x ... %the x value, with the bottom center of the spherical base being x=0
y ... %the y value, with the bottom of the sphere being 0
R ... %the radius of the half sphere
r ... %the radius of the circular base of the glass plate
h %the heigh of the cylindrical glass plate
What also worked was adding a section break after "h".

More Answers (0)

Categories

Find more on Function Creation in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!