跳到内容
MathWorks

自定进度 在线课程

  • Self-Paced Content
  • MathWorks
  • MATLAB 帮助中心
  • 社区
  • 学习
  • 获取 MATLAB MATLAB
  • 登录
    • 我的帐户
    • 我的社区资料
    • 关联许可证

    • 登出
  • 联系 MathWorks 支持人员
  • Visit mathworks.com
  • 网上课程
MathWorks MathWorks

选择网站

选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。

  • (English)
  • (Deutsch)
  • (Français)
  • (简体中文)
  • (English)

您也可以从以下列表中选择网站:

如何获得最佳网站性能

选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。

美洲

  • América Latina (Español)
  • Canada (English)
  • United States (English)

欧洲

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

亚太

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文
    • English
  • 日本 (日本語)
  • 한국 (한국어)

联系您当地的办事处

image for course 提高效率和性能的 MATLAB 编码实践

提高效率和性能的 MATLAB 编码实践

通过学习编写高效和高性能的代码,使您的 MATLAB 编码技能更上一层楼。了解如何识别瓶颈、通过向量化和预分配提高效率以及检查内存使用量情况。

课程模块

Introduction

Familiarize yourself with the course.

课程:
  • Course Overview
  • Learning Outcomes and Prerequisites

Measure Performance

Learn how to measure the performance of your code through timing.

课程:
  • Timing Code
  • Using tic and toc
  • Test Your Knowledge

Find Bottlenecks

Locate pieces of your code that take a long time to run.

课程:
  • The MATLAB Profiler
  • Profile Code with the MATLAB Profiler
  • Test Your Knowledge

Vectorization

Learn how to write efficient code through vectorization.

课程:
  • Vectorization
  • Vectorized Operations
  • Using Vectorized Operations
  • Implicit Expansion
  • Write More Efficient Code using Implicit Expansion

Memory Usage

Use common techniques for improving performance when storing, accessing, and processing data.

课程:
  • Data Types and Memory
  • Determine the Memory of a Variable
  • Choose a Heterogeneous Data Type
  • Specialized Data Types
  • Choose a Data Type
  • Memory Usage
  • Test Your Knowledge

Preallocation

Enhance coding efficiency by preallocating arrays.

课程:
  • What is Preallocation?
  • Preallocate Different Data Types
  • Preallocate a Numeric Array
  • Preallocate Structure and Cell Arrays
  • Test Your Knowledge

Conclusion

Learn next steps and provide feedback on the course.

课程:
  • Summary
  • Additional Resources
  • Survey

格式:自定进度

语言:中文

语言

  • 带自动反馈的实操练习
  • 通过 Web 浏览器访问 MATLAB
  • 可共享的进度报告和课程证书

向量和矩阵的计算

对向量和矩阵应用数学和统计运算。

编程构造

探索 if-else、switch-case、for 和 while 等编程构造。

MATLAB 数据类型之旅

熟悉 MATLAB 中的各种数据类型,并为您的应用选择合适的数据类型。

  • 信任中心
  • 商标
  • 隐私政策
  • 防盗版
  • 应用程序状态
  • 联系我们

© 1994-2025 The MathWorks, Inc.