46 changed files with 356 additions and 491 deletions
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
/Program\ Compiled/ |
@ -0,0 +1,167 @@
@@ -0,0 +1,167 @@
|
||||
function Disp_Color_Rivalry(l_value,s_value,hfpRG,hfpBG) |
||||
|
||||
commandwindow; % open this, and the cursor will appear in the command window |
||||
|
||||
|
||||
% %% Choose program |
||||
% EEW_StdObsANDSubj = 0; |
||||
% EEW_Subj = 1; |
||||
|
||||
%% |
||||
|
||||
% Check that Psychtoolbox is properly installed, and switch color range to normalized 0 - 1 range: |
||||
PsychDefaultSetup(2); |
||||
|
||||
%% Start Experiment |
||||
|
||||
%a = cd; |
||||
theDate = fix(clock); |
||||
% subName = 'DC'%input(sprintf('\nEnter Subject Initials: ')) |
||||
|
||||
duration= 5; % sec |
||||
% %% Color information, load hfp data and color calibration |
||||
% |
||||
% aa = cd('/Users/clemente/Dropbox/Luminotecnia/2017/Chicago Lab files/2 Experiments/Color AfterImage_Exp_Room_150/2nd/1 Programs/A Outputs'); |
||||
% hfpFile = sprintf('%sHFP', subName); |
||||
% load(hfpFile, '-mat') |
||||
% hfpRG = rg_avg; |
||||
% hfpBG = bg_avg; |
||||
|
||||
% hfpRG = .89; |
||||
% hfpBG = .97 ; |
||||
|
||||
%% |
||||
%cd(a); % return to folder where the program is |
||||
Calib_Dire = cd('/Users/mike/Documents/AfterimageOutputs'); |
||||
load colorCalFile1.mat |
||||
fprintf('\nLast calibrationS was %s\n', describe.date); |
||||
pix = pix/1001; |
||||
maxLum = 20; %cd/m^2 |
||||
|
||||
l_s_pair = [l_value s_value]; |
||||
blackLut = [0 0 0]; |
||||
redLut = [.8 0 0]; |
||||
|
||||
|
||||
|
||||
|
||||
%% set up psych toolbox |
||||
%set up 10 bit color |
||||
PsychImaging('PrepareConfiguration'); |
||||
%PsychImaging('AddTask', 'General', 'EnableNative10BitFrameBuffer',1); %the 0 is turn off dithering? |
||||
expScreen = 1; |
||||
%create white LUT |
||||
wLMS(1,1) = .665*maxLum;%l_s_pair(1,1)*maxLum; |
||||
wLMS(1,2) = (1-.665)*maxLum;%(1-l_s_pair(1,1))*maxLum; |
||||
wLMS(1,3) = 1*maxLum;%l_s_pair(1,2)*maxLum; |
||||
wXYZ(1,:) = LMS_to_XYZ(wLMS(1,:)); |
||||
wRGB(1,:) = XYZ_to_RGB(wXYZ(1,:), maxPhosXYZ); |
||||
wRGB(1,1) = pix(dsearchn(redProp(:), wRGB(1,1)));%*hfpRG; |
||||
wRGB(1,2) = pix(dsearchn(grnProp(:), wRGB(1,2))); |
||||
wRGB(1,3) = pix(dsearchn(blueProp(:), wRGB(1,3)));%*hfpBG; |
||||
|
||||
[window, windowRect] = PsychImaging('OpenWindow', expScreen, [0 0 0]); %EEW for standard observer |
||||
|
||||
[xWinSize,~] = Screen('WindowSize',window); |
||||
|
||||
[xcent,ycent] = RectCenter(windowRect); |
||||
center = [xcent ycent]; |
||||
|
||||
%% Stimulus Size Parameters |
||||
circleDeg = 3.6; |
||||
clockPt = 0.1; |
||||
|
||||
% code assumes 1 pixel = 1 arc min |
||||
pixPerDeg = 37.65; %at a distance of 58 cm |
||||
circlePix = circleDeg*pixPerDeg; |
||||
clockPix = clockPt*pixPerDeg; |
||||
|
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%% CIRCLE HALf LOCATIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||||
%tstcircle = [xcent - circlePix/2 ycent - circlePix/2 xcent + circlePix/2 ycent + circlePix/2]; |
||||
rhtXCircleCenter = xWinSize/4; |
||||
lftXCircleCenter = xWinSize-xWinSize/4; |
||||
tstCircleLeft = [lftXCircleCenter - circlePix/2 ycent - circlePix/2 lftXCircleCenter + circlePix/2 ycent + circlePix/2]; |
||||
tstCircleRight = [rhtXCircleCenter - circlePix/2 ycent - circlePix/2 rhtXCircleCenter + circlePix/2 ycent + circlePix/2]; |
||||
|
||||
%create circular grid for clock face and the numbers |
||||
% % % circleDegGrid = 2 ; |
||||
% % % rad = circleDegGrid/2*pixPerDeg; %circlePix/2-pixPerDeg/2; |
||||
rad = circleDeg/2*pixPerDeg; %circlePix/2-pixPerDeg/2; |
||||
radNum = (circleDeg/2) * pixPerDeg; |
||||
degreeNumbers = linspace(0,360,25); |
||||
clockDegs = degreeNumbers(1:end-1); %[1:15:360]; |
||||
clockDegsLft = [90:15:269]; |
||||
clockDegsRht = [270:15:359,0:15:89]; |
||||
for iC = 1:length(clockDegs) |
||||
[xcFace(iC), ycFace(iC)] = pol2cart(clockDegs(iC)*pi/180, rad); |
||||
[xcNumber(iC), ycNumber(iC)] = pol2cart(clockDegs(iC)*pi/180, 1*radNum); |
||||
end |
||||
for iC = 1:length(clockDegsLft) |
||||
[xcRhtFace(iC), ycRhtFace(iC)] = pol2cart(clockDegsLft(iC)*pi/180, rad); |
||||
[xcRhtNumber(iC), ycRhtNumber(iC)] = pol2cart(clockDegsLft(iC)*pi/180, 1*radNum); |
||||
end |
||||
for iC = 1:length(clockDegsRht) |
||||
[xcLftFace(iC), ycLftFace(iC)] = pol2cart(clockDegsRht(iC)*pi/180, rad); |
||||
[xcLftNumber(iC), ycLftNumber(iC)] = pol2cart(clockDegsRht(iC)*pi/180, 1*radNum); |
||||
end |
||||
|
||||
%create matrix of dot locations |
||||
clockPosMat = [reshape(xcFace,1, length(clockDegs)); reshape(ycFace,1, length(clockDegs))]; |
||||
%clockNumMat = [reshape(xcNumber,1, length(clockDegs)); reshape(ycNumber,1, length(clockDegs))]; |
||||
%clockRhtPosMat = [reshape(xcRhtFace,1, length(clockDegsRht)); reshape(ycRhtFace,1, length(clockDegsRht))]; |
||||
clockRhtNumMat = [reshape(xcRhtNumber,1, length(clockDegsRht)); reshape(ycRhtNumber,1, length(clockDegsRht))]; |
||||
%clockLftPosMat = [reshape(xcLftFace,1, length(clockDegsLft)); reshape(ycLftFace,1, length(clockDegsLft))]; |
||||
clockLftNumMat = [reshape(xcLftNumber,1, length(clockDegsLft)); reshape(ycLftNumber,1, length(clockDegsLft))]; |
||||
|
||||
%% |
||||
|
||||
Screen('FillRect', window, [0 0 0], windowRect);% dark screen |
||||
Screen('Flip', window); |
||||
WaitSecs(1); |
||||
|
||||
Screen('FillRect', window, wRGB.*2); |
||||
|
||||
%Screen('Flip',window); |
||||
|
||||
% % if EEW_StdObsANDSubj |
||||
% Screen('FillOval', window, wRGB, centeredRect, maxDiameter); % Draw the rect to the screen |
||||
% Screen('Flip', window); |
||||
% WaitSecs(duration) |
||||
% |
||||
% % end |
||||
|
||||
% if EEW_Subj |
||||
wRGB(1,1) = wRGB(1,1)*hfpRG; |
||||
wRGB(1,2) = wRGB(1,2); |
||||
wRGB(1,3) = wRGB(1,3)*hfpBG; |
||||
% |
||||
%Screen('FillOval', window, wRGB, centeredRect, maxDiameter); % Draw the rect to the screen |
||||
% Screen('FillOval', window, wRGB, centeredRect1, maxDiameter); % Draw the rect to the screen |
||||
% Screen('FillOval', window, wRGB, centeredRect2, maxDiameter); % Draw the rect to the screen |
||||
Screen('FillArc', window, wRGB, tstCircleLeft, 0, 180); |
||||
Screen('FillArc', window, wRGB.*1.5 , tstCircleRight, 180, 180); |
||||
Screen('DrawDots', window, clockPosMat,clockPix, blackLut, [lftXCircleCenter,center(2)], 2); |
||||
Screen('DrawDots', window, clockPosMat,clockPix, blackLut, [rhtXCircleCenter,center(2)], 2); |
||||
Screen('DrawDots', window, [0 0],clockPix, 0, [lftXCircleCenter,center(2)], 2); % black dot for fixation |
||||
Screen('DrawDots', window, [0 0],clockPix, 0, [rhtXCircleCenter,center(2)], 2); % black dot for fixation |
||||
|
||||
textOne = [12:24,1:11]; |
||||
scl = 1.35; |
||||
for itxt = 1:12 |
||||
textNum = num2str(textOne(itxt)); |
||||
Screen('DrawText', window, textNum, scl*clockRhtNumMat(1,itxt)+rhtXCircleCenter-7, scl*clockRhtNumMat(2,itxt)+center(1,2)-14, blackLut, wRGB); |
||||
textNum = num2str(textOne(itxt+12)); |
||||
Screen('DrawText', window, textNum, .9*scl*clockLftNumMat(1,itxt)+lftXCircleCenter-7, .9*scl*clockLftNumMat(2,itxt)+center(1,2)-14, blackLut, wRGB); |
||||
end |
||||
Screen('Flip', window); |
||||
% WaitSecs(duration) |
||||
KbWait(); |
||||
% |
||||
% end |
||||
|
||||
% KbStrokeWait; |
||||
Screen('CloseAll'); |
||||
|
||||
end |
@ -0,0 +1,167 @@
@@ -0,0 +1,167 @@
|
||||
function Disp_Color_Rivalry(l_value,s_value,hfpRG,hfpBG) |
||||
|
||||
commandwindow; % open this, and the cursor will appear in the command window |
||||
|
||||
|
||||
% %% Choose program |
||||
% EEW_StdObsANDSubj = 0; |
||||
% EEW_Subj = 1; |
||||
|
||||
%% |
||||
|
||||
% Check that Psychtoolbox is properly installed, and switch color range to normalized 0 - 1 range: |
||||
PsychDefaultSetup(2); |
||||
|
||||
%% Start Experiment |
||||
|
||||
%a = cd; |
||||
theDate = fix(clock); |
||||
% subName = 'DC'%input(sprintf('\nEnter Subject Initials: ')) |
||||
|
||||
duration= 5; % sec |
||||
% %% Color information, load hfp data and color calibration |
||||
% |
||||
% aa = cd('/Users/clemente/Dropbox/Luminotecnia/2017/Chicago Lab files/2 Experiments/Color AfterImage_Exp_Room_150/2nd/1 Programs/A Outputs'); |
||||
% hfpFile = sprintf('%sHFP', subName); |
||||
% load(hfpFile, '-mat') |
||||
% hfpRG = rg_avg; |
||||
% hfpBG = bg_avg; |
||||
|
||||
% hfpRG = .89; |
||||
% hfpBG = .97 ; |
||||
|
||||
%% |
||||
%cd(a); % return to folder where the program is |
||||
Calib_Dire = cd('/Users/mike/Documents/AfterimageOutputs'); |
||||
load colorCalFile1.mat |
||||
fprintf('\nLast calibrationS was %s\n', describe.date); |
||||
pix = pix/1001; |
||||
maxLum = 20; %cd/m^2 |
||||
|
||||
l_s_pair = [l_value s_value]; |
||||
blackLut = [0 0 0]; |
||||
redLut = [.8 0 0]; |
||||
|
||||
|
||||
|
||||
|
||||
%% set up psych toolbox |
||||
%set up 10 bit color |
||||
PsychImaging('PrepareConfiguration'); |
||||
%PsychImaging('AddTask', 'General', 'EnableNative10BitFrameBuffer',1); %the 0 is turn off dithering? |
||||
expScreen = 1; |
||||
%create white LUT |
||||
wLMS(1,1) = .665*maxLum;%l_s_pair(1,1)*maxLum; |
||||
wLMS(1,2) = (1-.665)*maxLum;%(1-l_s_pair(1,1))*maxLum; |
||||
wLMS(1,3) = 1*maxLum;%l_s_pair(1,2)*maxLum; |
||||
wXYZ(1,:) = LMS_to_XYZ(wLMS(1,:)); |
||||
wRGB(1,:) = XYZ_to_RGB(wXYZ(1,:), maxPhosXYZ); |
||||
wRGB(1,1) = pix(dsearchn(redProp(:), wRGB(1,1)))%*hfpRG; |
||||
wRGB(1,2) = pix(dsearchn(grnProp(:), wRGB(1,2))); |
||||
wRGB(1,3) = pix(dsearchn(blueProp(:), wRGB(1,3)))%*hfpBG; |
||||
|
||||
[window, windowRect] = PsychImaging('OpenWindow', expScreen, [0 0 0]); %EEW for standard observer |
||||
|
||||
[xWinSize,~] = Screen('WindowSize',window); |
||||
|
||||
[xcent,ycent] = RectCenter(windowRect); |
||||
center = [xcent ycent]; |
||||
|
||||
%% Stimulus Size Parameters |
||||
circleDeg = 3.6; |
||||
clockPt = 0.1; |
||||
|
||||
% code assumes 1 pixel = 1 arc min |
||||
pixPerDeg = 36; %at a distance of 57 cm |
||||
circlePix = circleDeg*pixPerDeg |
||||
clockPix = clockPt*pixPerDeg; |
||||
|
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%% CIRCLE HALf LOCATIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||||
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
||||
%tstcircle = [xcent - circlePix/2 ycent - circlePix/2 xcent + circlePix/2 ycent + circlePix/2]; |
||||
rhtXCircleCenter = xWinSize/4; |
||||
lftXCircleCenter = xWinSize-xWinSize/4; |
||||
tstCircleLeft = [lftXCircleCenter - circlePix/2 ycent - circlePix/2 lftXCircleCenter + circlePix/2 ycent + circlePix/2]; |
||||
tstCircleRight = [rhtXCircleCenter - circlePix/2 ycent - circlePix/2 rhtXCircleCenter + circlePix/2 ycent + circlePix/2]; |
||||
|
||||
%create circular grid for clock face and the numbers |
||||
% % % circleDegGrid = 2 ; |
||||
% % % rad = circleDegGrid/2*pixPerDeg; %circlePix/2-pixPerDeg/2; |
||||
rad = circleDeg/2*pixPerDeg; %circlePix/2-pixPerDeg/2; |
||||
radNum = (circleDeg/2) * pixPerDeg; |
||||
degreeNumbers = linspace(0,360,25); |
||||
clockDegs = degreeNumbers(1:end-1); %[1:15:360]; |
||||
clockDegsLft = [90:15:269]; |
||||
clockDegsRht = [270:15:359,0:15:89]; |
||||
for iC = 1:length(clockDegs) |
||||
[xcFace(iC), ycFace(iC)] = pol2cart(clockDegs(iC)*pi/180, rad); |
||||
[xcNumber(iC), ycNumber(iC)] = pol2cart(clockDegs(iC)*pi/180, 1*radNum); |
||||
end |
||||
for iC = 1:length(clockDegsLft) |
||||
[xcRhtFace(iC), ycRhtFace(iC)] = pol2cart(clockDegsLft(iC)*pi/180, rad); |
||||
[xcRhtNumber(iC), ycRhtNumber(iC)] = pol2cart(clockDegsLft(iC)*pi/180, 1*radNum); |
||||
end |
||||
for iC = 1:length(clockDegsRht) |
||||
[xcLftFace(iC), ycLftFace(iC)] = pol2cart(clockDegsRht(iC)*pi/180, rad); |
||||
[xcLftNumber(iC), ycLftNumber(iC)] = pol2cart(clockDegsRht(iC)*pi/180, 1*radNum); |
||||
end |
||||
|
||||
%create matrix of dot locations |
||||
clockPosMat = [reshape(xcFace,1, length(clockDegs)); reshape(ycFace,1, length(clockDegs))]; |
||||
%clockNumMat = [reshape(xcNumber,1, length(clockDegs)); reshape(ycNumber,1, length(clockDegs))]; |
||||
%clockRhtPosMat = [reshape(xcRhtFace,1, length(clockDegsRht)); reshape(ycRhtFace,1, length(clockDegsRht))]; |
||||
clockRhtNumMat = [reshape(xcRhtNumber,1, length(clockDegsRht)); reshape(ycRhtNumber,1, length(clockDegsRht))]; |
||||
%clockLftPosMat = [reshape(xcLftFace,1, length(clockDegsLft)); reshape(ycLftFace,1, length(clockDegsLft))]; |
||||
clockLftNumMat = [reshape(xcLftNumber,1, length(clockDegsLft)); reshape(ycLftNumber,1, length(clockDegsLft))]; |
||||
|
||||
%% |
||||
|
||||
Screen('FillRect', window, [0 0 0], windowRect);% dark screen |
||||
Screen('Flip', window); |
||||
WaitSecs(1) |
||||
|
||||
Screen('FillRect', window, wRGB.*2); |
||||
|
||||
Screen('Flip',window) |
||||
|
||||
% % if EEW_StdObsANDSubj |
||||
% Screen('FillOval', window, wRGB, centeredRect, maxDiameter); % Draw the rect to the screen |
||||
% Screen('Flip', window); |
||||
% WaitSecs(duration) |
||||
% |
||||
% % end |
||||
|
||||
% if EEW_Subj |
||||
wRGB(1,1) = wRGB(1,1)*hfpRG; |
||||
wRGB(1,2) = wRGB(1,2); |
||||
wRGB(1,3) = wRGB(1,3)*hfpBG; |
||||
% |
||||
%Screen('FillOval', window, wRGB, centeredRect, maxDiameter); % Draw the rect to the screen |
||||
% Screen('FillOval', window, wRGB, centeredRect1, maxDiameter); % Draw the rect to the screen |
||||
% Screen('FillOval', window, wRGB, centeredRect2, maxDiameter); % Draw the rect to the screen |
||||
Screen('FillArc', window, wRGB, tstCircleLeft, 0, 180); |
||||
Screen('FillArc', window, wRGB.*1.5 , tstCircleRight, 180, 180); |
||||
Screen('DrawDots', window, clockPosMat,clockPix, blackLut, [lftXCircleCenter,center(2)], 2); |
||||
Screen('DrawDots', window, clockPosMat,clockPix, blackLut, [rhtXCircleCenter,center(2)], 2); |
||||
Screen('DrawDots', window, [0 0],clockPix, 0, [lftXCircleCenter,center(2)], 2); % black dot for fixation |
||||
Screen('DrawDots', window, [0 0],clockPix, 0, [rhtXCircleCenter,center(2)], 2); % black dot for fixation |
||||
|
||||
textOne = [12:24,1:11]; |
||||
scl = 1.35; |
||||
for itxt = 1:12 |
||||
textNum = num2str(textOne(itxt)); |
||||
Screen('DrawText', window, textNum, scl*clockRhtNumMat(1,itxt)+rhtXCircleCenter-7, scl*clockRhtNumMat(2,itxt)+center(1,2)-14, blackLut, wRGB); |
||||
textNum = num2str(textOne(itxt+12)); |
||||
Screen('DrawText', window, textNum, .9*scl*clockLftNumMat(1,itxt)+lftXCircleCenter-7, .9*scl*clockLftNumMat(2,itxt)+center(1,2)-14, blackLut, wRGB); |
||||
end |
||||
Screen('Flip', window); |
||||
% WaitSecs(duration) |
||||
KbWait(); |
||||
% |
||||
% end |
||||
|
||||
% KbStrokeWait; |
||||
Screen('CloseAll') |
||||
|
||||
end |
Binary file not shown.
@ -1,32 +0,0 @@
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
<key>CFBundleDevelopmentRegion</key> |
||||
<string>en</string> |
||||
<key>CFBundleExecutable</key> |
||||
<string>setup</string> |
||||
<key>CFBundleIconFile</key> |
||||
<string>installer.icns</string> |
||||
<key>CFBundleIdentifier</key> |
||||
<string>com.mathworks.toolbox.compiler.setup</string> |
||||
<key>CFBundleInfoDictionaryVersion</key> |
||||
<string>6.0</string> |
||||
<key>CFBundlePackageType</key> |
||||
<string>APPL</string> |
||||
<key>CFBundleShortVersionString</key> |
||||
<string>1.0</string> |
||||
<key>CFBundleSignature</key> |
||||
<string>????</string> |
||||
<key>CFBundleVersion</key> |
||||
<string>1</string> |
||||
<key>LSMinimumSystemVersion</key> |
||||
<string>10.4</string> |
||||
<key>NSHumanReadableCopyright</key> |
||||
<string>Copyright © 2013 __MyCompanyName__. All rights reserved.</string> |
||||
<key>NSMainNibFile</key> |
||||
<string>MainMenu</string> |
||||
<key>NSPrincipalClass</key> |
||||
<string>NSApplication</string> |
||||
</dict> |
||||
</plist> |
Binary file not shown.
@ -1,20 +0,0 @@
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
<key>CFBundleDevelopmentRegion</key> |
||||
<string>English</string> |
||||
<key>CFBundleIdentifier</key> |
||||
<string>com.apple.xcode.dsym.com.mathworks.toolbox.compiler.setup</string> |
||||
<key>CFBundleInfoDictionaryVersion</key> |
||||
<string>6.0</string> |
||||
<key>CFBundlePackageType</key> |
||||
<string>dSYM</string> |
||||
<key>CFBundleSignature</key> |
||||
<string>????</string> |
||||
<key>CFBundleShortVersionString</key> |
||||
<string>1.0</string> |
||||
<key>CFBundleVersion</key> |
||||
<string>1</string> |
||||
</dict> |
||||
</plist> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 51 KiB |
Binary file not shown.
@ -1,120 +0,0 @@
@@ -1,120 +0,0 @@
|
||||
MATLAB Compiler |
||||
|
||||
1. Prerequisites for Deployment |
||||
|
||||
. Verify the MATLAB Runtime is installed and ensure you |
||||
have installed version 9.0.1 (R2016a). |
||||
|
||||
. If the MATLAB Runtime is not installed, do the following: |
||||
(1) enter |
||||
|
||||
>>mcrinstaller |
||||
|
||||
at MATLAB prompt. The MCRINSTALLER command displays the |
||||
location of the MATLAB Runtime installer. |
||||
|
||||
(2) run the MATLAB Runtime installer. |
||||
|
||||
Or download the Macintosh version of the MATLAB Runtime for R2016a |
||||
from the MathWorks Web site by navigating to |
||||
|
||||
http://www.mathworks.com/products/compiler/mcr/index.html |
||||
|
||||
|
||||
For more information about the MATLAB Runtime and the MATLAB Runtime installer, see |
||||
Package and Distribute in the MATLAB Compiler documentation |
||||
in the MathWorks Documentation Center. |
||||
|
||||
|
||||
NOTE: You will need administrator rights to run MCRInstaller. |
||||
|
||||
|
||||
2. Files to Deploy and Package |
||||
|
||||
Files to package for Standalone |
||||
================================ |
||||
-run_tvp_GENERATOR.sh (shell script for temporarily setting environment variables and |
||||
executing the application) |
||||
-to run the shell script, type |
||||
|
||||
./run_tvp_GENERATOR.sh <mcr_directory> <argument_list> |
||||
|
||||
at Linux or Mac command prompt. <mcr_directory> is the directory |
||||
where version 9.0.1 of the MATLAB Runtime is installed or the directory where |
||||
MATLAB is installed on the machine. <argument_list> is all the |
||||
arguments you want to pass to your application. For example, |
||||
|
||||
If you have version 9.0.1 of the MATLAB Runtime installed in |
||||
/mathworks/home/application/v901, run the shell script as: |
||||
|
||||
./run_tvp_GENERATOR.sh /mathworks/home/application/v901 |
||||
|
||||
If you have MATLAB installed in /mathworks/devel/application/matlab, |
||||
run the shell script as: |
||||
|
||||
./run_tvp_GENERATOR.sh /mathworks/devel/application/matlab |
||||
-MCRInstaller.zip |
||||
-if end users are unable to download the MATLAB Runtime using the above |
||||
link, include it when building your component by clicking |
||||
the "Runtime downloaded from web" link in the Deployment Tool |
||||
-The Macintosh bundle directory structure tvp_GENERATOR.app |
||||
-this can be gathered up using the zip command |
||||
zip -r tvp_GENERATOR.zip tvp_GENERATOR.app |
||||
or the tar command |
||||
tar -cvf tvp_GENERATOR.tar tvp_GENERATOR.app |
||||
-This readme file |
||||
|
||||
3. Definitions |
||||
|
||||
For information on deployment terminology, go to |
||||
http://www.mathworks.com/help. Select MATLAB Compiler > |
||||
Getting Started > About Application Deployment > |
||||
Deployment Product Terms in the MathWorks Documentation |
||||
Center. |
||||
|
||||
|
||||
4. Appendix |
||||
|
||||
A. Mac systems: |
||||
In the following directions, replace MCR_ROOT by the directory where the MATLAB Runtime |
||||
is installed on the target machine. |
||||
|
||||
If the environment variable DYLD_LIBRARY_PATH is undefined, set it to the concatenation |
||||
of the following strings: |
||||
|
||||
MCR_ROOT/v901/runtime/maci64: |
||||
MCR_ROOT/v901/sys/os/maci64: |
||||
MCR_ROOT/v901/bin/maci64 |
||||
|
||||
If it is defined, set it to the concatenation of these strings: |
||||
|
||||
${LD_LIBRARY_PATH}: |
||||
MCR_ROOT/v901/runtime/maci64: |
||||
MCR_ROOT/v901/sys/os/maci64: |
||||
MCR_ROOT/v901/bin/maci64 |
||||
|
||||
For more detail information about setting the MATLAB Runtime paths, see Package and |
||||
Distribute in the MATLAB Compiler documentation in the MathWorks Documentation Center. |
||||
|
||||
|
||||
|
||||
NOTE: To make these changes persistent after logout on Linux |
||||
or Mac machines, modify the .cshrc file to include this |
||||
setenv command. |
||||
NOTE: The environment variable syntax utilizes forward |
||||
slashes (/), delimited by colons (:). |
||||
NOTE: When deploying standalone applications, it is possible |
||||
to run the shell script file run_tvp_GENERATOR.sh |
||||
instead of setting environment variables. See |
||||
section 2 "Files to Deploy and Package". |
||||
|
||||
|
||||
|
||||
5. Launching of application using Macintosh finder. |
||||
|
||||
If the application is purely graphical, that is, it doesn't read from standard in or |
||||
write to standard out or standard error, it may be launched in the finder just like any |
||||
other Macintosh application. |
||||
|
||||
|
||||
|
@ -1,32 +0,0 @@
@@ -1,32 +0,0 @@
|
||||
#!/bin/sh |
||||
# script for execution of deployed applications |
||||
# |
||||
# Sets up the MATLAB Runtime environment for the current $ARCH and executes |
||||
# the specified command. |
||||
# |
||||
exe_name=$0 |
||||
exe_dir=`dirname "$0"` |
||||
echo "------------------------------------------" |
||||
if [ "x$1" = "x" ]; then |
||||
echo Usage: |
||||
echo $0 \<deployedMCRroot\> args |
||||
else |
||||
echo Setting up environment variables |
||||
MCRROOT="$1" |
||||
echo --- |
||||
DYLD_LIBRARY_PATH=.:${MCRROOT}/runtime/maci64 ; |
||||
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${MCRROOT}/bin/maci64 ; |
||||
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${MCRROOT}/sys/os/maci64; |
||||
export DYLD_LIBRARY_PATH; |
||||
echo DYLD_LIBRARY_PATH is ${DYLD_LIBRARY_PATH}; |
||||
shift 1 |
||||
args= |
||||
while [ $# -gt 0 ]; do |
||||
token=$1 |
||||
args="${args} \"${token}\"" |
||||
shift |
||||
done |
||||
eval "\"${exe_dir}/tvp_GENERATOR.app/Contents/MacOS/tvp_GENERATOR\"" $args |
||||
fi |
||||
exit |
||||
|
Before Width: | Height: | Size: 51 KiB |
@ -1,34 +0,0 @@
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
<key>CFBundleDevelopmentRegion</key> |
||||
<string>English</string> |
||||
<key>CFBundleExecutable</key> |
||||
<string>prelaunch</string> |
||||
<key>CFBundleIconFile</key> |
||||
<string>membrane.icns</string> |
||||
<key>CFBundleIdentifier</key> |
||||
<string>tvp_GENERATOR</string> |
||||
<key>CFBundleInfoDictionaryVersion</key> |
||||
<string>6.0</string> |
||||
<key>CFBundleName</key> |
||||
<string>tvp_GENERATOR</string> |
||||
<key>CFBundlePackageType</key> |
||||
<string>APPL</string> |
||||
<key>CFBundleSignature</key> |
||||
<string>tvp_GENERATOR</string> |
||||
<key>CFBundleVersion</key> |
||||
<string>1</string> |
||||
<key>CFBundleVersionString</key> |
||||
<string>1.0</string> |
||||
<key>CFResourcesFileMapped</key> |
||||
<true/> |
||||
<key>LSMinimumSystemVersion</key> |
||||
<string>10.9.0</string> |
||||
<key>NSMainNibFile</key> |
||||
<string>MainMenu</string> |
||||
<key>NSPrincipalClass</key> |
||||
<string>NSApplication</string> |
||||
</dict> |
||||
</plist> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +0,0 @@
@@ -1,7 +0,0 @@
|
||||
The List of Excluded Files |
||||
Excluded files Exclusion Message ID Reason For Exclusion Exclusion Rule |
||||
/Applications/MATLAB_R2016a.app/toolbox/local/+matlab/+internal/+toolboxes/addInstalledToolboxesToPath.m MATLAB:Completion:ExcludedBy Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler. /Applications/MATLAB_R2016a\.app/toolbox/local/[+]matlab/[+]internal/[+]toolboxes/addInstalledToolboxesToPath[.]m |
||||
/Applications/MATLAB_R2016a.app/toolbox/local/+matlab/+internal/+zipAddOns/addInstalledZipAddOnsToPath.m MATLAB:Completion:ExcludedBy Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler. /Applications/MATLAB_R2016a\.app/toolbox/local/[+]matlab/[+]internal/[+]zipAddOns/addInstalledZipAddOnsToPath[.]m |
||||
/Applications/MATLAB_R2016a.app/toolbox/local/pathdef.m MATLAB:Completion:ExcludedBy Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler. /Applications/MATLAB_R2016a\.app/toolbox/local/pathdef[.]m |
||||
/Applications/MATLAB_R2016a.app/toolbox/matlab/codetools/commandwindow.m MATLAB:Completion:ExcludedBy Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler. /Applications/MATLAB_R2016a\.app/toolbox/matlab/codetools |
||||
/Applications/MATLAB_R2016a.app/toolbox/matlab/codetools/initdesktoputils.m MATLAB:Completion:ExcludedBy Cannot be packaged for use in the target environment MCR. Removed from the parts list by license Compiler. /Applications/MATLAB_R2016a\.app/toolbox/matlab/codetools |
@ -1,120 +0,0 @@
@@ -1,120 +0,0 @@
|
||||
MATLAB Compiler |
||||
|
||||
1. Prerequisites for Deployment |
||||
|
||||
. Verify the MATLAB Runtime is installed and ensure you |
||||
have installed version 9.0.1 (R2016a). |
||||
|
||||
. If the MATLAB Runtime is not installed, do the following: |
||||
(1) enter |
||||
|
||||
>>mcrinstaller |
||||
|
||||
at MATLAB prompt. The MCRINSTALLER command displays the |
||||
location of the MATLAB Runtime installer. |
||||
|
||||
(2) run the MATLAB Runtime installer. |
||||
|
||||
Or download the Macintosh version of the MATLAB Runtime for R2016a |
||||
from the MathWorks Web site by navigating to |
||||
|
||||
http://www.mathworks.com/products/compiler/mcr/index.html |
||||
|
||||
|
||||
For more information about the MATLAB Runtime and the MATLAB Runtime installer, see |
||||
Package and Distribute in the MATLAB Compiler documentation |
||||
in the MathWorks Documentation Center. |
||||
|
||||
|
||||
NOTE: You will need administrator rights to run MCRInstaller. |
||||
|
||||
|
||||
2. Files to Deploy and Package |
||||
|
||||
Files to package for Standalone |
||||
================================ |
||||
-run_tvp_GENERATOR.sh (shell script for temporarily setting environment variables and |
||||
executing the application) |
||||
-to run the shell script, type |
||||
|
||||
./run_tvp_GENERATOR.sh <mcr_directory> <argument_list> |
||||
|
||||
at Linux or Mac command prompt. <mcr_directory> is the directory |
||||
where version 9.0.1 of the MATLAB Runtime is installed or the directory where |
||||
MATLAB is installed on the machine. <argument_list> is all the |
||||
arguments you want to pass to your application. For example, |
||||
|
||||
If you have version 9.0.1 of the MATLAB Runtime installed in |
||||
/mathworks/home/application/v901, run the shell script as: |
||||
|
||||
./run_tvp_GENERATOR.sh /mathworks/home/application/v901 |
||||
|
||||
If you have MATLAB installed in /mathworks/devel/application/matlab, |
||||
run the shell script as: |
||||
|
||||
./run_tvp_GENERATOR.sh /mathworks/devel/application/matlab |
||||
-MCRInstaller.zip |
||||
-if end users are unable to download the MATLAB Runtime using the above |
||||
link, include it when building your component by clicking |
||||
the "Runtime downloaded from web" link in the Deployment Tool |
||||
-The Macintosh bundle directory structure tvp_GENERATOR.app |
||||
-this can be gathered up using the zip command |
||||
zip -r tvp_GENERATOR.zip tvp_GENERATOR.app |
||||
or the tar command |
||||
tar -cvf tvp_GENERATOR.tar tvp_GENERATOR.app |
||||
-This readme file |
||||
|
||||
3. Definitions |
||||
|
||||
For information on deployment terminology, go to |
||||
http://www.mathworks.com/help. Select MATLAB Compiler > |
||||
Getting Started > About Application Deployment > |
||||
Deployment Product Terms in the MathWorks Documentation |
||||
Center. |
||||
|
||||
|
||||
4. Appendix |
||||
|
||||
A. Mac systems: |
||||
In the following directions, replace MCR_ROOT by the directory where the MATLAB Runtime |
||||
is installed on the target machine. |
||||
|
||||
If the environment variable DYLD_LIBRARY_PATH is undefined, set it to the concatenation |
||||
of the following strings: |
||||
|
||||
MCR_ROOT/v901/runtime/maci64: |
||||
MCR_ROOT/v901/sys/os/maci64: |
||||
MCR_ROOT/v901/bin/maci64 |
||||
|
||||
If it is defined, set it to the concatenation of these strings: |
||||
|
||||
${LD_LIBRARY_PATH}: |
||||
MCR_ROOT/v901/runtime/maci64: |
||||
MCR_ROOT/v901/sys/os/maci64: |
||||
MCR_ROOT/v901/bin/maci64 |
||||
|
||||
For more detail information about setting the MATLAB Runtime paths, see Package and |
||||
Distribute in the MATLAB Compiler documentation in the MathWorks Documentation Center. |
||||
|
||||
|
||||
|
||||
NOTE: To make these changes persistent after logout on Linux |
||||
or Mac machines, modify the .cshrc file to include this |
||||
setenv command. |
||||
NOTE: The environment variable syntax utilizes forward |
||||
slashes (/), delimited by colons (:). |
||||
NOTE: When deploying standalone applications, it is possible |
||||
to run the shell script file run_tvp_GENERATOR.sh |
||||
instead of setting environment variables. See |
||||
section 2 "Files to Deploy and Package". |
||||
|
||||
|
||||
|
||||
5. Launching of application using Macintosh finder. |
||||
|
||||
If the application is purely graphical, that is, it doesn't read from standard in or |
||||
write to standard out or standard error, it may be launched in the finder just like any |
||||
other Macintosh application. |
||||
|
||||
|
||||
|
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
35000 35010 |
@ -1,32 +0,0 @@
@@ -1,32 +0,0 @@
|
||||
#!/bin/sh |
||||
# script for execution of deployed applications |
||||
# |
||||
# Sets up the MATLAB Runtime environment for the current $ARCH and executes |
||||
# the specified command. |
||||
# |
||||
exe_name=$0 |
||||
exe_dir=`dirname "$0"` |
||||
echo "------------------------------------------" |
||||
if [ "x$1" = "x" ]; then |
||||
echo Usage: |
||||
echo $0 \<deployedMCRroot\> args |
||||
else |
||||
echo Setting up environment variables |
||||
MCRROOT="$1" |
||||
echo --- |
||||
DYLD_LIBRARY_PATH=.:${MCRROOT}/runtime/maci64 ; |
||||
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${MCRROOT}/bin/maci64 ; |
||||
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${MCRROOT}/sys/os/maci64; |
||||
export DYLD_LIBRARY_PATH; |
||||
echo DYLD_LIBRARY_PATH is ${DYLD_LIBRARY_PATH}; |
||||
shift 1 |
||||
args= |
||||
while [ $# -gt 0 ]; do |
||||
token=$1 |
||||
args="${args} \"${token}\"" |
||||
shift |
||||
done |
||||
eval "\"${exe_dir}/tvp_GENERATOR.app/Contents/MacOS/tvp_GENERATOR\"" $args |
||||
fi |
||||
exit |
||||
|
Before Width: | Height: | Size: 51 KiB |
@ -1,34 +0,0 @@
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
||||
<plist version="1.0"> |
||||
<dict> |
||||
<key>CFBundleDevelopmentRegion</key> |
||||
<string>English</string> |
||||
<key>CFBundleExecutable</key> |
||||
<string>prelaunch</string> |
||||
<key>CFBundleIconFile</key> |
||||
<string>membrane.icns</string> |
||||
<key>CFBundleIdentifier</key> |
||||
<string>tvp_GENERATOR</string> |
||||
<key>CFBundleInfoDictionaryVersion</key> |
||||
<string>6.0</string> |
||||
<key>CFBundleName</key> |
||||
<string>tvp_GENERATOR</string> |
||||
<key>CFBundlePackageType</key> |
||||
<string>APPL</string> |
||||
<key>CFBundleSignature</key> |
||||
<string>tvp_GENERATOR</string> |
||||
<key>CFBundleVersion</key> |
||||
<string>1</string> |
||||
<key>CFBundleVersionString</key> |
||||
<string>1.0</string> |
||||
<key>CFResourcesFileMapped</key> |
||||
<true/> |
||||
<key>LSMinimumSystemVersion</key> |
||||
<string>10.9.0</string> |
||||
<key>NSMainNibFile</key> |
||||
<string>MainMenu</string> |
||||
<key>NSPrincipalClass</key> |
||||
<string>NSApplication</string> |
||||
</dict> |
||||
</plist> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue