Phasor/Polar Data Type
by Timothy Felty
06 May 2006
(Updated 27 Jun 2006)
Implementation of Phasor/Polar data type and associated functions
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.0.4 (R14SP2)
|
| Other requirements |
Only tested on Windows with 6.1 and 7.0.4, but should work on any matlab that supports user designed data classes if you use the appropriate code from the archive |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 13 May 2006 |
Tim Felty
|
|
|
| 24 May 2006 |
Tim Felty
|
|
|
| Updates |
| 12 May 2006 |
Added support for vector arrays of phasors and cleaned up the error checking and stuff. Added a few things to the constructor and subsasgn routines. Included an example that shows how to use some of the functions. Upadated 5/12/06 |
| 23 May 2006 |
Added Support for full 2D arrays.
Reworked subsref and subsasgn functions
Added a lot more Matlab functionality
Includes both Matlab 6 & 7 compatible code |
| 27 Jun 2006 |
A bug was found in the disp routine for matlab 6. This fixes it. |
|
Contact us at files@mathworks.com