亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? polarhg.m

?? lagre no of m file for matlab course code file #2
?? M
字號(hào):
function H = polarhg(theta,rho,p1,v1,p2,v2,p3,v3,p4,v4,p5,v5,p6,v6,p7,v7,p8,v8)
warning off
%
% POLARHG is similar to polar; however, it is possible to set some
% pseudo-properties.  Below is a table of the pseudo-properties,
% their function, and settings:
%
% PSEUDO- 
% PROPERTY    FUNCTION                SETTING/OPTIONS
% --------    --------                ---------------
% theta       The theta values        any valid vector
% rho         The rho values          any valid vector
% tdir        Controls the direction  [ClockWise|{CounterClockWise}]
%             that the angles are
%             labeled.
% rlim        Rho limits               NaN -> 2-element vector [min max]
% rtick       Rho tick mark            NaN -> any valid vector
%             location
% tstep       Step used for            30  -> scalar in degrees
%             Drawing the spokes
% torig       Origin of theta          [Up|Down|Left|{Right}]
% color       Color of trace           [RGB Vector|Colorspec|{'Y'}]
% linestyle   Line style               [{-}|+|--|:|.|x|o|*]
%
% Examples of use:
%
% theta = 0:pi/5:pi;
% rho = 10*rand(size(theta));
% h = polarhg(theta,rho,'tdir','clockwise','rlim',[0 10], ...
%            'rtick',[0 3 6 9],'tstep',45,'torig','down', ...
%            'color','m','linestyle',':');
% SEE ALSO:  POLAR

% Written by John L. Galenski III  11/01/93-04/07/94
% All Rights Reserved
% LDM052694jlg

%%%%%  This M-file has not been tested by the MathWorks, Inc.
%%%%%  There are some known problems with error checking,
%%%%%  however, the M-file is operational.

%%%%%  Note, the grid for the polar plot now consists of two
%%%%%  lines.  One connects the spokes, and the other connects
%%%%%  the circles.  

%%%%%  Future enhancements:
%%%%%
%%%%%    ttick         location of spokes


N = nargin;

% Create the property name/property value string arrays
PropFlag = zeros(1,7);
for X = 1:(N-2)/2
  p = eval(['p',int2str(X)]);
  v = eval(['v',int2str(X)]);
  if X == 1
    Property_Names = p;
    Property_Value = v;
  else
    Property_Names = str2mat(Property_Names,p);
    Property_Value = str2mat(Property_Value,v);
  end
  if strcmp(p,'color')
    PropFlag(1) = 1;
    color = v;
  elseif strcmp(p,'rtick')
    PropFlag(2) = 1;
    rtick = v;
  elseif strcmp(p,'rlim')
    PropFlag(3) = 1;
    rlim = v;
  elseif strcmp(p,'tdir')
    PropFlag(4) = 1;
    tdir = v;
  elseif strcmp(p,'tstep')
    PropFlag(5) = 1;
    tstep = v;
  elseif strcmp(p,'torig')
    PropFlag(6) = 1;
    torig = v;
  elseif strcmp(p,'linestyle')
    PropFlag(7) = 1;
    linestyle = v;
  else
    error(['Invalid pseudo-property name: ',p]) 
  end
end

% Determine which properties have not been set by
% the user
NotSet = find(PropFlag == 0);
Default_Settings = ['''y''                   ';
                    'NaN                   ';
                    'NaN                   ';
                    '''counterclockwise''    ';
                    '30                    ';
                    '''right''               ';
                    '''-''                   '];
Property_Names =   ['color    ';
                    'rtick    ';
                    'rlim     ';
                    'tdir     ';
                    'tstep    ';
                    'torig    ';
                    'linestyle'];
for I = 1:length(NotSet)
  eval([Property_Names(NotSet(I),:),'=',Default_Settings(NotSet(I),:),';'])
end

% Start
CurrentAxes = newplot;
NextPlot = get(CurrentAxes,'NextPlot');
HoldFlag = ishold;
AxisColor = get(CurrentAxes,'XColor');

if ~HoldFlag
  hold on
  % make a radial grid
  if ~isnan(rlim)                   % rlim is defined
    MinRho = find(rho<min(rlim));   % Minimum rho limit
    MaxRho = find(rho>max(rlim));   % Maximum rho limit
    rho([MinRho,MaxRho]) = [].*ones(size([MinRho,MaxRho]));
    theta([MinRho,MaxRho]) = [].*ones(size([MinRho,MaxRho]));
  end
  Temp=plot([0 max(theta(:))],[0 max(abs(rho(:)))]); % Initialize plotting info
  AxisLim = [get(CurrentAxes,'xlim') get(CurrentAxes,'ylim')];
  NumTicks = length(get(CurrentAxes,'ytick'));
  delete(Temp);

  % check radial limits and ticks
  if isnan(rtick)                   % rtick not defined
    if ~isnan(rlim)                 % rlim is defined
      Rmin = rlim(1);               % Initialize Rmin
      Rmax = rlim(2);               % Initialize Rmax
    else                            % rlim is not defined
      Rmin = 0;                     % Set Rmin = 0
      Rmax = AxisLim(4);            % Set Rmax = maximum y-axis value
    end
    NumTicks = NumTicks-1;          % Number of circles
    if NumTicks > 5                 % see if we can reduce the number
      if rem(NumTicks,2) == 0       
        NumTicks = NumTicks/2;
      elseif rem(NumTicks,3) == 0
        NumTicks = NumTicks/3;
      end
    end
    Rinc = (Rmax-Rmin)/NumTicks;    % Distance between circles
    rtick = (Rmin+Rinc):Rinc:Rmax;  % radii of circles
  else                              % rtick is defined
    if isnan(rlim)                  % rlim is not defined
       %    Rmin = -60;                     % set Rmin = -60 SPB
            Rmin = 0;                     % set Rmin = 0
      Rmax = max(rtick);            % set Rmax = max rtick value
    else                            % rlim is defined
      Rmin = min(rlim);             % set Rmin = minimum rlim
      Rmax = max(rlim);             % set Rmax = maximum rlim
      RtickMin = find(rtick<Rmin);  % find elements of rtick < min(rlim)
      RtickMax = find(rtick>Rmax);  % find elements of rtick > max(rlim)
                                    % remove these values from rtick
      rtick([RtickMin,RtickMax]) = [].*ones(size([RtickMin,RtickMax]));
    end
    rtick = [Rmin,rtick,Rmax];      % the new radii
    set(CurrentAxes,'Ylim',[Rmin Rmax]) % set the Y-limits to [Rmin Rmax]
    NumTicks = length(rtick)-1;     % number of circles
  end

% plot spokes
  th = (1:.5*360/tstep)*2*pi*tstep/360;  % define the spokes
  cst = cos(th);
  snt = sin(th);
  cs = [-cst; cst];
  sn = [-snt; snt];
  cs = [cs;NaN.*cs(1,:)];
  sn = [sn;NaN.*sn(1,:)];
  % plot the spokes
  hh = plot((Rmax-Rmin)*cs(:),(Rmax-Rmin)*sn(:),'-', ...
             'color',AxisColor,'linewidth',1);
  set(0,'UserData',hh)

  % annotate spokes in degrees
  Rt = 1.1*(Rmax-Rmin);
 for i = 1:max(size(th))
    text(Rt*cst(i),Rt*snt(i),int2str(i*tstep),'horizontalalignment','center');
    if i == max(size(th))
      loc = int2str(0);
    else
      loc = int2str(180+i*tstep);
    end
    text(-Rt*cst(i),-Rt*snt(i),loc,'horizontalalignment','center');
  end

  % set view to 2-D.  Use the appropriate view (tdir)
  tdir = lower(tdir);
  torig = lower(torig);
  if strcmp(tdir(1:5),'count') & strcmp(torig,'right')
    view(0,90);
    InitTh = 0;
  elseif strcmp(tdir(1:5),'count') & strcmp(torig,'left')
    view(180,90);
    InitTh = 1;
  elseif strcmp(tdir(1:5),'count') & strcmp(torig,'up')
    view(-90,90);
    InitTh = 2;
  elseif strcmp(tdir(1:5),'count') & strcmp(torig,'down')
    view(90,90);
    InitTh = 3;
  elseif strcmp(tdir(1:5),'clock') & strcmp(torig,'right')
    view(0,-90);
    InitTh = 0;
  elseif strcmp(tdir(1:5),'clock') & strcmp(torig,'left')
    view(180,-90);
   InitTh = 1;
  elseif strcmp(tdir(1:5),'clock') & strcmp(torig,'up')
    view(90,-90);
    InitTh = 2;
  elseif strcmp(tdir(1:5),'clock') & strcmp(torig,'down')
    view(-90,-90);
    InitTh = 3;
  else
    error('Invalid TDir or TOrig')
  end
  if strcmp(torig,'up') | strcmp(torig,'down')
    axis square
  end

  % define a circle
  th = 0:pi/75:2*pi;
  xunit = cos(th);
  yunit = sin(th);

  % This code has been vectorized so that only one line
  % is used to draw the circles.
  MultFact = rtick-Rmin;
  [MM,NN] = size(MultFact);
  [MMM,NNN] = size(xunit);
  XUNIT = [MultFact' * ones(1,NNN)] .* [ones(NN,1) * xunit];
  YUNIT = [MultFact' * ones(1,NNN)] .* [ones(NN,1) * yunit];
  XUNIT = XUNIT';
  YUNIT = YUNIT';
  XX = [XUNIT;NaN.*XUNIT(1,:)];
  YY = [YUNIT;NaN.*YUNIT(1,:)];
  hhh = plot(XX(:),YY(:),'-','Color',AxisColor,'LineWidth',1);
  % Add the text and make sure that it always starts at the origin
  % and moves up. 
  for i = MultFact
    if InitTh == 0       % Right
      Xt = 0;
      Yt = i;
    elseif InitTh == 1   % Left
      Xt = 0;
      Yt = -i;
    elseif InitTh == 2   % Up
      Xt = i;
      Yt = 0;
    elseif InitTh == 3   % Down
      Xt = -i;
      Yt = 0;
    else
      Xt = 0;
      Yt = i;
    end
    text(Xt+1,Yt,num2str(i+Rmin),'VerticalAlignment','bottom', ...
        'HorizontalAlignment','left');
  end

  % set axis limits
  axis((Rmax-Rmin)*[-1 1 -1.1 1.1]);
else

Rmin = min(rlim);             
Rmax = max(rlim);

end
% transform data to Cartesian coordinates.
xx = (rho-Rmin).*cos(theta); % I'm not sure if this is correct
yy = (rho-Rmin).*sin(theta);


% plot data on top of grid
q = plot(xx,yy);
set(q,'Color',color,'linestyle',linestyle)

if nargout > 0
        hpol = q;
end
if ~HoldFlag
        axis('equal');axis('off');
end

% reset hold state
if ~HoldFlag, set(CurrentAxes,'NextPlot',NextPlot); end

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩二区三区四区| 欧美成人午夜电影| 色综合天天综合网天天狠天天 | av一区二区三区| 国产成人av一区| 国产成人免费视频网站| 国产iv一区二区三区| 成人av动漫网站| 99久久免费视频.com| 99国产精品国产精品久久| 成人avav在线| 色88888久久久久久影院野外| 色婷婷精品大在线视频| 欧美视频第二页| 欧美剧情电影在线观看完整版免费励志电影 | 国产亚洲短视频| 精品999在线播放| www国产精品av| 国产精品免费丝袜| 亚洲欧美另类综合偷拍| 亚洲一区二区成人在线观看| 亚洲成人av电影| 蜜臀国产一区二区三区在线播放 | 色诱视频网站一区| 欧美日韩高清一区| 精品三级av在线| 国产欧美日韩精品在线| 亚洲免费视频中文字幕| 偷拍一区二区三区| 国内精品久久久久影院薰衣草| 国产成a人亚洲| 欧美色视频在线| 久久亚洲捆绑美女| 亚洲欧洲精品一区二区精品久久久| 亚洲激情图片一区| 久久精品国产网站| 丁香婷婷综合五月| 在线观看视频一区| 精品国产精品网麻豆系列| 国产精品乱人伦中文| 一级女性全黄久久生活片免费| 久久精品国产第一区二区三区| 国产91丝袜在线播放| 欧美视频在线不卡| 久久久久亚洲蜜桃| 亚洲国产精品自拍| 国产麻豆精品一区二区| 在线观看免费视频综合| 亚洲精品在线电影| 亚洲激情图片一区| 国产精品亚洲а∨天堂免在线| 欧美中文一区二区三区| 久久久久高清精品| 亚洲国产日产av| 国产成人亚洲精品狼色在线| 欧美性极品少妇| 欧美韩国一区二区| 视频一区中文字幕国产| www.成人网.com| 欧美成人一区二区三区| 一区二区三区小说| 国产99久久久精品| 日韩欧美国产一二三区| 一区二区三区在线影院| 国产成人免费视| 欧美一级理论片| 亚洲午夜精品在线| 99麻豆久久久国产精品免费 | 免费一区二区视频| 日本精品一级二级| 国产欧美一区二区精品久导航 | 99久久久久久| 久久精品人人做人人爽人人| 秋霞午夜鲁丝一区二区老狼| 色综合久久综合网欧美综合网| 久久婷婷色综合| 午夜成人免费视频| 色婷婷精品大视频在线蜜桃视频| 国产欧美日韩卡一| 韩国一区二区三区| 欧美一二三区精品| 性做久久久久久免费观看| 91美女片黄在线观看| 亚洲国产成人一区二区三区| 国产综合久久久久久鬼色| 欧美一区在线视频| 日一区二区三区| 欧美亚一区二区| 亚洲视频一区二区免费在线观看| 东方欧美亚洲色图在线| 久久久久久久综合| 老司机免费视频一区二区三区| 欧美精品777| 亚洲v中文字幕| 欧美唯美清纯偷拍| 亚洲国产中文字幕在线视频综合 | 国产精品久久久久久久久图文区 | 久久福利资源站| 在线观看网站黄不卡| 亚洲欧美日韩国产综合| www.亚洲在线| 国产精品久久久久久久久免费丝袜| 国内精品第一页| 久久精品在这里| 顶级嫩模精品视频在线看| 中文一区在线播放| av福利精品导航| 日韩一区欧美小说| 在线观看亚洲a| 亚洲成av人综合在线观看| 欧美日韩一区二区三区在线看 | 成人网页在线观看| 日本一区二区视频在线| 成人看片黄a免费看在线| 国产精品久久久久久久久免费相片| eeuss鲁片一区二区三区| 综合在线观看色| 欧美视频一区在线观看| 男女男精品网站| 国产午夜精品一区二区三区嫩草| 高清在线成人网| 亚洲图片另类小说| 欧美日韩精品欧美日韩精品一| 日韩精品免费视频人成| 精品国产免费人成电影在线观看四季| 国产在线精品国自产拍免费| 国产精品天美传媒沈樵| 在线观看网站黄不卡| 全国精品久久少妇| 国产午夜久久久久| 日本乱人伦一区| 蜜桃精品在线观看| 国产精品三级电影| 欧美在线短视频| 久久国产精品色婷婷| 国产精品毛片久久久久久久| 欧美日韩国产综合一区二区| 韩国女主播成人在线观看| 国产精品看片你懂得| 欧美日韩亚洲国产综合| 韩国三级电影一区二区| √…a在线天堂一区| 欧美高清你懂得| 成人在线视频一区| 日本中文字幕不卡| 国产日韩精品一区二区三区| 日本精品一区二区三区四区的功能| 日韩成人一区二区三区在线观看| 国产亚洲一区字幕| 欧美中文字幕一区| 国产精华液一区二区三区| 伊人色综合久久天天| 精品国产3级a| 欧美伊人精品成人久久综合97| 色素色在线综合| 久久精品欧美一区二区三区不卡| 91在线观看高清| 久久超碰97人人做人人爱| 中文字幕+乱码+中文字幕一区| 欧美美女一区二区三区| 国产精品自拍av| 亚洲国产精品一区二区www| 精品国产乱码久久久久久久久| 欧美专区亚洲专区| 成人免费视频国产在线观看| 日韩精品亚洲一区二区三区免费| 中文在线一区二区| 精品国产91亚洲一区二区三区婷婷| 欧美色倩网站大全免费| www.亚洲色图.com| 国产综合久久久久久鬼色| 五月婷婷激情综合| 1024国产精品| 久久久久亚洲蜜桃| 欧美一区二区播放| 欧美在线观看18| 97se亚洲国产综合自在线不卡 | 顶级嫩模精品视频在线看| 美国三级日本三级久久99| 亚洲综合免费观看高清在线观看| 欧美激情资源网| 久久久久久久久久看片| 日韩久久久久久| 在线综合+亚洲+欧美中文字幕| 色偷偷88欧美精品久久久| av一区二区不卡| 国产99一区视频免费| 国产精品综合视频| 日产国产高清一区二区三区| 亚洲18影院在线观看| 亚洲永久免费av| 一区二区成人在线| 亚洲精品日产精品乱码不卡| 中文字幕在线一区二区三区| 国产亚洲精品bt天堂精选| 国产亚洲精品精华液| 国产亚洲视频系列| 久久综合狠狠综合久久综合88| 日韩欧美综合在线| 777午夜精品免费视频|