Phasor/Polar Data Type
In the study of circuits and others it is useful to portray quantities as phasors which are functionally equivalent to a vector in polar format.
This class implements the constructor for that data type as well as the functions to add, subtract, multiply and divide phasors. There is also the necessary methods to extract and insert data.
There is an included text file with a more indepth description of the included methods and their use.
I would appreciate any comments and suggestions as well as code that would improve this data class.
There is code included for Matlab 6 and Matlab 7. The Matlab 7 code is fairly mlint clean, the Matlab 6 code is going to throw up lots of stuff due to the & -> && change.
Cite As
Timothy Felty (2024). Phasor/Polar Data Type (https://www.mathworks.com/matlabcentral/fileexchange/11001-phasor-polar-data-type), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Matlab 6/
Matlab 6/@phasor/
Matlab 7/
Matlab 7/@phasor/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | A bug was found in the disp routine for matlab 6. This fixes it. |