This is an odd one, but I've encountered a situation in which it appears that DrawFormattedText either works or doesn't, depending solely on whether its output arguments are requested or not.
This is MATLAB 2013a on a MacBook Pro, Mountain Lion (OS X 10.8), PTB 3.0.11 .
Attached is the code that will reproduce the bug. just run triangleTest_bugReport. Two calls are made to DrawFormattedText, with the only difference being that in one case, the output arguments are requested as [~,~,~]. If the output is requested, the text draws correctly. If it is not, the text disappears and it appears as though the function has decided not to try (outputs a 0).
Restarting MATLAB, 'clear all', and other such initializing tricks do not appear to change matters.
I do not have access to another machine and will be delighted if someone on a different OS and/or same OS but different box could tell me if it reproduces for them.
Alik Widge, MD, PhD
Research Fellow, Division of Neurotherapeutics
MGH Psychiatry
awidge@...
206-866-5435
This is MATLAB 2013a on a MacBook Pro, Mountain Lion (OS X 10.8), PTB 3.0.11 .
Attached is the code that will reproduce the bug. just run triangleTest_bugReport. Two calls are made to DrawFormattedText, with the only difference being that in one case, the output arguments are requested as [~,~,~]. If the output is requested, the text draws correctly. If it is not, the text disappears and it appears as though the function has decided not to try (outputs a 0).
Restarting MATLAB, 'clear all', and other such initializing tricks do not appear to change matters.
I do not have access to another machine and will be delighted if someone on a different OS and/or same OS but different box could tell me if it reproduces for them.
Alik Widge, MD, PhD
Research Fellow, Division of Neurotherapeutics
MGH Psychiatry
awidge@...
206-866-5435