Run old Matlab software

1 view (last 30 days)
Henrik Schädlich
Henrik Schädlich on 15 Nov 2017
Edited: Henrik Schädlich on 15 Nov 2017
Hello Guys,
I am working with an old matlab software. It is from Version R2011a and I cannot figure out the problem.
At first I have to run scanpointsloc.m. It is located in the file Scanpoints_Auswertung. scanpointsloc.m is giving me the following error message:
Error using -
Matrix dimensions must agree.
Error in scanpointsloc (line 61)
XYZ(:,1) = A{1,3}.x-IndXYZ(index_base,2);
The Program is providing data for Auswertung_FastScan_unv_files_KR2_HS2.m Afterwards I run Auswertung_FastScan_unv_files_KR2_HS2.m. There is a problem in line 229 with the plotyy statement.
Do you have any suggestions how to change the scanpointsloc.m programm to get the picture of the old version with the new version? I am working with Matlab version R2017a Best regards Henrik
  2 Comments
Henrik Schädlich
Henrik Schädlich on 15 Nov 2017
I figured out that it is only the wrong index in line 14. correct is:
nodenum_base = 387;
the last entry. scanpointsloc is working properly now. But after running Auswertung_FastScan_unv_files_KR2_HS2.m with adding
load scanloc_24.mat; %Variable: scanloc
in line 59, I get the following error message:
Error using matlab.graphics.axis.Axes/set
There is no xticklab property on the Axes class.
Error in Auswertung_FastScan_unv_files_KR2_HS2 (line 247)
set(ax(2),'xticklab',[],'xtick',[])
But the xticklabel statement works in the older version.
Rik
Rik on 15 Nov 2017
I would have expected xticklab would return an error in any release and xticklabel wouldn't.
There are some important differences between R2011a and R2017a, one of them is that the former uses HG1 (handle graphics 1), and the latter uses HG2. Some syntax has changed, so I wrote a minitool for the cases that I need to change code.

Sign in to comment.

Answers (0)

Categories

Find more on Two y-axis 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!