change function to script to save variables

조회 수: 10 (최근 30일)
salman abbasi
salman abbasi 2020년 12월 19일
댓글: salman abbasi 2020년 12월 20일
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
Matt Gaidica
Matt Gaidica 2020년 12월 19일
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 2020년 12월 19일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 12월 19일
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
Cris LaPierre
Cris LaPierre 2020년 12월 19일
편집: Cris LaPierre 2020년 12월 19일
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 2020년 12월 20일
Thanks Cris. I have just done that.Waiting.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by