Creating backwards compatible p-code for teaching purposes

1 view (last 30 days)
I am teaching some matlab classes and we have some version-ing issues ... some students use versions as old as 2008b and some of the computers in the lab have versions as old as 2007a (or as new as 2012b). I want to create some pcode files which will run on all of these versions ... that way they can check their results without seeing the actual code that created them.
I know that Matlab 2013a (the version I use daily) can operate pcode files made from any previous version but the older versions can't run pcode made with my computer.
Is there any way to create backwards compatible pcode files? I know I can just find the oldest version and make a pcode on that computer and distribute it ... but that's really annoying.
Thanks, Will

Accepted Answer

Jan
Jan on 22 Jul 2013
Edited: Jan on 22 Jul 2013
[EDITED] Your question has been exhaustively answered in the thread . Therefore the creation of my answer here wasted my time. This is exactly the reason why cross-posting in disliked in forums. Please do not do this. And if you have a really good reason, add at least a link to the other forum, respectively. Thanks.
Please notice that the P-files conceal the contents of the function, but it is not complicated to find out, what's going on inside. So do try to hide confidential information in a P-file.
  1 Comment
Will Dampier
Will Dampier on 22 Jul 2013
Excellent! The students are smrt not smart. I doubt they could figure out the code from just input/output pairs ... if one of them could then they deserve the A+.

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!