Notice! This document is currently in Archived status.
The content of this document may be incorrect or out dated.

Professor Bourman's Matlab Tutorial

2D PLOTS

>> [x,y]=meshgrid(-2:0.01:2,-2:0.01:2);
>> size(x)

ans =

  401  401

>> size(y)

ans=

  401  401

>> mesh(x)

image


>> mesh(y)

image


>> z=exp(-(x.*x+y.*y));
>> mesh(z)

image




Graphic User Interface



gui_test.m                      (file name)
---------------------

hslide = uicontrol('style','slider','units','normal',...
   'pos',[.4 .0 .2 .05],'callback','set_num','Min',0,'Max',10);

number = uicontrol('style','text','units','normal',...
   'pos',[.4 .05 .2 .05]);




set_num.m                       (file name)
---------------------

hslide = uicontrol('style','slider','units','normal',...
   'pos',[.4 .0 .2 .05],'callback','set_num','Min',0,'Max',10);

number = uicontrol('style','text','units','normal',...
   'pos',[.4 .05 .2 .05]);




image




  

Last modified: 2007/03/20 17:12:16.078000 GMT-4 by Unknown
Created: 2007/03/20 17:12:16.078000 GMT-4 by brian.r.brinegar.1.

Categories

Search

Type in a few keywords describing what information you are looking for in the text box below.

Admin Options: Edit this Document