Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
faust group
faust
Commits
53505034
Commit
53505034
authored
8 years ago
by
Nicolas Bellot
Committed by
hhakim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MATLAB class Faust subasgn
parent
b2c6ed63
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc/test/src/test_matlab_faust2.m
+17
-0
17 additions, 0 deletions
misc/test/src/test_matlab_faust2.m
wrapper/matlab/Faust.m
+17
-1
17 additions, 1 deletion
wrapper/matlab/Faust.m
with
34 additions
and
1 deletion
misc/test/src/test_matlab_faust2.m
+
17
−
0
View file @
53505034
...
...
@@ -124,8 +124,25 @@ end
disp
(
'Ok'
);
disp
(
'test 4 : '
);
test_pass
=
0
;
expected_err_message
=
'function not implemented for Faust class'
;
F
=
Faust
({
ones
(
5
,
4
),
ones
(
4
,
7
)});
try
F
(
1
,
2
)
=
3
catch
ME
if
strcmp
(
ME
.
message
,
expected_err_message
)
test_pass
=
1
;
else
error
([
'error with a wrong message : '
ME
.
message
' must be : '
expected_err_message
]);
end
end
if
(
~
test_pass
)
error
(
'failure'
);
end
disp
(
'Ok'
);
...
...
This diff is collapsed.
Click to expand it.
wrapper/matlab/Faust.m
+
17
−
1
View file @
53505034
...
...
@@ -397,8 +397,23 @@ classdef Faust
end
end
end
function
F
=
subsasgn
(
F
,
S
,
B
)
%% SUBSASGN (WARNING not implemented) (overloaded Matlab built-in function)
%
% This function is no available for Faust class,
% this function just throw an error
%
% F(i,j)=1, F(2:5,3:5)=zeros(4,3) will throw
% a Matlab error with this message :
% 'function not implemented for Faust class'
error
(
'function not implemented for Faust class'
);
end
function
norm_Faust
=
norm
(
F
,
varargin
)
%% NORM Faust norm (overloaded Matlab built-in function).
...
...
@@ -505,3 +520,4 @@ end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment