WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

Undefined function 'portcons' for input arguments of type

 

jens31
Forum-Newbie

Forum-Newbie


Beiträge: 1
Anmeldedatum: 15.09.17
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 15.09.2017, 13:07     Titel: Undefined function 'portcons' for input arguments of type
  Antworten mit Zitat      
Hallo liebes Forum,

ich nutze seit kurzem matlab auf der Arbeit. Wir habe eine compilierte .exe zu portfolio gewichtungen welche 'portcons' nutzt. Compiliert wurde das .m damals in Matlab R2011b.

Diese .m soll nun nochmal in Matlab R2015a zu einer .exe compiliert werden. Das Problem das ich jedoch habe ist, wenn ich die .m in Matlab 2015a versuchte zu starten meckert er immer bei der funktion 'portcons' (Undefined function 'portcons' for input arguments of type 'char')

Anbei mal ein Teil des Codes.
Code:
%
function kapitalwertsim



%%%%%% optimiere
% input-Daten aus xml lesen
% Deprecation Warnungen fuer XML-Toolbox ausschalte
warning off all;
input=xml_load('input2.xml');
warning on all;
% variablen aus der Struktur entnehmen
input
Gmins=input.Gmins;
Gmaxs=input.Gmaxs;
Gruppen=input.Gruppen;
Korrels=input.Korrels;
Mins=input.Mins;
Maxs=input.Maxs;
Volas=input.Volas;
Renditen=input.Renditen;
Konfidenz=input.Konfidenz;
CF=input.CF;
Datums=input.Datums;
semi=input.semi;
abs=input.Abschnitte;
% Kovarianzmatrix aus den Volatilitäten und Korrelationen bauen
KOV=(Volas'*Volas).*Korrels;
faktor=1;
% Semidefiniertheit sicherstellen, wenn gewünscht
if (semi)
    [KOV,faktor]=semidef(KOV);
end
% Nebenbedingungen formulieren
nebenbedingungen = portcons('PortValue',1,length(Volas),'AssetLims', Mins,Maxs, 'GroupLims', Gruppen', Gmins, Gmaxs);
 


Das einlesen der Daten aus dem XML document klappt einwandfrei und diese sind auch alle vom typ double.

Auf mathworks.com ist ein Beispiel zu 'portcons'
Code:
NumAssets = 3;
PVal = 1; % Scale portfolio value to 1.
AssetMin = 0;
AssetMax = [0.5 0.9 0.8];
GroupA = [1 1 0];
GroupB = [0 0 1];
AtoBmax = 1.5 % Value of assets in Group A at most 1.5 times value
              % in group B.

ConSet = portcons('PortValue', PVal, NumAssets,'AssetLims',...
AssetMin, AssetMax, NumAssets, 'GroupComparison',GroupA, NaN,...
AtoBmax, GroupB)  


Dieses liefert mir die gleiche Fehlermeldung.

Die Financial Toolbox ist installiert, wird für portcons benötigt?

Ich hoffe ihr könnt mir weiterhelfen und LG
Jens
Private Nachricht senden Benutzer-Profile anzeigen


Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2024 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.