No results from calculations in the command window

14 visualizzazioni (ultimi 30 giorni)
Hi there,
For some reason I am not getting any output results in the command window. I click on run and no results appear in the command window from my script. Nor, is there any results in the workspace - even though there a lots of calculations. I have restarted my computer and still there is no change. The last thing I was doing was trying to create a MATLAB function. Also, in the editor tab the option to create a new scipt is faded out. So I can't access a new script. I have been using MATLAB online for months and I have never experienced this problem or any problem like it.
I am very confused and I do not know what is going wrong!
I hope someone can help?
Many thanks,
Scott

Risposta accettata

Star Strider
Star Strider il 22 Lug 2025
I am not certain that I fully understasnd your problem.
MATLAB functions have their own workspaces, so variables local to the function will not appear in the workspace window.
I am not certain what you are doing, however be sure to actually call the function (with all appropriate arguments), and return as many outputs as the function produces, at least to troubleshoot this.
  13 Commenti
Scott Banks
Scott Banks il 22 Lug 2025
That's brilliant, Star Strider. I was just going to go for the closet column for a single value, If I would have used interpolation I would have probably tried to incorporate the formula - y = y1 + (x - x1)/(x2 - x1)*(y2 - y1). Which would have had much more code. Great one!
Star Strider
Star Strider il 22 Lug 2025
Modificato: Star Strider il 23 Lug 2025
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
EDIT -- (23 Jul 2025 at 00:55)
Note that there are also stepwise interpolation methods available, notably 'previous', 'next', and 'nearest'.
.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Entering Commands in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by