Sim.I.Am gets an error "

4 Ansichten (letzte 30 Tage)
Owen Kuhn
Owen Kuhn am 6 Apr. 2015
Kommentiert: Kamal Shah am 28 Mai 2015
I downloaded a program for Matlab called Sim.I.Am, but whenever I try to run "launch" in this program I get the following error:
Error using getappdata Value must be a handle.
Error in GridLayout/Update (line 282) OldPosition = getappdata(Obj.Container,'Position');
Error in GridLayout/GridLayout/@(hsrc,ev)Update(Obj,true)
Error using uicontainer Error while evaluating UIContainer SizeChangedFcn
No appropriate method, property, or field 'fHG1Client' for class 'com.mathworks.hg.peer.HG2FigurePeer'.
Error in simiam.ui.AppWindow/create_layout (line 202) jClient = jFrame.fHG1Client;
Error in simiam.ui.AppWindow/load_ui (line 69) obj.create_layout();
Error in launch (line 18) app.load_ui();
It's supposed to work (not really do anything, but work) without changing anything, so I think I might be missing a library or something, but I have no idea what.
Here's the code for launch.m:
function launch()
% Copyright (C) 2013 Georgia Tech Research Corporation
% see the LICENSE file included with this software
clear java;
clear classes;
if (isdeployed)
[path, folder, ~] = fileparts(ctfroot);
root_path = fullfile(path, folder);
else
root_path = fileparts(mfilename('fullpath'));
end
addpath(genpath(root_path));
app = simiam.ui.AppWindow(root_path, false);
app.load_ui();
end
  1 Kommentar
Kamal Shah
Kamal Shah am 28 Mai 2015
Error in simiam.ui.AppWindow/create_layout (line 202) jClient = jFrame.fHG1Client;
Change the code to jClient = jFrame.fHG2Client;
That will help with the error regarding the HG1Client, for getappdata, I will post as soon as I figure it out.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 6 Apr. 2015
This message seems to be a useful hint to the problem:
No appropriate method, property, or field 'fHG1Client' for class 'com.mathworks.hg.peer.HG2FigurePeer'
The code is designed to work with Matlab's HG1 graphics. It will not run with modern Matlab versions. Ask the authors for instructions.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by