Files from toolbox/matlab broken out of nowhere

Hi,
I just wanted to use the plot command and got as error:
??? Error: File: isprop.m Line: 1 Column: 1 The input character is not valid in MATLAB statements or expressions.
After beeing very confused about that fact that plot didn't work I opened isprop.m. What I found there was rather shocking. Instead of a matlab function the contents of isprop.m were complete garbage.
The same is true for toeplitz.m which is used by kstest.
That really frightens me as both functions worked a few days ago. Did anyone experience something similar?

Answers (2)

What does:
which -all isprop
return?
and:
which -all toeplitz
Also, is there invisible ASCII on these lines or an M-LINT warning?
This is what I get if I open isprop http://userpage.fu-berlin.de/juka87/public/isprop.png.
The which commands you asked for
>> which -all toeplitz
C:\Program Files\MATLAB\R2010a\toolbox\matlab\elmat\toeplitz.m
>> which -all isprop
C:\Program Files\MATLAB\R2010a\toolbox\matlab\datatypes\isprop.m
This happens when I leave isprop open for a while:
>> open isprop
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at com.mathworks.widgets.text.mcode.MLintUtils.convertByteToStringPosition(MLintUtils.java:612)
at com.mathworks.widgets.text.mcode.MLintUtils.getEndPosition(MLintUtils.java:559)
at com.mathworks.widgets.text.mcode.MLintUtils.getEndPosition(MLintUtils.java:548)
at com.mathworks.widgets.text.mcode.MLintDecorator.getTooltipMessagesAt(MLintDecorator.java:651)
at com.mathworks.widgets.text.mcode.MEditorUI.getMLintMessagesAt(MEditorUI.java:147)
at com.mathworks.widgets.text.mcode.MLintUtils.getMLintMessagesAtPosition(MLintUtils.java:717)
at com.mathworks.widgets.text.mcode.MKit.getMLintMessagesUnderMouse(MKit.java:420)
at com.mathworks.widgets.text.mcode.MKit.access$000(MKit.java:50)
at com.mathworks.widgets.text.mcode.MKit$MBuildToolTipAction.actionPerformed(MKit.java:368)
at com.mathworks.mde.editor.EditorMKit$EditorBuildToolTipAction.actionPerformed(EditorMKit.java:186)
at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:256)
at com.mathworks.widgets.text.mcode.MToolTipSupport$MToolTipAndComponentAWTListener.movedInsideSource(MToolTipSupport.java:345)
at com.mathworks.widgets.tooltip.ToolTipAndComponentAWTListener$2.actionPerformed(ToolTipAndComponentAWTListener.java:69)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

1 Comment

http://www.mathworks.com/support/contact_us/index.html

Sign in to comment.

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 13 Feb 2012

Edited:

dpb
on 10 Oct 2013

Community Treasure Hunt

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

Start Hunting!