MATLAB COMPILER RELEASE NOTES User's Guide Page 617

  • Download
  • Add to my manuals
  • Print
  • Page
    / 716
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 616
Programming
21-27
Compatibility Considerations
If any of your programs use lower-level MATLAB file I/O functions that send output to
stdin, because these functions no longer ignore this type of operation, your code will
now generate an error. You should modify your program code to use a file identifier other
than zero.
Assigning Nonscalar Structure Array Fields to a Single Variable
In the R14 and R14 service pack releases of MATLAB, assigning a nonscalar structure
array field to a single variable incorrectly resulted in an error. For example, in the
following code, you should be able to assign S.A to one, two, three, or four output
variables. However, if you assign to just a single variable, MATLAB throws an error:
% Create a 1-by-4 structure array S with field A.
S(1).A = 1; S(2).A = 2; S(3).A = 3; S(4).A = 4;
% Assigning S(1).A and S(2).A works as expected.
[x y] = S.A
x =
1
y =
2
% Assigning only S(1).A should work, but does not.
x = S.A;
??? Illegal right hand side in assignment. Too many elements.
This has been fixed in MATLAB 7.3.
Compatibility Considerations
If any of your programs rely on this error being thrown, you will need to modify those
programs.
Comma Separators Not Required in Function Declaration
As of Release 14, the function definition line in a function M-file no longer requires
commas separating output variables. This now makes the function definition syntax the
same as the syntax used when calling an M-file function:
Page view 616
1 2 ... 612 613 614 615 616 617 618 619 620 621 622 ... 715 716

Comments to this Manuals

No comments