Matlab & Simulink Basic Programming

อาจารย์ บุคลากรและนิสิตทุกคนของมหาวิทยาลัยเกษตรศาสตร์ สามารถเข้าใช้โปรแกรม MATLAB ได้ที่ website ด้านล่าง โดยลงทะเบียนด้วย account@ku.th
Login KU Account
Download License ของ KU คลิ๊ก เรียนฟรีได้มากกว่า

ซื้อ Student License ราคา 29-55$ และ Toolkit ราคาตัวละ 6$
———————————————
เรียนรู้ matlab ฟรี
https://matlabacademy.mathworks.com/R2020b/portal.html?course=gettingstarted
วิธีลงเรียน Matlab

สอนการใช้งาน Matlab

สอนการใช้งาน Simulink

สอนการใช้งาน SimScape

Matlab On Ramp

  1. Course Overview
    Familiarize yourself with the course.
    Course Overview
  2. Commands
    Enter commands in MATLAB to perform calculations and create variables.
    Entering Commands
    Naming Variables
    Saving and Loading Variables
    Using Built-in Functions and Constants
  3. MATLAB Desktop and Editor
    Write and save your own MATLAB programs.
    MATLAB Desktop and Editor
    The MATLAB Editor
    Running Scripts
  4. Vectors and Matrices
    Create MATLAB variables that contain multiple elements.
    Manually Entering Arrays
    Creating Evenly-Spaced Vectors
    Array Creation Functions
  5. Indexing into and Modifying Arrays
    Use indexing to extract and modify rows, columns, and elements of MATLAB arrays.
    Indexing into Arrays
    Extracting Multiple Elements
    Changing Values in Arrays
  6. Array Calculations
    Perform calculations on entire arrays at once.
    Performing Array Operations on Vectors
  7. Calling Functions
    Call functions to obtain multiple outputs.
    Obtaining Multiple Outputs from Function Calls
  8. Obtaining Help
    Use the MATLAB documentation to discover information about MATLAB features.
    Obtaining Help
  9. Plotting Data
    Visualize variables using MATLAB’s plotting functions.
    Plotting Vectors
    Annotating Plots
  10. Review Problems
    Bring together concepts that you have learned with a project.
    Project – Electricity Usage
    Project – Audio Frequency
  11. Importing Data
    Bring data from external files into MATLAB.
    Import Tool
    Importing Data as a Table
  12. Logical Arrays
    Use logical expressions to help you to extract elements of interest from MATLAB arrays.
    Logical Indexing
  13. Programming
    Write programs that execute code based upon some condition.
    Programming Constructs
    Decision Branching
    For Loops
  14. Final Project
    Bring together concepts that you have learned with a project.
    Project – Stellar Motion
    Project – Stellar Motion II
  15. Conclusion
    Learn next steps and give feedback on the course.
    Additional Resources
    Survey

สอนการใช้งาน Simulink On Ramp

Course Description
Modules

Course Overview5 min100%
Simulink Graphical Environment15 min100%
Inspecting Signals10 min100%
Visualize signal values during simulation.
Lessons:
Inspecting Signals
Simulink Scopes Overview
Basic Algorithms15 min100%
Use math and logic operators to write algorithms.
Lessons:
Mathematical Operators
Basic Logic
Conditional Statements
Obtaining Help5 min100%
Access documentation from Simulink.
Lessons:
Obtaining Help
Project – Automotive Performance Modes5 min100%
Practice working with math and logic operators.
Lessons:
Project – Automotive Performance Modes
Simulink and MATLAB10 min100%
Use MATLAB variables and functions in Simulink.
Lessons:
MATLAB Workspace Variables
MATLAB Function Block
Dynamic systems in Simulink5 min100%
Review dynamic systems and learn how they relate to Simulink.
Lessons:
Dynamic Systems
Discrete systems15 min100%
Model discrete-time systems.
Lessons:
Discrete Systems
Continuous systems10 min100%
Model continuous-time systems.
Lessons:
Continuous Systems
Simulation Time5 min100%
Choose the simulation duration.
Lessons:
Simulation Time
Project – Modeling a Thermostat10 min100%
Practice your understanding of discrete dynamic systems.
Lessons:
Project – Thermostat
Project – Peregrine Falcon Dive10 min100%
Practice your understanding of continuous dynamic systems.
Lessons:
Project – Peregrine Falcon Dive
Conclusion5 min100%
Learn about next steps and give feedback on the course.
Lessons:
Additional Resources
Survey

Simscape On Ramp

Course Description
Modules

Course Overview5 min100%
Familiarize yourself with the course.
Lessons:
Course Overview
Explore a Simscape Model
Building Simscape Models15 min100%
Create your first Simscape models.
Lessons:
Simscape Basics
RC Circuit
Rotational Mass Damper
Exploring Results10 min100%
Learn how to explore the results of simulations.
Lessons:
Measuring Physical Quantities
Sensor Blocks
Understanding Physical Signals5 min100%
Learn about how information is carried through a Simscape model.
Lessons:
Physical Signals
Sources with Inputs
Initial Values in Simscape10 min100%
Set initial values in your Simscape models.
Lessons:
Initial Values as Targets
Setting Initial Values
Multidomain Modeling20 min100%
Model in the interactions between multiple physical domains.
Lessons:
Multidomain Modeling in Simscape
Electromechanical Conversion
The Fluid Domain
Hydroelectric Power Model
Simscape and Simulink5 min100%
Implement feedback control with Simscape and Simulink.
Lessons:
Feedback Control
Project – Electronic Valve5 min100%
Review what you have learned by modeling an electronic valve.
Lessons:
Project – Electronic Valve
Conclusion5 min100%
Learn about next steps and give feedback on the course.
Lessons:
Next Steps
Additional Resources
Survey

Old version Simulink part 1

Create Account



Log In Your Account