Main Content

isrset

Check if file is valid R-Set file

Description

example

[tf,supported] = isrset(filename) checks if the specified file is a valid reduced resolution dataset (R-Set) file.

Logical scalar tf indicates if the file is an R-Set file. Logical scalar supported confirms if input is an R-Set file compatible with the current version of the Image Processing Toolbox™. If the function returns true for both tf and supported, the specified file is a valid R-Set file.

Examples

collapse all

Load a file into the workspace.

filename = 'MandiRset';

Check if the file is a valid R-Set file. Confirm if both outputs are true.

[tf,supported] = isrset(filename)
tf = logical
   1

supported = logical
   1

Input Arguments

collapse all

Name of the file, specified as a character vector or string scalar.

Data Types: char | string

Output Arguments

collapse all

R-Set file type validation, returned as a logical scalar.

  • 1(true) — The input file is an R-Set file.

  • 0(false) — The input file is not an R-Set file.

Data Types: logical

Version support validation, returned as a logical scalar.

  • 1(true) — The specified file is an R-Set file created using a version of the rsetwrite function that is compatible with the version of the Image Processing Toolbox used to read the R-Set file.

  • 0(false) — The specified file is either:

    • Not an R-Set file

    • An R-Set file created using a version of the rsetwrite function that is not compatible with the version of the Image Processing Toolbox used to read the R-Set file.

Data Types: logical

Version History

Introduced in R2009a