Code covered by the BSD License  

Highlights from
VU-LEGO Real Time Target

image thumbnail

VU-LEGO Real Time Target

by

 

30 Dec 2010 (Updated )

A user-friendly Blockset for embedding real time Simulink designs on the LEGO Mindstorms NXT brick.

cygwin_naming(varargin)
% cygwin_naming(...)
% Converts files from using Windows naming conventions into using cygwin 
% POSIX naming conventions.
function argout = cygwin_naming(varargin)
    arg = strrep(varargin,'rt_logging.c','');
    arg = strrep(arg,'c:','/cygdrive/c');
    arg = strrep(arg,'C:','/cygdrive/c');
    arg = strrep(arg,'\','/');
    [i j] = size(arg{:});
    if j > 0 && arg{1}(j) == '/'
        arg{1}(j) = '\';
    end
    argout = arg{1};

Contact us