Making Paper Position Variable depending on Machine
Mostrar comentarios más antiguos
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 comentario
Oleg Komarov
el 8 de Ag. de 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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!