Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ba101df2 authored by hhakim's avatar hhakim
Browse files

Fix dtype argument parsing of matfaust.rand.

parent b0346a91
Branches
Tags
No related merge requests found
......@@ -192,7 +192,7 @@ function F = rand(M, N, varargin)
dev = tmparg;
end
case 'dtype'
if(argc == i || ~ strcmp(tmparg, 'double') && ~ startsWith(tmparg, 'float'))
if(argc == i || ~ strcmp(tmparg, 'double') && ~ strcmp(tmparg, 'float'))
error('dtype keyword argument is not followed by a valid value: float, double.')
else
dtype = tmparg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment