Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

matlab.io.fits.readKeyLongStr

Long string value

Syntax

[value,comment] = readKeyLongStr(fptr,keyname)

Description

[value,comment] = readKeyLongStr(fptr,keyname) returns the specified long string value and comment as character vectors.

This function corresponds to the fits_read_key_longstr (ffgkls) function in the CFITSIO library C API.

Examples

import matlab.io.*
idata = repmat(char(97:106),1,10);
fptr = fits.createFile('myfile.fits');
fits.createImg(fptr,'byte_img',[100 200]);
fits.writeKey(fptr,'mykey',idata);
odata1 = fits.readKey(fptr,'mykey');
odata2 = fits.readKeyLongStr(fptr,'mykey');
fits.closeFile(fptr);

See Also

Was this topic helpful?