3 Digitizing

  • View
    218

  • Download
    0

Embed Size (px)

DESCRIPTION

Matlab Digitizing

Text of 3 Digitizing

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 1

    DIGITIZINGUniversiti Teknologi MalaysiaDr Michael Tan Loong PengPhD (Cambridge)Senior LecturerFaculty of Electrical EngineeringUniversiti Teknologi Malaysia

    DrMichaelTan,michael@fke.utm.my

    Introduction

    Digitizingsoftware convertsanimagefileshowingagraphormap,intonumbers.

    Theimagefilecancomefromascanner,digitalcameraorscreenshot.Thenumberscanbereadonthescreen,andwrittenorcopiedtoaspreadsheet.

    DrMichaelTan,michael@fke.utm.my

    Why Would You Need This Tool?

    Herearesomereallifeexamples: Youareanengineerwithsomegraphsindecadesolddocuments,butyoureallyneedthenumbersrepresentedinthosegraphssoyoucandoanalysesthatwilldetermineifaspacevehicleissafetofly.

    DrMichaelTan,michael@fke.utm.my

    Why Would You Need This Tool?

    Herearesomereallifeexamples: Youareagraduatestudentgatheringhistoricaldatafromchartsforyourthesis.

    Youneedtogetexperimentaldataforyouranalysistocomparewithyourmodeling.

    Youwouldliketobenchmarkyourfindingwithpublisheddata

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 2

    DrMichaelTan,michael@fke.utm.my

    Why Would You Need This Tool?

    Herearesomereallifeexamples: Yourideabikeorboatandwanttoknowhowmuchdistanceyoucoveredinyourlasttrip,butyoudonothaveanodometerorGPSunit.However,youdohaveamap.

    DrMichaelTan,michael@fke.utm.my

    Identify Figure from Paper

    DrMichaelTan,michael@fke.utm.my

    Print Screen

    DrMichaelTan,michael@fke.utm.my

    Open Replica

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 3

    DrMichaelTan,michael@fke.utm.my

    Load Image From File

    DrMichaelTan,michael@fke.utm.my

    Open Image

    DrMichaelTan,michael@fke.utm.my

    Insert Full Box

    DrMichaelTan,michael@fke.utm.my

    Fit the box into Axis

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 4

    DrMichaelTan,michael@fke.utm.my

    Dimensions

    DrMichaelTan,michael@fke.utm.my

    Start Digitizing

    DrMichaelTan,michael@fke.utm.my

    Export Data

    DrMichaelTan,michael@fke.utm.my

    Save Data to File

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 5

    DrMichaelTan,michael@fke.utm.my

    Open data file using Excel

    DrMichaelTan,michael@fke.utm.my

    Text Import Wizard

    DrMichaelTan,michael@fke.utm.my

    Choose Tab and Space

    DrMichaelTan,michael@fke.utm.my

    Select General

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 6

    DrMichaelTan,michael@fke.utm.my

    Data exported in Excel

    DrMichaelTan,michael@fke.utm.my

    Plot using XY (Scatter)

    SelectScatterwithSmoothLinesandMarkers

    DrMichaelTan,michael@fke.utm.my

    End results in Excel

    1.0E12

    1.0E11

    1.0E10

    1.0E09

    1.0E08

    1.0E07

    1.0E06

    1.0E05

    1.0E04

    10 5 0 5 10

    S

    o

    u

    r

    c

    e

    D

    r

    a

    i

    n

    C

    u

    r

    r

    e

    n

    t

    (

    A

    )

    GateVoltage(V)DrMichaelTan,michael@fke.utm.my

    Next, Plotting in MATLAB

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 7

    DrMichaelTan,michael@fke.utm.my

    Import Data

    Example1.txt

    DrMichaelTan,michael@fke.utm.my

    Import WizardSelectTab

    DrMichaelTan,michael@fke.utm.my

    Data loaded in Workspace

    NowdataappearinWorkspace

    DrMichaelTan,michael@fke.utm.my

    Saving Data as MAT FileSavedataasMATfile

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 8

    DrMichaelTan,michael@fke.utm.my

    Typesemilogy(Example1(:,1),Example1(:,2),'d')

    Plot Command

    DrMichaelTan,michael@fke.utm.my

    End Results in MATLAB

    -10 -8 -6 -4 -2 0 2 4 6 8 1010

    -12

    10-11

    10-10

    10-9

    10-8

    10-7

    10-6

    10-5

    10-4

    DrMichaelTan,michael@fke.utm.my

    clc;clear all;close all;

    load Example1.math1=semilogy(Example1(1:101,1),...

    Example1(1:101,2),'--d');

    M file normal plot

    DrMichaelTan,michael@fke.utm.my

    M file normal plot

    -10 -8 -6 -4 -2 0 2 4 6 8 1010-12

    10-11

    10-10

    10-9

    10-8

    10-7

    10-6

    10-5

    10-4

  • Monday,January14,2013

    DrMichaelTan,michael@fke.utm.my 9

    DrMichaelTan,michael@fke.utm.my

    clc;clear all;close all; load Example1.mat f1=figure(1);h1=semilogy(Example1(1:101,1),Example1(1:101,2),'--d','Color',[0.5,0,0.5],'LineWidth',2, 'MarkerSize',5);set(gca,'Fontsize',14,'linewidth',3,'FontWeight', 'normal', 'FontName','Arial'); set(gca,'xlim',[-10 10]);set(gca,'ylim',[10E-13 10E-5]);set(gca,'XMinorTick','on','YMinorTick','on')

    xlabel('Gate Voltage (V)','Fontsize',14);ylabel('Source Drain Current (A)','Fontsize',14);set(f1, 'color', 'white');

    M file enhanced plot

    DrMichaelTan,michael@fke.utm.my

    M file enhanced plot

    -10 -8 -6 -4 -2 0 2 4 6 8 1010-12

    10-11

    10-10

    10-9

    10-8

    10-7

    10-6

    10-5

    10-4

    Gate Voltage (V)

    S

    o

    u

    r

    c

    e

    D

    r

    a

    i

    n

    C

    u

    r

    r

    e

    n

    t

    (

    A

    )