Why does MATLAB 6.5 (R13) produce a matlab.exe application error when I use "DefaultTextCreateFcn"?

1 view (last 30 days)
Why does MATLAB 6.5 (R13) produce a matlab.exe application error when I use "DefaultTextCreateFcn"?
MATLAB crashes on a PLOT command in the following example.
The code is:
set(0,'DefaultTextCreateFcn',...
'text(''interpreter'',''none'')')
[A B]=xlsread('fig6_waves.xls'); % A=data B=text
S=size(A); % 512 x 12
close all;
for ii=1:S(2)-1
figure
plot(A(:,1), A(:,ii+1));
xlabel(B(1), 'interpreter', 'none');
Title(B(ii+1), 'interpreter', 'none');
ylabel('cents');
end
When it reaches that line, MATLAB crashes with the following dialog:
matlab.exe has generated errors and will be closed by Windows.
You will need to restart the program.
An error log is being created.
[button]Cancel[/button]

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This behavior occurs when you use the set(0,'DefaultTextCreateFcn','text(''interpreter'',''none'')') command in conjunction with plot. Our development staff is investigating this issue.
Currently, to work around this issue, remove the SET command for the DefaultTextCreateFcn at the start of the code; this prevents MATLAB from crashing.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!