您好,欢迎光临有路网!
MATLAB编程(第四版)(影印版)(内容一致,印次、封面或原价不同,统一售价,随机发货)
QQ咨询:
有路璐璐:

MATLAB编程(第四版)(影印版)(内容一致,印次、封面或原价不同,统一售价,随机发货)

  • 作者:(美)查普曼
  • 出版社:科学出版社
  • ISBN:9787030305428
  • 出版日期:2011年04月01日
  • 页数:376
  • 定价:¥58.00
  • 猜你也喜欢

    分享领佣金
    手机购买
    城市
    店铺名称
    店主联系方式
    店铺售价
    库存
    店铺得分/总交易量
    发布时间
    操作

    新书比价

    网站名称
    书名
    售价
    优惠
    操作

    图书详情

    内容提要
    本书详细讲述了利用MATLAB解决典型技术问题的方法,包括自顶向下的程序设计方法、函数的使用、MATLAB内部工具的使用和数据结构、使用技巧和常见错误等。作者将MATLAB作为一种科技程序设计语言进行介绍,帮助读者编写出简洁、**、组织良好的程序;同时,帮助读者使用MATLAB的扩展在线帮助功能来找到所需的函数。本书注重提高读者利用MATLAB解决实际问题的能力,为将来的学习与研究工作打下良好的基础。 本书可作为工科各专业本科生的教学用书,也可作为工程技术人员的参考书。
    文章节选
    CHAPTER1
    Introduction
    to MATLAB
    MATLAB(short for MATrix LABoratory)is a special-purpose computer program
    optimized to perform engineering and scientific calculations.It started life as a program
    designed to perform matrix mathematics,but over the years it has grown into a flexible
    computing system capable of solving essentially any technical problem.
    The MATLAB program implements the MATLAB programming language and
    provides a very extensive library of predefined functions to make technical programming
    tasks easier and more efficient.This book introduces the MATLAB language as it is
    implemented in MATLAB Version 7.4(Release 2007a)and shows how to use it to solve
    typical technical problems.
    MATLAB is a huge program with an incredibly rich variety of functions.Even the
    basic version of MATLAB without any toolkits is much richer than other technical
    programming languages.There are more than 1000 functions in the basic MATLAB
    product alone,and the toolkits extend this capability with many more functions in various
    specialties.This book makes no attempt to introduce the user to all of MATLAB’s
    functions.Instead,it teaches a user the basics of how to write,debug,and optimize good
    MATLAB programs and presents a subset of the most important functions.Just as
    importantly,it teaches the programmer how to use MATLAB’s own tools to locate the
    right function for a specific purpose from the enormous number of choices available.
    1.1 The Advantages of MATLAB
    MATLAB has many advantages compared with conventional computer languages for
    technical problem solving.These include
    1.Ease of Use
    MATLAB is an interpreted language,like many versions of Basic.Like Basic,it is
    very easy to use.The program can be used as a scratch pad to evaluate expressions
    typed at the command line,or it can be used to execute large prewritten programs.
    Programs may be easily written and modified with the built-in integrated
    development environment,and debugged with the MATLAB debugger.Because
    the language is so easy to use,it is ideal for the rapid prototyping of new programs.
    Many program development tools are provided to make the program easy to
    use.They include an integrated editor/debugger,on-line documentation and
    manuals,a workspace browser,and extensive demos.
    2.Platform Independence
    MATLAB is supported on many different computer systems,providing a large
    measure of platform independence.At the time of this writing,the language is
    supported on Windows 2000/XP/Vista,Linux,several versions of Unix,and the
    Macintosh.Programs written on any platform will run on all of the other
    platforms,and data files written on any platform may be read transparently on
    any other platform.As a result,programs written in MATLAB can migrate to
    new platforms when the needs of the user change.
    3.Predefined Functions
    MATLAB comes complete with an extensive library of predefined functions that
    provide tested and prepackaged solutions to many basic technical tasks.For
    example,suppose that you are writing a program that must calculate the statistics
    associated with an input data set.In most languages,you would need to write
    your own subroutines or functions to implement calculations such as the arithmetic
    mean,standard deviation,median,and so on.These and hundreds of other
    functions are built right into the MATLAB language,making your job much easier.
    In addition to the large library of functions built into the basic MATLAB
    language,there are many special-purpose toolboxes available to help solve
    complex problems in specific areas.For example,a user can buy standard
    toolboxes to solve problems in signal processing,control systems,
    communications,image processing,and neural networks,among many others.
    There is also an extensive collection of free user-contributed MATLAB programs
    that are shared through the MATLAB Web site.
    4.Device-Independent Plotting
    Unlike most other computer languages,MATLAB has many integral plotting
    and imaging commands.The plots and images can be displayed on any graphical
    output device supported by the computer on which MATLAB is running.This
    capability makes MATLAB an outstanding tool for visualizing technical data.
    5.Graphical User Interface
    MATLAB includes tools that allow a programmer to interactively construct a
    Graphical User Interface(GUI)for his or her program.With this capability,the
    programmer can design sophisticated data-analysis programs that can be operated
    by relatively inexperienced users.
    6.MATLAB Compiler
    MATLAB’s flexibility and platform independence is achieved by compiling
    MATLAB programs into a device-independent p-code and then interpreting the
    pcode instructions at runtime.This approach is similar to that used by Microsoft’s
    Visual Basic language.Unfortunately,the resulting programs can sometimes execute
    slowly because the MATLAB code is interpreted rather than compiled.We will point
    out features that tend to slow program execution when we encounter them.
    A separate MATLAB compiler is available.This compiler can compile a
    MATLAB program into a true executable that runs faster than the interpreted
    code.It is a great way to convert a prototype MATLAB program into an
    executable suitable for sale and distribution to users.
    1.2 Disadvantages of MATLAB
    MATLAB has two principal disadvantages.The first is that it is an interpreted language
    and therefore may execute more slowly than compiled languages.This problem can be
    mitigated by properly structuring the MATLAB program.
    The second disadvantage is cost: a full copy of MATLAB is five to ten times more
    expensive than a conventional C or Fortran compiler.This relatively high cost is more
    than offset by the reduced time required for an engineer or scientist to create a working
    program,so MATLAB is cost-effective for businesses.However,it is too expensive for
    most individuals to consider purchasing.Fortunately,there is also an inexpensive Student
    Edition of MATLAB,which is a great tool for students wishing to learn the language.The
    Student Edition of MATLAB is essentially identical to the full edition.
    1.3 The MATLAB Environment
    The fundamental unit of data in any MATLAB program is the array.An array is a collection
    of data values organized into rows and columns and known by a single name.Individual data
    values within an array may be accessed by including the name of the array,followed by
    subscripts in parentheses that identify the row and column of the particular value.Even
    scalars are treated as arrays by MATLAB—they are simply arrays with only one row and one
    column.We will learn how to create and manipulate MATLAB arrays in Section 1.4.
    When MATLAB executes,it can display several types of windows that accept
    commands or display information.The three most important types of windows are
    Command Windows,where commands may be entered; Figure Windows,which display
    plots and graphs; and Edit Windows,which permit a user to create and modify MATLAB
    programs.We will see examples of all three types of windows in this section.
    In addition,MATLAB can display other windows that provide help and that allow
    the user to examine the values of variables defined in memory.We will examine some of
    these additional windows here,examine the others when we discuss how to debug
    MATLAB programs.
    1.3.1 The MATLAB Desktop
    When you start MATLAB Version 7.4,a special window called the MATLAB desktop
    appears.The desktop is a window that contains other windows showing MATLAB data,
    plus toolbars and a “Start” button similar to that used by Windows XP.By default,most
    MATLAB tools are “docked” to the desktop so that they appear inside the desktop
    window.However,the user can choose to “undock” any or all tools,making them appear
    in windows separate from the desktop.
    The default configuration of the MATLAB desktop is shown in Figure 1.1.It
    integrates many tools for managing files,variables,and applications within the MATLAB
    environment.
    The Command Window
    The Command History Window
    The Start Button
    The Documents Window,including the Editor/Debugger and the Array Editor
    Figure Windows
    Workspace Browser
    Help Browser
    Path Browser
    We will discuss the functions of these tools in later sections of this chapter.
    1.3.2 The Command Window
    The right-hand side of the default MATLAB desktop contains the Command Window.A
    user can enter interactive commands at the command prompt(.)in the Command
    Window,and they will be executed on the spot.
    As an example of a simple interactive calculation,suppose that you want to calculate
    the area of a circle with a radius of 2.5 m.This can be done in the MATLAB Command
    Window by typing
    MATLAB calculates the answer as soon as the Enter key is pressed and stores the answer
    in a variable(really a 1×1 array)called area.The contents of the variable are displayed
    in the Command Window as shown in Figure 1.2,and the variable can be used in further
    calculations.(Note that π is predefined in MATLAB,so we can just use pi without first
    declaring it to be 3.141592 ...).
    Instead of typing commands directly in the Command Window,a user can place a
    series of commands into a file,and the entire file can be executed by typing its name in
    the Command Window.Such files are called script files.Script files(and functions,
    which we will see later)are also known as M-files,because they have a file extension
    of “.m”.
    1.3.3 The Command History Window
    The Command History Window displays a list of the commands that a user has entered in
    the Command Window.The list of previous commands can extend back to previous
    executions of the program.Commands remain in the list until they are deleted.To
    reexecute any command,simply double-click it with the left mouse button.To delete one
    or more commands from the Command History window,select the commands and
    right-click them with the mouse.A popup menu will be displayed that allows the user to
    delete the items(see Figure 1.3).
    1.3.4 The Start Button
    The Start Button(see Figure 1.4)allows a user to access MATLAB tools,desktop
    tools,help files,and so on.It works just like the Start button on a Windows desktop.To
    目录
    CHAPTER 1 Introduction to MATLAB
    1.1 The Advantages of MATLAB
    1.2 Disadvantages of MATLAB
    1.3 The MATLAB Environment
    1.3.1 The MATLAB Desktop
    1.3.2 The Command Window
    1.3.3 The Command History Window
    1.3.4 The Start Button
    1.3.5 The Edit/Debug Window
    1.3.6 Figure Windows
    1.3.7 Docking and Undocking Windows
    1.3.8 The MATLAB Workspace
    1.3.9 The Workspace Browser
    1.3.10 Getting Help
    1.3.11 A Few Important Commands
    1.3.12 The MATLAB Search Path
    1.4 Using MATLAB as a Scratch Pad
    1.5 Summary
    1.5.1 MATLAB Summary
    1.6 Exercises
    CHAPTER 2 MATLAB Basics
    2.1 Variables and Arrays
    2.2 Creating and Initializing Variables in MATLAB
    2.2.1 Initializing Variables in Assignment Statements
    2.2.2 Initializing with Shortcut Expressions
    2.2.3 Initializing with Built-In Functions
    2.2.4 Initializing Variables with Keyboard Input
    2.3 Multidimensional Arrays
    2.3.1 Storing Multidimensional Arrays in Memory
    2.3.2 Accessing Multidimensional Arrays with One Dimension
    2.4 Subarrays
    2.4.1 The end Function
    2.4.2 Using Subarrays on the Left-Hand Side of an Assignment Statement
    2.4.3 Assigning a Scalar to a Subarray
    2.5 Special Values
    2.6 Displaying Output Data
    2.6.1 Changing the Default Format
    2.6.2 The disp function
    2.6.3 Formatted Output with the fprintf Function
    2.7 Data Files
    2.8 Scalar and Array Operations
    2.8.1 Scalar Operations
    2.8.2 Array and Matrix Operations
    2.9 Hierarchy of Operations
    2.10 Built-in MATLAB Functions
    2.10.1 Optional Results
    2.10.2 Using MATLAB Functions with Array Inputs
    2.10.3 Common MATLAB Functions
    2.11 Introduction to Plotting
    2.11.1 Using Simple xy Plots
    2.11.2 Printing a Plot
    2.11.3 Exporting a Plot as a Graphical Image
    2.11.4 Multiple Plots
    2.11.5 Line Color,Line Style,Marker Style,and Legends
    2.11.6 Logarithmic Scales
    2.12 Examples
    2.13 Debugging MATLAB Programs
    2.14 Summary
    2.14.1 Summary of Good Programming Practice
    2.14.2 MATLAB Summary
    2.15 Exercises
    CHAPTER 3 Branching Statements and Program Design
    3.1 Introduction to Top-Down Design Techniques
    3.2 Use of Pseudocode
    3.3 The Logical Data Type
    3.3.1 Relational Operators
    3.3.2 A Caution About the == and ~= Operators
    3.3.3 Logic Operators
    3.3.4 Logical Functions
    3.4 Branches
    3.4.1 The if Construct
    3.4.2 Examples Using if Constructs
    3.4.3 Notes Concerning the Use of if Constructs
    3.4.4 The switch Construct
    3.4.5 The try/catch Construct
    3.5 Additional Plotting Features
    3.5.1 Controlling x-and y-Axis Plotting Limits
    3.5.2 Plotting Multiple Plots on the Same Axes
    3.5.3 Creating Multiple Figures
    3.5.4 Subplots
    3.5.5 Enhanced Control of Plotted Lines
    3.5.6 Enhanced Control of Text Strings
    3.5.7 Polar Plots
    3.5.8 Annotating and Saving Plots
    3.6 More on Debugging MATLAB Programs
    3.7 Summary
    3.7.1 Summary of Good Programming Practice
    3.7.2 MATLAB Summary
    3.8 Exercises
    CHAPTER 4 Loops
    4.1 The while Loop
    4.2 The for Loop
    4.2.1 Details of Operation
    4.2.2 The MATLAB Just-in-Time (JIT) Compiler
    4.2.3 The break and continue Statements
    4.2.4 Nesting Loops
    4.3 Logical Arrays and Vectorization
    4.3.1 Creating the Equivalent of if/else Constructs with Logical Arrays
    4.4 The MATLAB Profiler
    4.5 Additional Examples
    4.6 Summary
    4.6.1 Summary of Good Programming Practice
    4.6.2 MATLAB Summary
    4.7 Exercises
    CHAPTER 5 User-Defined Functions
    5.1 Introduction to MATLAB Functions
    5.2 Variable Passing in MATLAB:The Pass-by-Value Scheme
    5.3 Optional Arguments
    5.4 Sharing Data Using Global Memory
    5.5 Preserving Data between Calls to a Function
    5.6 Function Functions
    5.7 Subfunctions,Private Functions,and Nested Functions
    5.7.1 Subfunctions
    5.7.2 Private Functions
    5.7.3 Nested Functions
    5.7.4 Order of Function Evaluation
    5.8 Summary
    5.8.1 Summary of Good Programming Practice
    5.8.2 MATLAB Summary
    5.9 Exercises
    CHAPTER 6 Additional Data Types and Plot Types
    6.1 Complex Data
    6.1.1 Complex Variables
    6.1.2 Using Complex Numbers with Relational Operators
    6.1.3 Complex Functions
    6.1.4 Plotting Complex Data
    6.2 String Functions
    6.2.1 String Conversion Functions
    6.2.2 Creating Two-Dimensional Character Arrays
    6.2.3 Concatenating Strings
    6.2.4 Comparing Strings
    6.2.5 Searching and Replacing Characters Within a String
    6.2.6 Uppercase and Lowercase Conversion
    6.2.7 Trimming Whitespace from Strings
    6.2.8 Numeric-to-String Conversions
    6.2.9 String-to-Numeric Conversions
    6.2.10 Summary
    6.3 Multidimensional Arrays
    6.4 Additional Data Types
    6.4.1 The single Data Type
    6.4.2 Integer Data Types
    6.4.3 Limitations of the single and Integer Data Types
    6.5 Additional Two-Dimensional Plots
    6.5.1 Additional Types of Two-Dimensional Plots
    6.5.2 Plotting Functions
    6.5.3 Histograms
    6.6 Three-Dimensional Plots
    6.6.1 Three-Dimensional Line Plots
    6.6.2 Three-Dimensional Surface,Mesh,and Contour Plots
    6.7 Summary
    6.7.1 Summary of Good Programming Practice
    6.7.2 MATLAB Summary
    6.8 Exercises
    CHAPTER 7 Advanced Features: Sparse Arrays,Cell Arrays,Structures,and Function Handles
    7.1 Sparse Arrays
    7.1.1 The sparse Attribute
    7.2 Cell Arrays
    7.2.1 Creating Cell Arrays
    7.2.2 Using Braces {} as Cell Constructors
    7.2.3 Viewing the Contents of Cell Arrays
    7.2.4 Extending Cell Arrays
    7.2.5 Deleting Cells in Arrays
    7.2.6 Using Data in Cell Arrays
    7.2.7 Cell Arrays of Strings
    7.2.8 The Significance of Cell Arrays
    7.2.9 Summary of cell Functions
    7.3 Structure Arrays
    7.3.1 Creating Structure Arrays
    7.3.2 Adding Fields to Structures
    7.3.3 Removing Fields from Structures
    7.3.4 Using Data in Structure Arrays
    7.3.5 The getfield and setfield Functions
    7.3.6 Dynamic Field Names
    7.3.7 Using the size Function with Structure Arrays
    7.3.8 Nesting Structure Arrays
    7.3.9 Summary of structure Functions
    7.4 Function Handles
    7.4.1 Creating and Using Function Handles
    7.4.2 The Significance of Function Handles
    7.4.3 Function Handles and Nested Functions
    7.4.4 An Example Application: Solving Ordinary Differential Equations
    7.5 Summary
    7.5.1 Summary of Good Programming Practice
    7.5.2 MATLAB Summary
    7.6 Exercises
    CHAPTER 8 Input/Output Functions
    8.1 The textread Function
    8.2 More about the load and save Commands
    8.3 An Introduction to MATLAB File Processing
    8.4 File Opening and Closing
    8.4.1 The fopen Function
    8.4.2 The fclose Function
    8.5 Binary I/O Functions
    8.5.1 The fwrite Function
    8.5.2 The fread Function
    8.6 Formatted I/O Functions
    8.6.1 The fprintf Function
    8.6.2 Understanding Format Conversion Specifiers
    8.6.3 How Format Strings Are Used
    8.6.4 The sprintf Function
    8.6.5 The fscanf Function
    8.6.6 The fgetl Function
    8.6.7 The fgets Function
    8.7 Comparing Formatted and Binary I/O Functions
    8.8 File Positioning and Status Functions
    8.8.1 The exist Function
    8.8.2 The ferror Function
    8.8.3 The feof Function
    8.8.4 The ftell Function
    8.8.5 The frewind Function
    8.8.6 The fseek Function
    8.9 The textscan Function
    8.10 Function uiimport
    8.11 Summary
    8.11.1 Summary of Good Programming Practice
    8.11.2 MATLAB Summary
    8.12 Exercises
    CHAPTER 9 Handle Graphics
    9.1 The MATLAB Graphics System
    9.2 Object Handles
    9.3 Examining and Changing Object Properties
    9.3.1 Changing Object Properties at Creation Time
    9.3.2 Changing Object Properties after Creation Time
    9.4 Using set to List Possible Property Values
    9.5 User-Defined Data
    9.6 Finding Objects
    9.7 Selecting Objects with the Mouse
    9.8 Position and Units
    9.8.1 Positions of figure Objects
    9.8.2 Positions of axes and uicontrol Objects
    9.8.3 Positions of text Objects
    9.9 Printer Positions
    9.10 Default and Factory Properties
    9.11 Graphics Object Properties
    9.12 Summary
    9.12.1 Summary of Good Programming Practice
    9.12.2 MATLAB Summary
    9.13 Exercises

    与描述相符

    100

    北京 天津 河北 山西 内蒙古 辽宁 吉林 黑龙江 上海 江苏 浙江 安徽 福建 江西 山东 河南 湖北 湖南 广东 广西 海南 重庆 四川 贵州 云南 西藏 陕西 甘肃 青海 宁夏 新疆 台湾 香港 澳门 海外