ispc - Determine if MATLAB is running on Windows (PC) platform - MATLAB (original) (raw)

Main Content

Determine if MATLAB is running on Windows (PC) platform

Syntax

Description

tf = ispc returns logical 1 (true) if the version of MATLAB® software is for the Microsoft® Windows® platform. Otherwise, it returns logical 0 (false).

example

Examples

collapse all

if ismac % Code to run on Mac platform elseif isunix % Code to run on Linux platform elseif ispc % Code to run on Windows platform else disp('Platform not supported') end

Extended Capabilities

expand all

Usage notes and limitations:

Version History

Introduced before R2006a