Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add isunix, ismac, ispc functions. No tests yet

  • Loading branch information...
commit 2704312f6a24d42cf32f5f9b75f0d43f08ebef02 1 parent bc99ce8
@Whiteknight authored
Showing with 19 additions and 0 deletions.
  1. +3 −0  toolbox/ismac.m
  2. +8 −0 toolbox/ispc.m
  3. +8 −0 toolbox/isunix.m
View
3  toolbox/ismac.m
@@ -0,0 +1,3 @@
+function f = ismac()
+ f = 0;
+end
View
8 toolbox/ispc.m
@@ -0,0 +1,8 @@
+function f = ispc()
+ os = computer('parrotos');
+ if os == "MSWin32"
+ f = 1;
+ else
+ f = 0;
+ end
+end
View
8 toolbox/isunix.m
@@ -0,0 +1,8 @@
+function f = isunix()
+ os = computer('parrotos');
+ if os == "linux"
+ f = 1;
+ else
+ f = 0;
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.