Making Paper Position Variable depending on Machine
Show older comments
I have found an issue with generating plot pdfs where the the smae script used on different computers requires different alignement parameters inorder to fit the plots on one A4 sheet
I have created a prompt box to ask which machine is being used and it selects the variable but it does not insert it into the code
**********************************************************
%% Laptop or Workstation Analysis
orientation={ '[0.05, 0.1, 12, 8]' '[0.1, 0.1,30, 20]'};% These are the plot size parameters
prompt= ' Plese Select Computer'; 'Workstation = 1'; 'Laptop = 2';
name = ' Select Computer Type';
option = str2double(inputdlg(prompt,name,2,{'1'}));
if option >= 1 && option <= 2
O = orientation{option};
end
********************************************************
set(gcf,'defaulttextinterpreter','none','Visible','off','PaperOrientation', 'landscape','PaperPositionMode','manual', 'PaperPosition','O')
***********************************************************
Does any one have any ideas that would solve this
Many Thanks In Advance
James
1 Comment
Oleg Komarov
on 8 Aug 2012
Please use comments and not answers unless you found a solution to your problem.
Also DO NOT accept your own answer if a contributor solved your problem.
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!