Code covered by the BSD License  

Highlights from
Phasor/Polar Data Type

Be the first to rate this file! 11 Downloads (last 30 days) File Size: 61.01 KB File ID: #11001

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

Delete the ASV files. I thought I had gotten rid of all of those. I'm sorry.

24 May 2006 Tim Felty

A change for version 3. The angles are now assumed to be in degrees. Sorry for the inconvenience.

Please login to add a comment or rating.
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.

Tag Activity for this File
Tag Applied By Date/Time
phasor polar class Timothy Felty 22 Oct 2008 08:24:35
mathematics Timothy Felty 22 Oct 2008 08:24:35
phasors Timothy Felty 22 Oct 2008 08:24:36
general Timothy Felty 22 Oct 2008 08:24:36
general jm Pouza 05 Apr 2010 18:47:13

Contact us at files@mathworks.com