Advanced Robot Control System  5.1-REV.51SF170515
GraphPlotter.m ファイル

関数

id Ԉꍇ ()
 
Ot  figure (1)
 
 set (gcf, 'PaperPositionMode', 'manual')
 
 set (gcf, 'color', [1 1 1])
 
 set (gcf, 'Position', [100 100 800 900])
 
 subplot (3, 1, 1)
 
 set (h, 'linewidth', 2)
 
 xlabel ({ 'Time [s]','(a)'}, 'FontSize', 12)
 
 ylabel (' Variable A [-]', 'FontSize', 12)
 
 set (gca, 'FontSize', 12)
 
 axis ([0 10 -inf inf])
 
 set (gca, 'YTickMode', 'manual')
 
 set (gca, 'XTick', 0:0.1:0.5)
 
 set (gca, 'YTick', 0:0.1:0.5)
 
 legend ('Line 1', 'Line 2', 'Location', 'SouthEast', 'Orientation', 'Vertical')
 
 subplot (3, 1, 2)
 
 xlabel ({ 'Time [s]','(b)'}, 'FontSize', 12)
 
 ylabel (' Variable B [-]', 'FontSize', 12)
 
 subplot (3, 1, 3)
 
 xlabel ({ 'Time [s]','(c)'}, 'FontSize', 12)
 
 ylabel (' Variable C [-]', 'FontSize', 12)
 
EPSt C ([JŎŝ) % print(gcf
 
FileName,'.eps' strcat ()
 

変数

ARCSo͂DATA csvMATLABɓǂݍރXNvg̈ Yuki YOKOKURA clc
 
 clear
 
CSVt Cǂݍ FileName = 'DATA'
 
 CsvData = csvread(strcat(FileName,'.csv'))
 
ϐlǂݍ t = CsvData(:,1)
 
 A = CsvData(:,2)
 
 B = CsvData(:,3)
 
 C = CsvData(:,4)
 
 tlen = length(t)
 
 clf
 
 h =plot(t, A, 'k')
 
grid on
 
legend boxoff
 

関数詳解

§ axis()

axis ( )

§ figure()

Ot figure ( )
被呼び出し関係図:

§ legend()

legend ( 'Line 1'  ,
'Line 2'  ,
'Location'  ,
'SouthEast'  ,
'Orientation'  ,
'Vertical'   
)

§ set() [1/8]

set ( gcf  ,
'PaperPositionMode'  ,
'manual'   
)

§ set() [2/8]

set ( gcf  ,
'color'   
)

§ set() [3/8]

set ( gcf  ,
'Position'   
)

§ set() [4/8]

set ( h  ,
'linewidth'  ,
 
)

§ set() [5/8]

set ( gca  ,
'FontSize'  ,
12   
)

§ set() [6/8]

set ( gca  ,
'YTickMode'  ,
'manual'   
)

§ set() [7/8]

set ( gca  ,
'XTick'  ,
0:0.1:0.  5 
)

§ set() [8/8]

set ( gca  ,
'YTick'  ,
0:0.1:0.  5 
)

§ strcat()

FileName,'.eps' strcat ( )
virtual

§ subplot() [1/3]

subplot ( ,
,
 
)

§ subplot() [2/3]

subplot ( ,
,
 
)

§ subplot() [3/3]

subplot ( ,
,
 
)

§ xlabel() [1/3]

xlabel ( { 'Time [s]','(a)'}  ,
'FontSize'  ,
12   
)

§ xlabel() [2/3]

xlabel ( { 'Time [s]','(b)'}  ,
'FontSize'  ,
12   
)

§ xlabel() [3/3]

xlabel ( { 'Time [s]','(c)'}  ,
'FontSize'  ,
12   
)

§ ylabel() [1/3]

ylabel ( ' Variable A [-],
'FontSize'  ,
12   
)

§ ylabel() [2/3]

ylabel ( ' Variable B [-],
'FontSize'  ,
12   
)

§ ylabel() [3/3]

ylabel ( ' Variable C [-],
'FontSize'  ,
12   
)

§ Ԉꍇ()

id Ԉꍇ ( )
virtual
呼び出し関係図:

§ C()

EPSt C ( JŎŝ)

変数詳解

§ A

A = CsvData(:,2)

§ B

B = CsvData(:,3)

§ boxoff

legend boxoff

§ C

C = CsvData(:,4)

§ clc

ARCSo͂DATA csvMATLABɓǂݍރXNvg̈ Yuki YOKOKURA clc

§ clear

clear

§ clf

clf

§ CsvData

clear CsvData = csvread(strcat(FileName,'.csv'))

§ FileName

CSVt Cǂݍ FileName = 'DATA'

§ h

h =plot(t, A, 'k')

§ on

grid on

§ t

ϐlǂݍ t = CsvData(:,1)

§ tlen

tlen = length(t)