-
Notifications
You must be signed in to change notification settings - Fork 0
/
PLOT_DNAPPS.m
45 lines (37 loc) · 1.18 KB
/
PLOT_DNAPPS.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
function [ ] = PLOT_DNAPPS( PPS )
% Program to plot periodic power spectrum
%
% Changchuan Yin, Ph.D.
% Dept. of Mathematics, Statistics and Computer Science
% University of Illinois at Chicago
% Last update 02/08/2016
%
% Citation
% Yin, C., & Wang, J. (2016).Periodic power spectrum with applications in detection of latent periodicities
% in DNA sequences. Journal of Mathematical Biology.
figure
PPS(1)=0; %For plotting purpose,
hFig0=plot(PPS,'b');
%xlim([0,half])
set(hFig0 , ...
'LineWidth' , 1.5 );
%Set label properties
hXLabel = xlabel('Periodicity' );
hYLabel = ylabel('Power spectrum' );
title('Power power spectrum of a DNA sequence')
set([hXLabel, hYLabel] , ...
'FontName' , 'AvantGarde', ...
'FontSize' , 10, ...
'FontWeight' , 'bold');
% Set axies properties
set(gca, ...
'Box' , 'off' , ... %No rectangle cover the figure
'TickDir' , 'out' , ...
'TickLength' , [.02 .02] , ...
'XMinorTick' , 'on' , ...
'YMinorTick' , 'on' , ...
'YGrid' , 'off' , ...
'XColor' , [.3 .3 .3], ...
'LineWidth' , 1,...
'YColor' , [.3 .3 .3]);
end