M-file created in previous version, not working in advanced version.

조회 수: 3 (최근 30일)
Priya
Priya 2014년 9월 10일
댓글: Titus Edelhofer 2014년 9월 15일
Hi,
The m-file and Simulink model which I created in R2012b version is not working suddenly in R2013a version. Actually R2012b is installed in my office computer and R2013a version is installed in my personal computer. All these days, there was no problem in running the files in both these versions. But now suddenly, I couldn't run the files in R2013a , which were created in 2012b version.
This is the error I get, when I try to run the files,
Attempt to execute SCRIPT hdlcoderui.hdlcc.update as a function:
C:\Program
Files\MATLAB\R2013a\toolbox\shared\hdlshared\hdlshared_gui\@hdlcoderui\@hdlcc\update.m
Can anyone please tell what may be the reason for this sudden incompatibility.
Thanks.
  댓글 수: 9
per isakson
per isakson 2014년 9월 10일
편집: per isakson 2014년 9월 10일
Follow Star Strider's advice and contact http://www.mathworks.com/support/contact_us/index.html
&nbsp
"check whether it is a function or script."

댓글을 달려면 로그인하십시오.

답변 (2개)

Ahmed
Ahmed 2014년 9월 10일
Unfortunately,that is normal in Matlab so you need to upgrade your files
  댓글 수: 7
Ahmed
Ahmed 2014년 9월 13일
I am facing the same problem when I am using R2007a version and R2013a version especially with parfor instead for loop as my program worked well in older version but not worked with new version therefore I need to minor correction(upgrade) with my files so I supposed your situation the same and sorry if I confused you
Priya
Priya 2014년 9월 15일
Thanks to all for your time. I have reinstalled the version once again which was creating problem as I didn't have any other choice and also I was running out of time for my project. Anyway thanks again for your suggestions.
@Ahmed: Not a problem, thanks.

댓글을 달려면 로그인하십시오.


Iain
Iain 2014년 9월 15일
I've found that simulink files don't always transfer neatly from one version of matlab to a newer version. You'll likely find that one or two blocks got "meaningfully" changed.
I've found that some "inbuilt" m files which work like a dream in one version of matlab don't work in another. - median, for example, can't work on integers in 2012, but will on 2011 and 2013 versions. (median(uint8(1:5)) throws an error in 2012)
The error you're getting could be caused by either type of problem.
  댓글 수: 2
Priya
Priya 2014년 9월 15일
Well, thanks lain for your suggestion. I will keep in mind if I come across this problem again in future.
Titus Edelhofer
Titus Edelhofer 2014년 9월 15일
Yes and no: median worked in 2011 for integers, but was not officially supported (the doc said "A should be of type single or double."). In 2012 it threw an error, and official support - without error ;-) started in 2013 ...
Titus

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by