Back to the main page.

Bug 1416 - unexpected behavior of ft_setopt

Status CLOSED FIXED
Reported 2012-04-12 11:53:00 +0200
Modified 2012-08-23 10:33:59 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Jan-Mathijs Schoffelen - 2012-04-12 11:53:18 +0200

when I do: opt = {'opt1' 1 'opt2' 2}; optnew = ft_setopt(opt, 'opt2', 4), I get optnew = {'opt1' [1] [4] [2]} this is clearly not how it should be


Robert Oostenveld - 2012-04-12 13:55:53 +0200

this was an easy one, the indexing was off by 1. manzana> svn commit test/test_bug1416.m utilities/ft_setopt.m Adding test/test_bug1416.m Sending utilities/ft_setopt.m Transmitting file data .. Committed revision 5609.


Robert Oostenveld - 2012-08-23 10:33:59 +0200

closed multiple bugs that have been resolved for some time