MATLAB 程式設計 Learning Arrays and x-y Plotting 方煒 台大生機系.

Slides:



Advertisements
Similar presentations
A. a Alpha Pronounced a as in hat b B b e b beta.
Advertisements

CSE 123 Plots in MATLAB. Easiest way to plot Syntax: ezplot(fun) ezplot(fun,[min,max]) ezplot(fun2) ezplot(fun2,[xmin,xmax,ymin,ymax]) ezplot(fun) plots.
Plotting Selim Aksoy Bilkent University Department of Computer Engineering
Lecture (4) Plotting & Programming (1) Eng. Osama Talaat 1.
Matlab Graphics S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: 2D Graphics.
1 Chapter 4 Curve Plotting with MATLAB MATLAB provides some very powerful features for plotting and labeling curves. These operations can be performed.
In Ancient Greece, there were two main languages. The first being Latin, and the second being basic Greek. Like English, those two languages went threw.
11. Residence Hall Competition Merchandise Merchandise 2 nd Place Laws Defoe-Graham Schurz Jones McDavid College Ave. Tiger Diggs.
Virginia Avenue North, South, and Center Hall.
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
Ancient Greek for Everyone: A New Digital Resource for Beginning Greek Unit 1 part 2: consonants 2013 edition Wilfred E. Major
MATLAB’s extensive, device-independent plotting capabilities are one of its most powerful features. They make it very easy to plot any data at any time.
MATLAB 程式設計 Learning Surface, Contour, and Vector Field Plots 方煒 台大生機系.
Going Greek? Fraternities Sigma Alpha Epsilon Colors : Purple and Gold Mission: The True Gentleman Initiative - Leadership and Brotherhood Founded on.
LISREL IS GREEK TO ME Factor analysis The SEM model Ulf H. Olsson Professor of Statistics.
EGR106 Week 6 MATLAB FILES Two Dimensional Plots Multiple Plots
EGR106 Week 5 MATLAB FILES Two Dimensional Plots Multiple Plots Plot Formatting Homework.
WELCOME TO MEET the GREEKS!!! Hosted By UCM’s own National Pan-Hellenic Council (NPHC)
Met Multivartate Statistics Ho-Testing OLS-regression LISREL IS GREEK TO ME The SEM model LISREL SOFTWARE Ulf H. Olsson Professor of Statistics.
EGR106 Week 4 Two Dimensional Plots Multiple Plots Plot Formatting Homework.
Plotting - Advanced. FPLOT Plots a function f(x) written as a string within quotation marks. The free variable needs to be designated with x. The lower.
ELEMENTARY GREEK GREK 1001 M-Th 8:40-9:30 ***. ELEMENTARY GREEK Writing the Greek alphabet.
Matlab intro The Environment
UniSTEP / MLC Seminars: Maths in Lectures: Understanding the Notation Dr David Butler Maths Learning Centre The University of Adelaide
The Greek Alphabet From Alpha to Omega. A a Name: Alpha Sound: “Father” “I am the Alpha and the Omega”
In World War Two, Italy first attacked Greece, but Greece defended themselves. Then Germany attacked Greece and then Greece lost the war. Greece’s.
MATLAB INTRO CONTROL LAB1  The Environment  The command prompt Getting Help : e.g help sin, lookfor cos Variables Vectors, Matrices, and Linear Algebra.
PLOTS AND FIGURES DAVID COOPER SUMMER Plots One of the primary uses for MATLAB is to be able to create publication quality figures from you data.
CMPS 1371 Introduction to Computing for Engineers PLOTTING.
MATLAB Plotting With MATLAB 1. Two Dimensional Plots The xy plot is the most commonly used plot by engineers The independent variable is usually called.
16 June 2010Ventura College Mathematics Department1 Basic Geometry Review For Trigonometry Students.
Greek Penmanship Workshop. Greek Letters Used in Mathematics Αα alpha Β β beta Γγ gamma Δδ delta Εε epsilon Ζζ zeta Ηη eta Θθ theta Ιι iota Κ κ κ kappa.
 5 th Place  Delta Gamma / Alpha Epsilon Pi  Alpha Phi / Sigma Pi / Tau Kappa Epsilon.
Ancient Greeks World Cultures 7.
MATLAB for Engineers, by Holly Moore. ISBN © 2007 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is.
MATLAB 程式設計 Learning Linear Algebra 方煒 台大生機系. MATLAB 程式設計 Vector Products, Dot and Cross a=[1,2,3];b=[3,2,1]; C=a*b D=a.*b E=dot(a,b) F=cross(a,b)
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication Linda Driskill, Gang Cheng,
 510 or higher on SAT in either area  3.0 or higher GPA.
Stars and star names. 88 official constellations.
a b g d e z h q i k l m n x o p r s j t u f c y w.
Α Α. a Alpha “short a” as in father β Β b beta.
Mission: The 1872 Society will exist to recognize fraternities and sororities and their members who actively live out the ideals of fraternities and sororities.
Involvement. Why to get Involved? John Gardner's nine reasons to get involved: 1) YOU'LL MEET PEOPLE 2) YOU'LL EXPERIMENT AND GAIN EXPERIENCE 3) YOU'LL.
11. Campus Organizations Competition Merchandise.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
Introduction to Matlab  Matlab is a software package for technical computation.  Matlab allows you to solve many numerical problems including - arrays.
ELG 3120 Lab 2 TAs Wei Zhang Ozgur Ekici (Section A) (Section B)
Alpha In Mathematics Often represents angles in algebra. In statistics, the significance level when a Normal Distribution is used. Alpha Radiation Angular.
Bell Ringer – 3/26/08 1.Who started the NAACP and what were the organization’s goals? 2.What does NACW stand for? What were the organization’s original.
Ancient Greeks World Cultures 7.
Homework 2 計財 張儷瀞. 1. Black-Scholes Model (Code) S0=30:1:70; X=50; r=0.08; sigma=0.4; for T=2:-0.25:0 [c, p]=blsprice(S0, X, r, T, sigma)
The Alphabet a…b… Get it?. Alpha A a Nu N n Beta B b Xi C c Gamma G g Omicron O o Delta D d Pi P p Epsilon E e Rho R r Zeta Z z Sigma S s j Eta H h Tau.
Plotting. 2 Initializing Vectors colon operator x = 1:2:10 x = y = 0:0.1:0.5 y =
EGR 106 – Week 5 – 2-D Plots Question : Why do engineers use plots? Answer : To analyze, visualize, and present data. Matlab has many useful plotting options.
Lecture 17 More Plotting Chapter 12 Matrices. Outline from Chapter D Plotting 11.4 Surface Plots 11.5 Interacting with Plotted Data.
How to use MATLAB (using M-files) Double click this icon To start Matlab 6.5.
Session III Plotting in MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU MATLAB Tutorials.
“Beginning New Testament Greek” “Beginning New Testament Greek”
Aim: How do we look at angles as rotation?
Trigonometry Review.
Math Grammar (math.xml)
MatLab – 2D Plots 2 MATLAB has many built-in functions and commands to create various types of plots. Instructor notes: We start with an example of some.
Plotting Multiple Graphs In The Same Plot
Introduction to MATLAB Plotting LAB 3
Bridging (Inter)National Philanthropies into Local Partnerships
Aim: How do we look at angles as rotation?
MATLAB 程式設計 Learning Loops and Logic
The Greek Alphabet The Greek Alphabet.
Coordinate Systems Dr. Midori Kitagawa.
Space groups Start w/ 2s and 21s 222.
Presentation transcript:

MATLAB 程式設計 Learning Arrays and x-y Plotting 方煒 台大生機系

MATLAB 程式設計 Ex4_2 xy Plots, Labels, and Titles dx=.01; x=.5*dx:dx:10-0.5*dx; y=sin(5*x); plot(x,y, ’ r- ’ ); nhalf=ceil(length(x)/2); plot(x(1:nhalf),y(1:nhalf), ’ b- ’ ) plot(x(nhalf:end),y(nhalf:end), ’ b- ’ ) xlabel( ’ \theta ’ ) ylabel( ’ F(\theta) ’ ) title( ’ F(\theta)=sin(5 \theta) ’ ) s=sprintf( ’ F(\\theta)=sin(%i \\theta) ’,5) title(s)

MATLAB 程式設計 Ex4_3 Overlaying Plots close y2=cos(x); % the second function % plot both plot(x,y, ’ r- ’,x,y2, ’ b- ’ ) close all; plot(x,y, ’ r- ’ ) hold on plot(x,y2, ’ b- ’ ) Hold off

MATLAB 程式設計 Ex4_4 xyz Plots: Curves in 3-D Space clear;close all; dphi=pi/100; % set the spacing in azimuthal angle N=30; % set the number of azimuthal trips phi=0:dphi:N*2*pi; theta=phi/N/2; % go from north to south once r=1; % sphere of radius 1 % convert spherical to Cartesian x=r*sin(theta).*cos(phi); y=r*sin(theta).*sin(phi); z=r*cos(theta); % plot the spiral plot3(x,y,z, ’ b- ’ ) axis equal

MATLAB 程式設計 Ex4_5 Logarithmic Plots x=0:.1:8; y=exp(x); semilogx(x,y); title( ’ Semilogx ’ ) pause semilogy(x,y); title( ’ Semilogy ’ ) pause loglog(x,y); title( ’ Loglog ’ )

MATLAB 程式設計 Ex4_6 Generating Multiple Plots x=0:.01:20; f1=sin(x); f2=cos(x)./(1+x.^2); figure plot(x,f1) figure plot(x,f2)

MATLAB 程式設計 Ex4_7 Controlling the Axes close all; x=.01:.01:20; y=cos(x)./x; plot(x,y) axis([ ]) plot(x,y) xlim([ 0 25]) plot(x,y) ylim([-5 5]) axis equal

MATLAB 程式設計 Ex4_8 Greek Letters, Subscripts, and Superscripts \alpha \beta \gamma \delta \epsilon \phi \theta \kappa \lambda \mu \nu \pi \rho \sigma \tau \xi \zeta Θ 1 is coded with \theta_1 Θ 12 is coded with \theta {12} Θ 10 is coded with \theta ^{10} text(10,.5, ’ Hi ’ );