Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add isunix, ismac, ispc functions. No tests yet
  • Loading branch information
Whiteknight committed Feb 2, 2010
1 parent bc99ce8 commit 2704312
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions toolbox/ismac.m
@@ -0,0 +1,3 @@
function f = ismac()
f = 0;
end
8 changes: 8 additions & 0 deletions toolbox/ispc.m
@@ -0,0 +1,8 @@
function f = ispc()
os = computer('parrotos');
if os == "MSWin32"
f = 1;
else
f = 0;
end
end
8 changes: 8 additions & 0 deletions toolbox/isunix.m
@@ -0,0 +1,8 @@
function f = isunix()
os = computer('parrotos');
if os == "linux"
f = 1;
else
f = 0;
end
end

0 comments on commit 2704312

Please sign in to comment.