Filter löschen
Filter löschen

change function to script to save variables

2 Ansichten (letzte 30 Tage)
salman abbasi
salman abbasi am 19 Dez. 2020
Kommentiert: salman abbasi am 20 Dez. 2020
HI
I need to convert the followoing code MinInversion.m to non-functions criopt, so that i can see its variables.
Especaially I like to see the variable X .It is GUI based code, so here is the link to how to use this script. The clicking instructoin are in the supplementary folder.This is an oil and gas well log data.
Please see link to code.
http://www.mdpi.com/2076-3263/8/2/65/s1
thanks
sal
  2 Kommentare
Matt Gaidica
Matt Gaidica am 19 Dez. 2020
Sal, are you sure you want a script? I think the fastest way would be to use breakpoints where X appears. Alternatively, you could modify the functions so they include X as a return value and then follow it through your application.
salman abbasi
salman abbasi am 19 Dez. 2020
Thanks Matt
I tried to make X as global variable and tries to make it as output variable.
But it doesnt work and gives error.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Cris LaPierre
Cris LaPierre am 19 Dez. 2020
This is a gui (created in GUIDE). You cannot change it to a script without breaking the gui.
Perhaps this post will help you?
  4 Kommentare
Cris LaPierre
Cris LaPierre am 19 Dez. 2020
Bearbeitet: Cris LaPierre am 19 Dez. 2020
Then I would suggest reaching out to the designated author for help.
I see the license allows for modification, so you might also consider this MATLAB Guide tutorial.
salman abbasi
salman abbasi am 20 Dez. 2020
Thanks Cris. I have just done that.Waiting.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by