Back to the main page.
Bug 1875 - there are functions that use the ~ output argument, which is incompatible with older MATLAB versions
Status | CLOSED FIXED |
Reported | 2012-12-06 22:29:00 +0100 |
Modified | 2014-01-29 13:28:38 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P3 major |
Assigned to: | Eelke Spaak |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2012-12-06 22:29:49 +0100
This was brought to my attention by Guillaume mbp> find . -name \*.m -exec grep -H \\[\~ {} \; ./external/simbio/revert_assignment.m:[~, m, ~] = unique(sort_elements_vec,'last'); ./external/simbio/sb_check_sources.m: [~,near_node_ind] = min(sum(bsxfun(@minus,vol.pnt,gridin(i,:)).^2,2)); ./ft_sourceplot.m: [~, minindx] = min(fun(:)); ./ft_sourceplot.m: [~, maxindx] = max(fun(:)); ./private/bsscca.m:[~,ix] = sort(rho, 'descend'); ./private/bsscca.m:%[~,ix] = sort(diag(abs(rho).^2),'descend'); ./private/prepare_mesh_hexahedral.m:[~,tname] = fileparts(tempname); ./private/prepare_mesh_hexahedral.m:[~,tname] = fileparts(tempname); ./private/prepare_mesh_hexahedral.m:[~,tname] = fileparts(tempname); ./private/prepare_mesh_hexahedral.m:[~,tname] = fileparts(tempname); ./private/smudge.m:[~,i1,i2] = unique(vecx(:,2)); ./realtime/online_meg/ft_realtime_headlocalizer.m:[~, chanindx] = match_str('headloc', hdr.chantype); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, x1] = match_str('HLC0011', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, y1] = match_str('HLC0012', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, z1] = match_str('HLC0013', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, x2] = match_str('HLC0021', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, y2] = match_str('HLC0022', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, z2] = match_str('HLC0023', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, x3] = match_str('HLC0031', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, y3] = match_str('HLC0032', data.label); ./realtime/online_meg/ft_realtime_headlocalizer.m: [~, z3] = match_str('HLC0033', data.label); ./test/test_ft_analysisprotocol.m: [~, ~, x] = cellfun(@fileparts, filelist, 'uniformoutput', false); ./test/test_ft_datatype.m: [~, ~, x] = cellfun(@fileparts, filelist, 'uniformoutput', false); ./test/test_ft_read_header.m:[~,ftpath] = ft_version(); ./test/test_ft_read_sens.m:[~,ftpath] = ft_version(); ./utilities/ft_version.m: [~,inds] = setdiff(remFiles, locFiles); It is important that fieldtrip runs with older MATLAB versions, which means that we cannot make use of new syntactical features like this. See http://fieldtrip.fcdonders.nl/code_guidelines?&#ensure_that_it_runs_on_older_matlab_versions PS please also help keeping that documentation about version differences up to date
Eelke Spaak - 2012-12-07 13:35:36 +0100
Relevant piece of info: the ~ syntax was introduced in R2009b. So two more years before we can use it :)
Eelke Spaak - 2013-01-23 14:40:08 +0100
fixed in 7383