How do I get a programm to work again in Matlab 2015, which was working fine in Matlab 2014?

2 views (last 30 days)
Dear Matlab-Community,
Last week, I took over a colleagues matlab programm, which is working fine is his 2014 version of Matlab. I have matlab 2015 on my computer. All of a sudden matlab does not find clearly declared arguments of a function any more.
I have attached the code at the bottom of this massage.
I would be really glad, if someone could help me out here.
function varargout = uebersicht_gui(varargin)
% UEBERSICHT_GUI MATLAB code for uebersicht_gui.fig
% UEBERSICHT_GUI, by itself, creates a new UEBERSICHT_GUI or raises the existing
% singleton*.
%
% H = UEBERSICHT_GUI returns the handle to a new UEBERSICHT_GUI or the handle to
% the existing singleton*.
%
% UEBERSICHT_GUI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in UEBERSICHT_GUI.M with the given input arguments.
%
% UEBERSICHT_GUI('Property','Value',...) creates a new UEBERSICHT_GUI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before uebersicht_gui_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to uebersicht_gui_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help uebersicht_gui
% Last Modified by GUIDE v2.5 18-Mar-2014 13:35:34
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @uebersicht_gui_OpeningFcn, ...
'gui_OutputFcn', @uebersicht_gui_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before uebersicht_gui is made visible.
function uebersicht_gui_OpeningFcn(hObject, ~, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to uebersicht_gui (see VARARGIN)
% Choose default command line output for uebersicht_gui
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes uebersicht_gui wait for user response (see UIRESUME)
% uiwait(handles.uebersicht_gui);
% --- Outputs from this function are returned to the command line.
function varargout = uebersicht_gui_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in start.
function start_Callback(hObject, eventdata, handles)
% hObject handle to start (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.t_oberfl, 'enable' , 'on');
set(handles.temp_hal_dick, 'enable' , 'on');
erwaermung_fin_diff;
% --- Executes on button press in therm_stoff.
function therm_stoff_Callback(hObject, eventdata, handles)
% hObject handle to therm_stoff (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.t_oberfl, 'enable' , 'off');
set(handles.temp_hal_dick, 'enable' , 'off');
therm_stoff_gui;
% --- Executes on button press in num_par.
function num_par_Callback(hObject, eventdata, handles)
% hObject handle to num_par (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.t_oberfl, 'enable' , 'off');
set(handles.temp_hal_dick, 'enable' , 'off');
numerische_parameter_gui;
% --- Executes on button press in hal_rand.
function hal_rand_Callback(hObject, eventdata, handles)
% hObject handle to hal_rand (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.t_oberfl, 'enable' , 'off');
set(handles.temp_hal_dick, 'enable' , 'off');
halbzeug_randbedingungen_gui;
% --- Executes on button press in exit.
function exit_Callback(hObject, eventdata, handles)
% hObject handle to exit (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(gcbf);
% --- Executes on button press in sichtfaktor.
function sichtfaktor_Callback(hObject, eventdata, handles)
% hObject handle to sichtfaktor (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.t_oberfl, 'enable' , 'off');
set(handles.temp_hal_dick, 'enable' , 'off');
sichtfaktor_gui;
% --- Executes on button press in t_oberfl.
function t_oberfl_Callback(~, eventdata, handles)
% hObject handle to t_oberfl (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
load erwaermung_fin_diff
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%2D-Plot des Temperaturverlaufs als Animation
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%Oberflächentemperaturen Zeitpunkt 0:
%X-Richtung; Y = 0:
TZ0_0 = zeros(numdot_v,numdot_u);
k = 1;
for count_plot = 1:numdot_v
TZ0_0_start = 1 + (k-1)*numdot_u*numdot_w;
TZ0_0_int = numdot_w;
TZ0_0_end = (k-1)*numdot_u*numdot_w + (numdot_u-1)*numdot_w + 1;
TZ0_0(k,:) = Th_celcius_time(TZ0_0_start:TZ0_0_int:TZ0_0_end,1);
k = k + 1;
end
figure(1)
%Halbzeugkoordinaten
Xh = u_s:du:u_e;
Yh = v_s:dv:v_e;
surf(Xh,Yh,TZ0_0)
title('Oberflächentemperaturen Zeitpunkt 0')
xlabel('Halbzeug in X-Richtung')
ylabel('Halbzeug in Y-Richtung')
zlabel('Temperatur in °C')
% axis([u_s u_e v_s v_e 0 ( max(Th_kelvin)-263)])
axis([u_s u_e v_s v_e 0 ( max(Th_kelvin)-263)])
hold off
%Oberflächentemperaturen Zeitpunkt tend:
%X-Richtung; Y = 0:
TZ0_tend = zeros(numdot_v,numdot_u);
k = 1;
for count_plot = 1:numdot_v
TZ0_tend_start = 1 + (k-1)*numdot_u*numdot_w;
TZ0_tend_int = numdot_w;
TZ0_tend_end = (k-1)*numdot_u*numdot_w + (numdot_u-1)*numdot_w + 1;
TZ0_tend(k,:) = Th_celcius_time(TZ0_tend_start:TZ0_tend_int:TZ0_tend_end,numdot_t);
k = k + 1;
end
figure(2)
surf(Xh,Yh,TZ0_tend)
title('Oberflächentemperaturen Oberseite Zeitpunkt tend')
xlabel('Halbzeug in X-Richtung')
ylabel('Halbzeug in Y-Richtung')
zlabel('Temperatur in °C')
axis([u_s u_e v_s v_e 0 ( max(Th_kelvin)-263)])
hold off
%Oberflächentemperaturen Halbzeugunterseite Zeitpunkt tend:
%X-Richtung; Y = 0:
TZU_tend = zeros(numdot_v,numdot_u);
k = 1;
for count_plot = 1:numdot_v
TZU_tend_start = numdot_w + (k-1)*numdot_u*numdot_w;
TZU_tend_int = numdot_w;
TZU_tend_end = (k-1)*numdot_u*numdot_w + (numdot_u-1)*numdot_w + numdot_w;
TZU_tend(k,:) = Th_celcius_time(TZU_tend_start:TZU_tend_int:TZU_tend_end,numdot_t);
k = k + 1;
end
figure(3)
surf(Xh,Yh,TZU_tend)
title('Oberflächentemperaturen Unterseite Zeitpunkt tend')
xlabel('Halbzeug in X-Richtung')
ylabel('Halbzeug in Y-Richtung')
zlabel('Temperatur in °C')
axis([u_s u_e v_s v_e 0 ( max(Th_kelvin)-263)])
hold off
% --- Executes on button press in temp_hal_dick.
function temp_hal_dick_Callback(hObject, eventdata, handles)
% hObject handle to temp_hal_dick (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
temp_verl_dicke_gui;
% --- Executes on button press in strahlertemp.
function strahlertemp_Callback(hObject, eventdata, handles)
% hObject handle to strahlertemp (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% set(handles.t_oberfl, 'enable' , 'off');
% set(handles.temp_hal_dick, 'enable' , 'off');
strahlerfeldtemp_gui;
  3 Comments
dpb
dpb on 7 Jun 2015
Edited: dpb on 7 Jun 2015
Or, at a minimum, show the specific error message in context.
And, of course, check the R2015 release notes for what has been changed in the release against what the function uses...
Are you sure you've got all the necessary other toolboxes on your installation your colleague has? Or access to any network drives or the like?
Walter Roberson
Walter Roberson on 7 Jun 2015
We would need the data file to run this, so we need the exact error traceback to be able to analyze the problem.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!