Why am I unable to set the "Interpreter" property of a text object to "none" in MATLAB?
If I run the following code:
image(rand(128,128))line([0 100],[0 100], 'Color','k','LineWidth',3)pt=ginput(1);h=text(pt(1),pt(2),0,'','Editing','on','Interpreter','none');
I get the following segmentation violation:
------------------------------------------------------------------------ Segmentation violation detected at Mon Aug 25 13:52:58 2003 ------------------------------------------------------------------------ Configuration: MATLAB Version: 6.5.0.180913a (R13) Operating System: Microsoft Windows 2000 Window System: Version 5.0 (Build 2195: Service Pack 2) Processor ID: x86 Family 6 Model 8 Stepping 6, GenuineIntel Virtual Machine: Java 1.3.1_01 with Sun Microsystems Inc. Java HotSpot(TM) Client VM (mixed mode) Register State: EAX = 00000000 EBX = 00000000 ECX = 00000000 EDX = 00dfcd5c ESI = 158f7b00 EDI = 158f7b00 EBP = 00dfccfc ESP = 00dfccfc EIP = 7a09cec6 FLG = 00010212 Stack Trace: [0] hg.dll:_hoGetHandle(0, 0x7a095bf4, 0x158f7b00, 0x00dfcd2c) + 6 bytes [1] hg.dll:_gf_window(0, 0x158f7b00, 0x158f7b00, 0x158f7b00) + 15 bytes [2] hg.dll:_TextEditInfoFcn(0x158f7b00, 0x00dfcd5c, 0x158f7b00, 0x00dfcdbc) + 21 bytes [3] gui.dll:_GetObjectTextInfo(0x158f7b00, 0x00dfcd5c, 0x01a89378, 0x158f7b00) + 36 bytes [4] uiw.dll:_ws_UpdateTextEditProperties(0x158f7b00, 1, 0x158f7b00, 0x14334a00) + 27 bytes [5] hg.dll:_set_text_nstrings(0x158f7b00, 0x14334a00, 0x019a84a0, 0x14334c28) + 68 bytes [6] hg.dll:_set_text_interp_mode(0, 1, 0x7a0d3140, 0x151b1f30) + 79 bytes [7] hg.dll:_callIntSetFcnUDDOptional(0x7a0d3140, 0x158f7b00, 1, 0) + 108 bytes ... ??? Error using ==> text Error using ==> text Error: Expected a variable, function, or constant, found "end of line".
Best Answer