Enables operations using hundreds of supported physical units of measurement and physical constants.
If the Physical Units Toolbox is on your MATLAB path, there is nothing to initialize, import, add to your workspace, or pass to functions - simply multiply/divide by u.(unitName) to attach physical
- 3.7K (All time)
- 4 (Last 30 days)
- 4.8 / 5
- Community
-
1 Mar 2026
- 1.7K (All time)
- 3 (Last 30 days)
- 4.9 / 5
- Community
-
4 Nov 2020
This toolbox attaches units to Matlab variables and enables unit conversion.
much easier.The "unit" statement attaches units to a variable. For example, >> x=unit(2,'yards') x = 1.8288 mreturns the answer in International (SI) units. If you would rather have you answer
- 3.8K (All time)
- 2 (Last 30 days)
- 4.8 / 5
- Community
-
25 Jan 2012
Fundamental Physical Constants and Unit Conversion in SI (MKS) & Gaussian (CGS) Units
Create structs with physical constants and conversion factors to other units in MKS & CGS units.
Modified version of Rob deCarvalho's "Simple Units and Dimensions for Matlab" See http://www.mathworks.com/matlabcentral/fileexchange/9873 for original units.m
- 2.3K (All time)
- 5 (Last 30 days)
- 4.0 / 5
- Community
-
16 Nov 2016
Converts physical unit1 into unit2.
y = units(x,'unit1','unit2') - Converts x from physical unit1 to unit2example: units(1,'in','mm') = 25.4The following units are supported:Acceleration: m/s^2, cm/s^2, mm/s^2, ft/s^2, in/s^2, GAngle
- 5.1K (All time)
- 1 (Last 30 days)
- 3.8 / 5
- Community
-
10 Nov 2003
Command line, GUI, & Simulink block to convert physical units
Command line, GUI, & Simulink block to convert physical units. It is hoped that relationships between units are specified in an easy to extend manner.unit_conversion is an m-script that allows
- 2.1K (All time)
- 1 (Last 30 days)
- 4.0 / 5
- Community
-
2 May 2016
Working with physical properties and units in Matlab
This submission provides a tool for working with physical units in Matlab.
Working with units:>> s = unit('120 k:m') % define distances = 120000 m >> t = unit('1 h') % define time intervalt = 3600 s >> v = s / t % compute velocityv = 33.3333 m s-1
- 231 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
5 Mar 2013
Indian Reference Atmosphere by Sasi (1994) with user's units
Contains classes to represent reference atmospheric models and USER-DEFINED units, and saved object representing Indian Reference Atmosphere
This project has:AtmosphericModel class to arbitrary reference atmospheric models, andUnit class to represent arbitrary user-defined unitsUsing them, I created an object Ira to represent the Indian
- 113 (All time)
- 6 (Last 30 days)
- -- / 5
- Community
-
10 Oct 2021
Strongly-typed physical quantities
, ,...), etc. To any physicist, it would make sense to have a data type that represents a physical quantity; something that has both a value (double) and a unit of measurement. Preferably, this datatype
- 51 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
8 Sep 2019
a class that represents a physical value with units and errors
This package implements a physical value with units and errors. Currently it's useful mostly for calculating errors of basic function of any amount of variables assuming the errors are small relative
- 205 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
23 Dec 2013
A collection of fundamental physical constants in various unit systems for MATLAB.
A collection of fundamental physical constants in various unit systems for MATLAB.
- 375 (All time)
- 2 (Last 30 days)
- -- / 5
- Community
-
6 Nov 2018
Student Competitions - Physical Modeling Training
All Files for the Student Competitions - Physical Modeling Training
This entry contains all supplemental materials for the online training: Student Competitions - Physical Modeling Training.Find the training videos here
- 13.2K (All time)
- 54 (Last 30 days)
- 4.8 / 5
- Community
-
23 Jan 2018
Simscape Multibody Multiphysics Library
Extend Simscape Multibody models with physical effects spanning multiple physical domains.
This file contains a library and example models showing how to extend Simscape Multibody 3D models with physical effects modeled in Simscape. Simple demonstration models of hydromechanical and
- 21.2K (All time)
- 76 (Last 30 days)
- 4.6 / 5
- Community
-
25 Dec 2025
Consistent conversion of physical units
input: x1 - initial data (scalar, vector, matrix) s1 - string with initial units ('m/s','ohm*m','kJ/cm^3' etc) s2 - string with target unitsoutput: x2 - converted data
- 278 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
17 Jan 2016
Physical Modeling for Automotive Student Teams: Part 2 - 3D Suspension Modeling
Part 2 Files of the Physical Modeling Online Training for Automotive Student Teams
This File Exchange entry has moved to another location: https://www.mathworks.com/matlabcentral/fileexchange/52631-physical-modeling-for-formula-student The new location contains all of the training
- 1.6K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
14 Jun 2017
2022 CODATA recommended values of the fundamental constants in physics and chemistry
Physical ConstantsConstants for MATLAB provides easy access to the 2022 CODATA recommended values of nearly 150 fundamental constants from physics and chemistry, along with their uncertainties, units
- 458 (All time)
- 10 (Last 30 days)
- 5.0 / 5
- Community
-
13 May 2024
Modeling and Simulation of Multi-Physics Systems with MATLAB
This course is an introduction to modeling and simulation (8 chapter, more than 90 models and scripts) MATLAB, SImulink, SImscape, Stateflow
- 2.4K (All time)
- 21 (Last 30 days)
- 5.0 / 5
- Community
-
4 Oct 2020
Fundamental physical constants
Functions that returns a struct() containing most fundamental physical constants.
The struct has two levels. The first level is the name of the constant. The second level has fields: "value", "uncert" and "unit".Example: phc = fundamentalPhysical
- 1.3K (All time)
- 2 (Last 30 days)
- 4.0 / 5
- Community
-
22 May 2009
MATLAB and Simulink Racing Lounge: Modeling Physical Components
This is a collection of all files used in the course of the episode "Modeling Physical Components"
This is a collection of all files used in the MATLAB and Simulink Racing Lounge episodes "Modeling Physical Components Part 1 and 2" for further reference.Part
- 932 (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
Simple Units and Dimensions for Matlab
This code provides an effecient, easy to use, method of incorporating real world units ...
effeciently perform matlab calculations using commonly encountered units and physical constants. The code is easily modified to include any non-standard unit or constant desired. This method for handling
- 3.3K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
3 Mar 2006
Convert units of pressure, length, time, force, mass, accel., temp, speed, frequency, area, & more!
bundle take the form from2to(). EXAMPLE: Convert 700 kilopascals to pounds per square inch: kPa2psi(700) ans = 101.5264 Supported units and their abbreviations: ACCELERATION:centimeters per
- 2.7K (All time)
- 5 (Last 30 days)
- 4.5 / 5
- Community
-
6 Aug 2014
Create standalone Functional Mock-up Units (FMUs) from Simulink models and C/C++ source code
Create standalone Functional Mock-up Units (FMUs) from your design with FMU Builder for Simulink support package. The generated FMUs can be configured to be compliant with either FMI 2 or FMI 3
- 5.3K (All time)
- 267 (Last 30 days)
- -- / 5
- MathWorks
-
17 Oct 2025
wimax physical layer simulation
Wimax physical layer simulation using mandatory channel coding.
- 9.3K (All time)
- 4 (Last 30 days)
- 4.4 / 5
- Community
-
8 Jun 2009
Renewable Energy Based Micro Grid Power Management System
Renewable Energy Based Micro-Grid Power Management System & Economic Unit Commitment through ANFIS intelligent Controller - www.pirc.co.in
- 31.8K (All time)
- 304 (Last 30 days)
- 4.6 / 5
- Community
-
22 Oct 2024
Standard atmosphere gas properties. Support for n-dim inputs, non-standard atmospheres, units, etc.
set your preferred default).•Units consistency can be enforced by using the Physical Units Toolbox, reducing errors and making code clearer.•Returns everything needed to easily determine important
- 10.5K (All time)
- 23 (Last 30 days)
- 5.0 / 5
- Community
-
20 Aug 2025
Teaching Math and Physics with Symbolic Math Toolbox
Learn how symbolic computation can be used to teach concepts and solve problems in Math and Physics
- 4.2K (All time)
- 30 (Last 30 days)
- 5.0 / 5
- Community
-
1 Sep 2016
Smart Manufacturing Robotics Cyber Physical System
Industry 4.0 as the Towers of Hanoi, where three blocks with local control emerge in a sorted order.
Hanoi puzzle which is an example of a cyber-physical system.A detailed industry grade network model based on EtherCAT and TCP/IP allows control of the packet error rate (PER) to test the robustness of the
- 2.2K (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
27 Apr 2020
CHANGEUNIT (converts between units).
CHANGEUNIT CHANGEUNIT(x,'unit1','unit2') - Converts array x from physical unit1 to unit2 Example: changeunit(1,'in','mm') = 25.4This is a very compact/fast/simple version of units
- 2.6K (All time)
- 1 (Last 30 days)
- 4.0 / 5
- Community
-
5 Jan 2005
Transform Axes units to Normalized Units for Annotation Objects
Transforms axes units to normalized units for annotation objects.
The annotation() function in MATLAB requires the X and Y coordinates for the object in normalized units. However, to accurately place objects, (without using GUI) we would like to give the annotation
- 2.5K (All time)
- 2 (Last 30 days)
- 4.4 / 5
- Community
-
9 Jan 2006
Units and Dimensions Suite for Matlab
A complete suite for using real world units in matlab.
The units.m function provides a complete methodology of incorporating real world units into matlab calculations. Units.m returns a struct with fields containing a new class of variable called a
- 2.9K (All time)
- 1 (Last 30 days)
- 4.8 / 5
- Community
-
21 Feb 2006
Physical Modeling for Formula Student: Simscape Introduction
Simscape Introduction (Chapter 1) of the Physical Modeling Online Training for Formula Student Teams
This FileExchange entry has been moved to a another collection.Find the content now here: https://www.mathworks.com/matlabcentral/fileexchange/52631-physical-modeling-for-formula-student
- 4.5K (All time)
- 35 (Last 30 days)
- 5.0 / 5
- Community
-
9 Jan 2017
Airy beam created with physical lens
Simulation of Airy beams created with a physical lens
Simulation of Airy beams created with a physical lens, as explained in Tatiana Latychevskaia, Daniel Schachtler and Hans-Werner Fink "Creating Airy beams employing a transmissive spatial light
- 447 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
8 Nov 2023
WAVEUNIT is a simple module for handling optical units.
WAVEUNIT allows to validate a physical unit and make some quick processing. functionalities: - validate units (e.g. 'fs' is ok, 'qs' not ok) - optimize prefix (e.g. 1200 kHz --> 1.2 MHz) -
- 63 (All time)
- 2 (Last 30 days)
- -- / 5
- Community
-
16 Feb 2016
Using Simscape for design of Multi-Domain Physical Systems
Using Simscape for design of Multi-Domain Physical Systems
Simscape is a physical modeling language that accurately captures the dynamics and changes that occur in multi-domain systems, that are usually characterised as a-causal, i.e. with bidirectional
- 511 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
27 Feb 2014
- 2.2K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
21 Apr 2023
Get values of physical constants in SI and CGS
Load values of physical constants in SI and CGS for easy access
Physical Costants - SIReturns value of physical constants in SINote: Run script to create mat fileExample Usage:load physicalConstants-SI.mat % Load all variablesload physicalConstants-SI.mat me c %
- 70 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
5 Jul 2021
Class Inheritance Browser for MATLAB
A tool for managing and organizing classes, with a simple interface and (optional) tree diagram
- 441 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
18 Jul 2014
BaPC Matlab Toolbox: Bayesian Arbitrary Polynomial Chaos
BaPC Matlab Toolbox: Bayesian Data-driven Arbitrary Polynomial Chaos Expansion
- 300 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
23 Mar 2020
Data space to figure units conversion
A utility function to simplify use of annotation function
The annotation function, which allows you to programmatically add a wide range of annotations to your figure, requires coordinates to be specified in normalized figure units. I have found that I
- 13.7K (All time)
- 6 (Last 30 days)
- 4.4 / 5
- Community
-
18 Jul 2025
- 1.8K (All time)
- 26 (Last 30 days)
- 5.0 / 5
- Community
-
22 Mar 2023
Suite of functions to perform uniform sampling of a sphere
Toolbox for generating uniform sampling patterns and decompositions of a unit sphere
across many areas of study and found practical applications in the fields as diverse as viralmorphology, crystallography, physical chemistry, geophysics, acoustics, signal processing, computer graphics
- 5K (All time)
- 7 (Last 30 days)
- 4.8 / 5
- Community
-
10 Aug 2021
Cyber Physical System - Fault Detection for Aircraft Landing
To develop a Cyber-Physical System (CPS) that detects AC fault and Engine failure during landing.
To develop a Cyber-Physical System (CPS) that detects AC fault and Engine failure during landing.
- 14 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
9 Jul 2025
Convert incoming signal's unit to the required output units.
The block can be used to convert the units of the incoming signal to the required units at the output. Provided the user knows the units of the incoming signal.Note: The block will work in Matlab
- 77 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
11 May 2016
Physical models with plots for visualization. Includes numerical integrators, ODE solvers.
- 741 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
15 Jan 2015
Get fundamental plasma physics parameters
Get fundamental plasma physics length scales, time scales, velocities, etc. using functions defined in the plasma physics formulary
Temperature which is in [eV]Use cgs2SI and SI2cgs to convert between SI and cgs unitsUse physicalConstants-SI and physicalConstants-cgs for values of constantsEXAMPLE USAGE:B = SI2cgs(5,'Magnetic Field'); %
- 186 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
27 Aug 2021
Computational Physics - Example No.1
Computational Physics, Modeling and Simulating a Physical Systems Ex1: Kepler's Laws
This is the first example of Computational Physics, Modeling and Simulating a Physical SystemsEx1: Kepler's Laws
- 1.3K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
21 Jan 2010
TMM reflectivity simulator for DBR microcavity polaritons
Transfer matrix implementation for planar structure reflectivity, includes various data fitting abilities
- 396 (All time)
- 8 (Last 30 days)
- 5.0 / 5
- Community
-
2 May 2022
Converts input into a standardized unit.
Unit Converter ComponentVersion: 1.0Converts input into a standardized unit.SyntaxNote: A conversion table containing units and conversion factors is used. The conversion factors are taken from
- 65 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
2 Sep 2022
Physical oceanography: Inertial oscillation (implicit)
Simulate Inertial oscillation using implicit method
- 81 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
7 Oct 2016
- 21 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
22 Feb 2024
List the physical drives that are available on a system.
SummarySimple system utility function which returns a table containing information about physical drives available on a system.ExampleTodosImplement for linux systemsAdd internal, external (how to
- 67 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
2 Dec 2022
MOxUnit is a lightweight unit test framework for Matlab and Octave.
MOxUnit is a lightweight unit test framework for Matlab and Octave.code: https://github.com/MOxUnit/MOxUnitgit repository: https://github.com/MOxUnit/MOxUnit.git- Runs on both the Matlab and Octave
- 485 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
10 Dec 2015
Physical oceanography: wave equation (open boundary)
Simulate wave in the open boundary
- 135 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
10 Oct 2016
Physical oceanography: Inertial oscillation (semi-implicit)
Simulate Inertial oscillation using semi-implicit method
- 86 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
7 Oct 2016
Mechanical Friction with Simulink and Physical Modeling
Modeling and simulating mechanical friction in the Simulink® and Physical Modeling environment
- 5.7K (All time)
- 3 (Last 30 days)
- 4.3 / 5
- Community
-
1 Sep 2016
OptimTraj -- Trajectory Optimization Library
A toolbox for Matlab, for solving continuous time trajectory optimization problems
- 3.3K (All time)
- 11 (Last 30 days)
- 4.9 / 5
- Community
-
6 Jun 2023
Zaber Device Control Toolbox (deprecated)
Control Zaber motion devices from MATLAB.
protocol-agnostic use of basic functionality. Unit of measure conversions are provided for many devices via a lookup table, which can be updated via an included Python script to pick up newly released product
- 1.5K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
21 Jan 2020
Physical Modeling for Automotive Student Teams: Part 1 - Longitudinal Vehicle Dynamics Modeling
Part 1 Files of the Physical Modeling Online Training for Automotive Student Teams
This File Exchange entry has moved to another location: https://www.mathworks.com/matlabcentral/fileexchange/52631-physical-modeling-for-formula-studentThe new location contains all of the training
- 3.2K (All time)
- 22 (Last 30 days)
- -- / 5
- Community
-
30 Jan 2017
Physical oceanography: geostrophic current (numerical)
Calculate geostrophic current using numerical method
- 565 (All time)
- 2 (Last 30 days)
- 4.8 / 5
- Community
-
7 Oct 2016
Convert between SI and CGS units
Convert values from SI to cgs and vice versa for common physical quantities
out = cgs2SI(val,type)% Convert from cgs to SI units% Example usage:v = cgs2SI(10,'Velocity'); % Velocity, [cm/s] to [m/s]B = cgs2SI(1,'Magnetic Field'); % Magnetic Field, [T] to [gauss]out =
- 7 (All time)
- 1 (Last 30 days)
- -- / 5
- Community
-
5 Jul 2021