Problem using Matlab 6.5 codes in Matlab 2007b

Problem using Matlab 6.5 codes in Matlab 2007b

Post by Dwaipayan » Mon, 01 Jun 2009 20:02:01


I have written some code in Matlab 6.5 and they are running perfectly in that version. But if I try to run the same using Matlab 2007b, I am facing problem. It starts giving error like dimensional mismatch and etc. Why the program written in lower version is not running in higher version?
 
 
 

Problem using Matlab 6.5 codes in Matlab 2007b

Post by Bruno Luon » Mon, 01 Jun 2009 20:51:01


And what surprises about it? It's called "compatibility".

Check release note of each version where Mathworks usually documents any compatibility issues. Usually they are minor, and it takes no time to adapt it.

If the purpose of your post is to complain, then rather contact TMW support.

Bruno

 
 
 

Problem using Matlab 6.5 codes in Matlab 2007b

Post by Matt Fi » Tue, 02 Jun 2009 00:01:02


True, but still, I have yet to personally see code written in 6.5 that wouldn't run in 2007a. Maybe 2007b is different.

To the original poster: Could you post a SMALL section of code that errors and the exact text of the error? Thanks.
 
 
 

Problem using Matlab 6.5 codes in Matlab 2007b

Post by tristram.s » Tue, 02 Jun 2009 19:45:48


wouldn't run in 2007a. Maybe 2007b is different.

Well, aside from various java related issues, and problems with OpenGL
graphics, the one example which springs to my mind is when using xlsread
under Windows. On 6.5 it used the built in biffread code, but from R14
onwards it chooses to use the COM server if a copy of Excel can be found on
the machine. The big difference I notice with this is that dates are now
treated as strings, not as numbers.

Apart from that, the only time I require different code for later versions
is when saving, in which case I might require the -v6 option to not
compress data on the way to the disk.

--
Dr Tristram J. Scott
Energy Consultant
 
 
 

Problem using Matlab 6.5 codes in Matlab 2007b

Post by pawan » Wed, 03 Jun 2009 15:34:02


Hii all..

I have a similar problem, the code which runs alright in one version of matlab doesnt run in the version i use...

I dont know how to sort this out, the following are the errors i get, someone please help me out.

thanks..
pawan

In axis at 96
In corre_gui1>pushbutton2_Callback at 164
In gui_mainfcn at 75
In corre_gui1 at 46
??? Reference to non-existent field 'input_noise'.

Error in ==> corre_gui1>pushbutton2_Callback at 166
noise = str2double(get(handles.input_noise,'String'));

Error in ==> gui_mainfcn at 75
feval(varargin{:});

Error in ==> corre_gui1 at 46
gui_mainfcn(gui_State, varargin{:});

??? Error while evaluating uicontrol Callback.
 
 
 

Problem using Matlab 6.5 codes in Matlab 2007b

Post by Bruno Luon » Wed, 03 Jun 2009 15:45:02

>

Open the fig with GUIDE and rename the Tag of your pushbutton from 'pushbutton2' to "input_noise'.

ATTENTION: If you change the Fig GUI under 2007, it will be incompatible forever with earlier version. Make a copy of your fig file before modify it.

Bruno
 
 
 

Problem using Matlab 6.5 codes in Matlab 2007b

Post by pawan » Wed, 03 Jun 2009 22:10:02


Thanks bruno..

that didnt help me but the program has run error free when i copied my codes to bin folder which were initially located in work..

thanks
rags