User`s guide

R2010b
12-16
imread and imwrite Can Now Handle N-channel J2C JPEG 2000 Files
You can now use the imread and imwrite functions with n-channel J2C JPEG 2000
files.
J2C files are raw JPEG2000 codestreams that usually have the file extension .j2c
or .j2k. J2C files don't contain color space, color palette, capture resolution, display
resolution and vender specific information.
In previous releases, if you use imread to read a 4-channel J2C file, you receive a
warning that some channels may be ignored and imread returns a 3-channel image.
Now, imread returns a 4-channel image and does not issue a warning.
If you try to write a 4-channel J2C file in previous releases, imwrite issues an error. In
this release, imwrite creates the 4-channel J2C file.
csvread and csvwrite Will Not Be Removed
The R2010a Release Notes originally stated that csvread and csvwrite would be
removed in a future release. As of R2010b, there are no plans to remove these functions.
sprintf and fprintf Print Null Characters in Strings
In previous releases, calls to sprintf or fprintf that printed strings using the %s
qualifier prematurely terminated strings that contained null characters. For example,
this code
sprintf('%s', ['foo' 0 'bar'])
returned
ans =
foo
The same code now returns
ans =
foo bar
Compatibility Considerations
If you do not want to print the entire contents of strings that contain null characters, test
the string for these characters (for example, using the isstrprop function).