📄 samples.m
字号:
close all;% function SAMPLES% Saves the matrices RHO and THETA in GDATA.MATfigure('numbertitle','off', ... 'name','Location of Sample Points in ISAR')rect = [.1, .3, .64, .6]; axes('position', rect); set(gcf,'resize','on')%%% Frame for controlsfrc=uicontrol('style','frame','position',[.78 .05 .19 .92], ... 'units','normalized');tc1=uicontrol('style','text','position',[.8 .91 .15 .05], ... 'units','normalized','string','VARIABLES', ... 'foregroundcolor','w');ttt=uicontrol('style','text','position',[.8 .85 .15 .05], ... 'units','normalized','string','Total time', ... 'foregroundcolor','k','horizontalalignment','left');ett=uicontrol('style','edit','position',[.8 .81 .15 .04], ... 'units','normalized','string','0.3297', ... 'foregroundcolor','w','backgroundcolor','k');tfr=uicontrol('style','text','position',[.8 .74 .15 .05], ... 'units','normalized','string','Frequency', ... 'foregroundcolor','k','horizontalalignment','left');efr=uicontrol('style','edit','position',[.8 .70 .15 .04], ... 'units','normalized','string','8.0125e9', ... 'foregroundcolor','w','backgroundcolor','k');tbw=uicontrol('style','text','position',[.8 .63 .15 .05], ... 'units','normalized','string','Bandwidth', ... 'foregroundcolor','k','horizontalalignment','left');ebw=uicontrol('style','edit','position',[.8 .59 .15 .04], ... 'units','normalized','string','3.175e9', ... 'foregroundcolor','w','backgroundcolor','k');tvl=uicontrol('style','text','position',[.8 .52 .15 .05], ... 'units','normalized','string','Velocity', ... 'foregroundcolor','k','horizontalalignment','left');evl=uicontrol('style','edit','position',[.8 .48 .15 .04], ... 'units','normalized','string','0.3297', ... 'foregroundcolor','w','backgroundcolor','k');tac=uicontrol('style','text','position',[.8 .41 .15 .05], ... 'units','normalized','string','Acceleration', ... 'foregroundcolor','k','horizontalalignment','left');eac=uicontrol('style','edit','position',[.8 .37 .15 .04], ... 'units','normalized','string','0', ... 'foregroundcolor','w','backgroundcolor','k');tbr=uicontrol('style','text','position',[.8 .3 .15 .05], ... 'units','normalized','string','Bursts', ... 'foregroundcolor','k','horizontalalignment','left');ebr=uicontrol('style','edit','position',[.8 .26 .15 .04], ... 'units','normalized','string','128', ... 'foregroundcolor','w','backgroundcolor','k');tpl=uicontrol('style','text','position',[.8 .19 .15 .05], ... 'units','normalized','string','Pulses', ... 'foregroundcolor','k','horizontalalignment','left');epl=uicontrol('style','edit','position',[.8 .15 .15 .04], ... 'units','normalized','string','128', ... 'foregroundcolor','w','backgroundcolor','k');pds=uicontrol('style','checkbox','position',[.8 .07 .15 .06], ... 'string','Discrete','units','normalized','foregroundcolor','k');%%% Frame for pushbuttonsfrb=uicontrol('style','frame','position',[.1 .05 .64 .1], ... 'units','normalized');pclo=uicontrol('style','push','position',[.14 .07 .16 .06], ... 'string','Close','units','normalized', ... 'callback',['close;','clear all']);psav=uicontrol('style','push','position',[.34 .07 .16 .06], ... 'string','Save','units','normalized', ... 'callback','save gdata rho theta');pgen=uicontrol('style','push','position',[.54 .07 .16 .06], ... 'string','Generate','units','normalized', ... 'callback',['t=zeros(1,8);', ... 't(1)=str2num(get(ett,''string''));', ... 't(2)=str2num(get(efr,''string''));', ... 't(3)=str2num(get(ebw,''string''));', ... 't(4)=str2num(get(evl,''string''));', ... 't(5)=str2num(get(eac,''string''));', ... 't(6)=str2num(get(ebr,''string''));', ... 't(7)=str2num(get(epl,''string''));', ... 't(8)=get(pds,''value'');', ... '[rho,theta]=points(t);', ... 'fx=rho.*cos(theta);','fy=rho.*sin(theta);', ... 'plot(fx,fy,''.'');']);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -