fundamentals-of-programming

版本 1.0.6.0 (2.7 mb) 作者:
an overview of programming concepts including arrays, strings, loops, and algorithms with a project.

315.0 次下载

更新时间 2023/1/27

来自 github

fundamentals-凯发k8网页登录

or

curriculum module
created with r2021b. compatible with r2021b and later releases.

description

this curriculum module contains interactive that teach fundamental concepts and basic terminology related to programming computers. this includes discussion of inputs and outputs, numbers, strings, arrays, branches and loops. this content is broken into six instructional live scripts and one project where live script instructions are paired with a plain code practice script. solutions are available to instuctors upon request.

these lessons can be used as part of a lecture, as activities in an instructional setting, or as interactive assignments to be completed outside of class.

get started with the fundamentals of programming interactive examples

option 1: download to desktop get started by downloading and unzipping the repository. then, double-click the fundamentalsofprogramming.prj file inside matlab®.

option 2: log in to your mathworks account to access your license. if you are associated with a university, use your university email to access a campus-wide license. the project will run automatically.

from there, you can follow the landing page instructions to get started with the examples. the instructions inside the live scripts will guide you through the exercises and activities. get started with each live script by running it one section at a time. to stop running the script or a section midway (for example, if a loop is running longer than intended), click the stop button in the run section of the live editor tab in the matlab toolstrip.

prerequisite domain knowledge

this module assumes familiarity with basic mathematics at a high school level. one exercise in programmingdata.mlx requires the use of the quadratic formula, for instance. understanding the chaos game requires locating points on a cartesian coordinate system and understanding of either vectors or midpoints. trigonometric functions are used as example functions. with respect to programming knowledge, this module is intended for absolute beginners who have used simple calculators in the past.

details

navigationoverview.mlx this script brings together links and short descriptions of the content in the recommended order of use.

introduction.mlx

this overview of the concepts of programming also includes discussion of errors, documentation, and other commonly encountered challenges for beginners.

learning goals:

  • recognize and use the terms input and output
  • recognize, interpret, and respond to messages about syntax errors
  • recognize and interpret comments in code
  • use documentation and search to learn more about how to use a programming language
  • recognize and explain the importance of attention to detail when coding

data.mlx

this script introduces double and string data types through interactive examples and exercises.

learning goals:

  • recognize and explain that floating point arithmetic does not operate under the same rules as real number arithmetic
  • apply the limitations of floating point arithmetic to computation
  • recognize and use strings to store and communicate textual data
  • recognize and use whitespace in string operations
  • recognize and interpret special characters that are neither text nor numbers
  • recognize and explain simple consequences of the interactions between data types

arrays.mlx

this script introduces 1, 2, and 3-d arrays, as well as a brief overview of matrix operations. applications include both text and image data.

learning goals:

  • identify, create, and use vectors containing numbers or text
  • apply vector indexing to extract information from a vector
  • identify, create, and use matrices containing numbers or text
  • apply matrix indexing to extract information from a matrix
  • identify standard file types and the corresponding extensions
  • explain why file type matters and import data from external files
  • recognize and use three dimensional arrays

branches.mlx

this script introduces the concept of conditional branching in the form of if/else branches and switch statements.

learning goals:

  • recognize and apply if/then branching logic to solve problems
  • recognize and apply switch branching logic to solve problems

loops.mlx

this script introduces the concept of conditional looping in the form of for loops and while loops.

learning goals:

  • use for loop logic and syntax to write and execute iterative code
  • use while loop logic and syntax to write and execute repetitive code, and decide when it is the correct method

chaosgameproject.mlx

learning goals:

  • apply conditional branching and looping logic in context to solve problems
  • explain that different programming solutions to the same problem can run in very different amounts of time
  • identify common file formats and their extensions
  • communicating results by exporting data from a program in a standard, shareable file format

algorithms.mlx

learning goals:

  • explain the concept of an algorithm
  • implement an algorithm presented in pseudocode
  • explain the importance of testing both code and algorithms

chaosgame.m this plain code file presents the basic scaffolding used to build an implementation of the chaos game on a square in programmingchaosgameproject.mlx.

collectedprotips.mlx this live script serves as a collection of notes on using the live editor and the matlab language in the context of these scripts. all of this material is presented in the other scripts, but this one is used for reference.

data files

  • turkeys1.jpg is used in programmingintroduction.mlx and programmingarrays.mlx
  • fileformats.mat is used in programmingchaosgameproject.mlx
  • encryptedimage.mat is used in programmingalgorithms.mlx
  • bw_images.mat is used in programmingalgorithms.mlx

products

matlab®

license

the license for this module is available in the file in this github repository.

support

the solutions are available upon instructor request. if you would like to request solutions or have a question, contact the

凯发官网入口首页 copyright 2021-2022 the mathworks, inc.

引用格式

emma smith zbarsky (2023). fundamentals-of-programming (https://github.com/mathworks-teaching-resources/fundamentals-of-programming/releases/tag/v1.0.6), github. 检索来源 .

matlab 版本兼容性
创建方式 r2021b
与 r2021a 及更高版本兼容
平台兼容性
windows macos linux
标签
社区
中有更多文件

community treasure hunt

find the treasures in matlab central and discover how the community can help you!

start hunting!

helperfunctions

版本 已发布 发行说明
1.0.6.0

see release notes for this release on github:

1.0.5

see release notes for this release on github:

1.0.4

see release notes for this release on github:

1.0.3

see release notes for this release on github:

1.0.2

see release notes for this release on github:

1.0.1

see release notes for this release on github:

1.0.0
要查看或报告此来自 github 的附加功能中的问题,请访问其 。
要查看或报告此来自 github 的附加功能中的问题,请访问其 。
网站地图