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

7 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Cris LaPierre
Cris LaPierre il 9 Feb 2019
Modificato: Cris LaPierre il 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".

Più risposte (0)

Categorie

Scopri di più su Function Creation in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by