source: plugins/plot_profile.m @ 32

Last change on this file since 32 was 32, checked in by tjniskan, 11 years ago
  • Renamed the plugin m-files

M an2_revision.m
D plugins/calc_t1r_map.m
D plugins/show_kspace.m
A plugins/write_difference_images.m
D plugins/diffimage.m
D plugins/copydataroi_plugin.m
D plugins/profile_plugin.m
A plugins/plot_profile.m
A plugins/calculate_t1r_map.m
A plugins/view_kspace.m
A plugins/copy_data_to_workspace.m

File size: 712 bytes
Line 
1function plot_profile(DATA,ROI,AddInfo)
2% PLOT_PROFILE - Plot profile
3%   
4%
5% Synopsis:
6%
7% Description:
8%
9% Examples:
10%
11% See also:
12%
13
14% Juha-Pekka Niskanen - <Juha-Pekka.Niskanen@uku.fi>  -  13.11.2006
15% Department of Neurology, University of Kuopio
16%
17% Last modified - 13.11.2006 - (J-P N)
18
19if AddInfo.isDataMixed
20  fh=figure;
21  imagesc(DATA{AddInfo.CurrentSlice}.FTDATA,AddInfo.Clim)
22  colormap gray
23  axis image
24  [cx,cy,c]=improfile;
25  line(cx,cy,'color','c','linewidth',2)
26  fh2=figure;
27  plot(c)
28else
29  fh=figure;
30  imagesc(DATA{1}.FTDATA(:,:,AddInfo.CurrentSlice(1)),AddInfo.Clim)
31  colormap gray
32  axis image
33  [cx,cy,c]=improfile;
34  line(cx,cy,'color','c','linewidth',2)
35  fh2=figure;
36  plot(c)
37end
Note: See TracBrowser for help on using the repository browser.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008