Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 002ec269 authored by Nicolas Bellot's avatar Nicolas Bellot Committed by hhakim
Browse files

matlab class error save and load solved

parent 857b5b93
Branches
Tags
No related merge requests found
...@@ -299,12 +299,12 @@ classdef Faust ...@@ -299,12 +299,12 @@ classdef Faust
nb_fact=get_nb_factor(F); nb_fact=get_nb_factor(F);
Faust_factors=cell(1,nb_fact); faust_factors=cell(1,nb_fact);
for i=1:nb_fact for i=1:nb_fact
Faust_factors{i}=get_fact(F,i); faust_factors{i}=get_fact(F,i);
end end
save(filename,'Faust_factors'); save(filename,'faust_factors');
end end
......
...@@ -56,10 +56,10 @@ classdef FaustCore < handle ...@@ -56,10 +56,10 @@ classdef FaustCore < handle
if (nargin == 1) && ischar(varargin{1}) if (nargin == 1) && ischar(varargin{1})
filename=varargin{1}; filename=varargin{1};
load(filename); load(filename);
if (~exist('Faust_factors','var') ) if (~exist('faust_factors','var') )
error('FaustCore : invalid file'); error('FaustCore : invalid file');
end end
this=FaustCore(Faust_factors); this=FaustCore(faust_factors);
else else
this.objectHandle = mexFaust('new',varargin{:}); this.objectHandle = mexFaust('new',varargin{:});
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment