Code covered by the BSD License  

Highlights from
cyclebasis

5.0

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 3.33 KB File ID: #24561

cyclebasis

by Ben Petschel

 

26 Jun 2009

Find a basis for the cycle subspace of a graph/network.

| Watch this File

File Information
Description

This can be used for finding the linearly independent equations derived from Kirchhoff's second law. This function finds a set of fundamental cycles that will correspond to linearly independent circuit conservation equations.

Example: fundamental cycles of complete graph on 4 vertices including self-loops at each vertex:

cyclebasis(ones(3,3),'path') % returns {1,2,[1,2,3],3}

See the help text for more details.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
16 Oct 2010 Joao Henriques

Works as advertised! Good work ;)

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
graph Ben Petschel 26 Jun 2009 11:31:29
network Ben Petschel 26 Jun 2009 11:31:29
cycle Ben Petschel 26 Jun 2009 11:31:29
cycle subspace Ben Petschel 26 Jun 2009 11:31:29
kirchhoff Ben Petschel 26 Jun 2009 11:31:29
kirchhoffs law Ben Petschel 26 Jun 2009 11:31:29
conservation equations Ben Petschel 26 Jun 2009 11:31:29

Contact us at files@mathworks.com