in matlab R2013a psat toolbox is not getting installed it shows some errors
Mostra commenti meno recenti
in matlab R2013a psat toolbox is not getting installed it shows some errors errors are as shown in the pic and the version of psat is 2.1.10
1 Commento
Walter Roberson
il 10 Ott 2016
It is getting installed, but you are encountering a problem executing it.
Risposte (2)
Walter Roberson
il 10 Ott 2016
The code there for PSAT 2.1.10 makes use of a MATLAB enhancement that was new in R2014a.
To get it to work in R2013b or earlier, edit the files
fm_cpffig.m fm_dirset.m fm_enter.m fm_gamsfig.m fm_libfig.m fm_license.m fm_main.m fm_mat.m fm_opffig.m fm_plotfig.m fm_stat.m fm_uwfig.m fm_warranty.m
and everywhere you find flipud change it to FLIPUD and everywhere you find fliplr change it to FLIPLR (there are several places where both are used in the same call; you need to change both.)
Then add these two functions in their own files:
function newmat = FLIPLR(mat)
%R2013b and before fliplr did not handle 3D matrices
newmat = flipdim(mat, 2);
and
function newmat = FLIPUD(mat)
%R2013b and before flipud did not handle 3D matrices
newmat = flipdim(mat, 1);
Then change line 114 of fm_set.m from
if fig, close(fig), end
to
if ishandle(fig), close(fig), end
Looking at the values involved in that fm_set close problem, I can almost guarantee that you might encounter other problems in the code, and I would think it likely that parts of the code fails in R2014b or later.... I will test that a little.
10 Commenti
Walter Roberson
il 10 Ott 2016
In testing under R2016b with the changes noted above, I do not hit any obvious additional problems... but I know very little about the program and did not do much testing.
Xinyun Lu
il 8 Gen 2017
hi, I have problem when install psat 2.16 in Matlab 2015b, as shown in picture

. I have tried to change line 114 of fm_set.m, but it still give the error information. Could you please help me to solve this problem? many thanks!
Walter Roberson
il 8 Gen 2017
if ~ishandle(Fig.main)
Xinyun Lu
il 8 Gen 2017
thank you~ the problem of Error in fm_main(line 30) has been solved, but other problems appear...such like

btw, do you have the official latest psat source? If yes, could you do me a favor to send me? I tried many times and just cannot open the official website..
Walter Roberson
il 8 Gen 2017
In psat2 there is no class Settings . There is a structure Settings that is initialized in settings.m and in psat.m and definitely has a member named 'local'.
Xinyun Lu
il 8 Gen 2017
Um...little confused,what should i do to fix this error?
Walter Roberson
il 8 Gen 2017
Either you are using a later version of the code than I have, or else you happen to have a Settings class somewhere on your MATLAB path that is interfering.
Walter Roberson
il 8 Gen 2017
I do not seem to be able to get through to the official source; nothing on that computer appears to be answering.
Walter Roberson
il 8 Gen 2017
If you go through my Profile and use the Contact to send me a message, then I can send you psat-2.1.2-mat.zip
Xinyun Lu
il 8 Gen 2017
I have sent you a message in Contact, please check. thank you~
zaid altameemi
il 20 Gen 2017
Modificato: Walter Roberson
il 20 Gen 2017
please what is problem with PSAT
Simulink Model Conversion
Simulink File <d_009_svc.mdl>.
Loading Simulink Model
Error using delete
Cannot access method 'delete' in class 'matlab.ui.Root'.
Error in fm_bar (line 41)
if ishandle(Hdl.bar), delete(Hdl.bar); end
Error in sim2psat (line 132)
fm_bar open
Error in fm_dirset (line 474)
check = sim2psat(filename,pwd);
Error in fm_dirset (line 563)
check = fm_dirset('convert');
Error using uiwait (line 81)
Error while evaluating UIControl Callback
2 Commenti
Walter Roberson
il 20 Gen 2017
Change fm_bar line 41 from
if ishandle(Hdl.bar), delete(Hdl.bar); end
to
if ishandle(Hdl.bar) && Hdl.bar ~= 0, delete(Hdl.bar); end
Sselugi Ibrahim kizza
il 29 Apr 2023
walter Robertson can you help me figure out why the psat 2.1.9 is not working with my matlab 2014a yet the documentation online says its compatible?
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!