Why is SUBSASGN not casting to DOUBLE properly in MATLAB 6.5 (R13)?
2 views (last 30 days)
Show older comments
I have created object with an overloaded DOUBLE and SUBSASGN methods. This used to work in MATLAB 6.1 (R12.1).
For example:
y = eye(2);
x = myclass(1,1);
setmyclass(x,1234) % assigns a numerical value to the myclass object x
y(1)=x;
MATLAB 6.1 (R12.1) gives the following output :
y =
1234 0
0 1
MATLAB 6.5 (R13), however, errors out when I try to execute the "y(1)=x;" statement:
??? Conversion to double from myclass is not possible.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This is a bug in MATLAB 6.5 (R13). As a workaround, use explicit data conversion.
0 Comments
More Answers (0)
See Also
Categories
Find more on Construct and Work with Object Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!