levelsplot
with ES 5.0.20 I get two different behaviours depending on the version of Matlab I use, for the same piece of code:I invoke
levelsplot
in a rather straightforward manner: I previously define my Sys
structure and the experimental details (among which the orientation cori
and frequency Exp.mwFreq
, and then I just instruct:
Code: Select all
Ori=cori; FieldRange=[0 1500]; Freq=Exp.mwFreq; nPoints=10000; levelsplot(Sys1,Ori,FieldRange,Freq,nPoints);
Matlab R2015a
I get a warning:
However, the calculation goes on and the plot completes.Warning: Struct field assignment overwrites a value with class "double". See MATLAB R14SP2 Release Notes, Assigning Nonstructure Variables As Structures Displays Warning, for
details.
> In levelsplot (line 63)
In full_sim_single_crystal_isosceles_AE (line 64)
Matlab R2016a
I get an error:
The calculation stops.Field assignment to a non-structure array object.
Error in levelsplot
Error in full_sim_single_crystal_isosceles_AE (line 64)
Ori=cori; FieldRange=[0 1500]; Freq=Exp.mwFreq; nPoints=10000; levelsplot(Sys1,Ori,FieldRange,Freq,nPoints); %For
levelsplot
The code has been uploaded from one computer to another without any changes, so I guess there is an issue with the new version of Matlab.