Mentions légales du service

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

MATLAB class Faust subasgn

parent b2c6ed63
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment