how to run an already written code?

58 vues (au cours des 30 derniers jours)
Houda
Houda le 13 Nov 2014
Commenté : Walter Roberson le 13 Oct 2024
I am not skilled in using matlab, I am PhD and I asked a code from an author he sent it to me , but I do not know how to run it and to try to find the results in his paper??
  7 commentaires
benjamin chan
benjamin chan le 3 Mar 2020
Modifié(e) : Walter Roberson le 13 Oct 2024
I am having this problem as well. The following weblink ( http://www.mathworks.com/matlabcentral/fileexchange/41738-vinpfn?focused=3787428&tab=function ) and the file shared does not seem to work. The user manual explicitly states "The VINPFN program is launched by the vinpfn command with no input arrangements." However, when I open the code and run it, I receive error messages that don't make much sense.
Walter Roberson
Walter Roberson le 13 Oct 2024
That File Exchange contribution requires the inputsdlg File Exchange Contribution.
As well, it needs a repair to inputsdlg: approximately line 1896 needs to be
if ~all(cellfun(@(v)isscalar(v)&&(islogical(v)||isnumeric(v)),vals))
just before
err = {'inputsdlg:InvalidInput','Default logical data must be of logical or numeric scalar.'};

Connectez-vous pour commenter.

Réponse acceptée

MA
MA le 13 Nov 2014
open your matlab program then click on open file icon on the top of program, it open new window for you then choose yor m-file from unzip td, in the new window click run icon that show with the green play picture on top of window and see your result
  7 commentaires
Houda
Houda le 13 Nov 2014
It is a code about disaggregation, I want to use the commonly used method to disaggregate Tunisian data. Yes I think that I must read under scrutiny the written code and find the error source. Thanks for the help Adam, M.A and Guillaume (this my e-mail: boubakerhouda@gmail.com)
MA
MA le 13 Nov 2014
Temporal disaggregation using low-pass filtering

Connectez-vous pour commenter.

Plus de réponses (1)

Siam
Siam le 13 Nov 2014
You do not have to unzip and save that to MATLAB folder. Unzip the file where you want to unzip. Can be anywhere in your computer. After extraction open the folder and click on your .m file. MATLAB will open automatically. Hit run and it will execute unless there is an error with the code.
  2 commentaires
Houda
Houda le 13 Nov 2014
thanks Siam, really I worried the question about the folder location. is there a simple documents other the user guides or websites to understand programming on matlab??
Siam
Siam le 13 Nov 2014
you can use > help < in your MATLAB command window as well.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by