-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from CCC-members/develop
Updating dataset
- Loading branch information
Showing
3 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
function x=isnetav | ||
disp('-->> Checking internet status'); | ||
[~,b]=system('ping -c 5 -W 15 www.github.com'); | ||
n=strfind(b,'received'); | ||
if ismac | ||
% Code to run on Mac platform | ||
elseif isunix | ||
n1=b(n-2); | ||
elseif ispc | ||
n1=b(n+7); | ||
else | ||
disp('Platform not supported'); | ||
end | ||
if(n1=='5') | ||
x=1; | ||
disp('-->> Internet connection Ok'); | ||
else | ||
try | ||
disp('-->> Checking internet status'); | ||
[~,b]=system('ping -c 5 -W 15 www.github.com'); | ||
n=strfind(b,'received'); | ||
if ismac | ||
% Code to run on Mac platform | ||
elseif isunix | ||
n1=b(n-2); | ||
elseif ispc | ||
n1=b(n+7); | ||
else | ||
disp('Platform not supported'); | ||
end | ||
if(n1=='5') | ||
x=1; | ||
disp('-->> Internet connection Ok'); | ||
else | ||
x=0; | ||
cprintf('red','-->> We could not get you online'); fprintf('\n'); | ||
cprintf('red','-->> There migth be either a problem with the internet connection or matlab proxy configuration'); fprintf('\n'); | ||
cprintf('red','-->> We could not get the BC-VARETA latest version right now.');fprintf('\n'); | ||
cprintf('red','-->> Please check your internet configuration and try to update again.');fprintf('\n'); | ||
disp('================================================================='); | ||
end | ||
catch | ||
x=0; | ||
cprintf('red','-->> We could not get you online'); fprintf('\n'); | ||
cprintf('red','-->> There migth be either a problem with the internet connection or matlab proxy configuration'); fprintf('\n'); | ||
cprintf('red','-->> We could not get the BC-VARETA latest version right now.');fprintf('\n'); | ||
cprintf('red','-->> Please check your internet configuration and try to update again.');fprintf('\n'); | ||
disp('================================================================='); | ||
end | ||
end |
Binary file not shown.
Binary file not shown.