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
fclose(u); % close the UDP connection |
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
% Open the old marker file | |
filename = 'oldFile.vmrk'; | |
fileId = fopen(filename); | |
% Open a new marker file for writing | |
newFilename = 'newFile.vmrk'; | |
newFileId = fopen(newFilename,'w'); | |
% Get a line from the old file | |
thisLine = fgets(fileId); |
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
oscsend(u,'/muse/elements/marker','i',1); % Send marker 1 on UDP connection u |
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
u = udp('localhost',5555); % specify the UDP address that markers will be sent to | |
fopen(u); % open the UDP connection |