Direkt zum Hauptbereich

Posts

Posts mit dem Label "matlab" werden angezeigt.

Matlab license w/o system variable

A network.lic-file has to be placed within the application folder \ licenses, in my case: C:\Program Files\MATLAB\R2012a\licenses http://www.mathworks.nl/support/solutions/en/data/1-63ZIR6/index.html This license-file has the following format SERVER server_name hostid port# USE_SERVER http://www.mathworks.nl/support/solutions/en/data/1-99R6CN/index.html?solution=1-99R6CN where servername and host id can be found on the Flexlm Licenses Detail Website (Server: @ ) The host id seems to be the  volume serial number of the C:\ drive  (in cmd:> "vol c:" Volumeseriennummer (without the dash ) http://www.mathworks.nl/support/solutions/en/data/1-171PI/

Parameterfiles in Matlab parsen.

Quick und dirty*) ConfigFile.h Parameterfiles in Matlab parsen. Das Parameterfile hat den Aufbau: # Kommentarzeile parametername1 = Blabla #Kommentarzeilenende parametername2 = 5.3 heraus kommt eine Struktur: par.parametername1 % hat den Wert 'Blabla' par.parametername2 % hat den wert [5.3] *) dirty, weil alle strings, die sich als numerischer Wert interpretieren lassen, automatisch konvertiert werde. fid=fopen(sprintf('%s.par',filename)); %creates cellstruct of names and (string!)values: p=textscan(fid,'%s = %s','commentStyle','#'); fclose(fid); % convert all numerical values, which can be converted for i=1:size(p{2},1) [n,status]=str2num(p{2}{i}); if status; p{2}{i}=n; end; end % create structure of cellstruct par=cell2struct(p{2},p{1},1)
Wie kann ich allen Texten in Matlab in Abbildungen eine neue Fontsize zuordnen? h=findobj(1,'Type','Axes'); h=[h,cell2mat(get(h,'Title'))] set(h,'FontSize',10); (Titel, 2.Zeile, müssen aus unerfindlichen Gründen gesondert gehandabt werden. findobj liefert jedenfalls nicht die Handles von Titeln.

Matlab im Hintergrund

Matlab per Commandline im Hintergrund laufenzulassen klappt z.B. mit nohup nice -19 matlabR2006a -nosplash -nodesktop -nojvm >batchout Der Trick ist "-r batch" (was nach der Abbarbeitung von batch eine Eingabe erwartet, dummerweise selbst wenn batch mit "quit" endet) durch " Gruss, Andre