AboutGeorge Moustris Expertise I have extensive experience in MATLAB which is a CAD for engineers.I can answer many questions on the programming script as well as the use of many toolboxes Matlab uses.However DO NOT ask me about the underlying theory of your projects.I will only answer questions regarding the USE of Matlab.
Experience I have written many scripts in Matlab utilizing many toolboxes and libraries such as Fuzzy Logic toolbox,Neural Nets,Image processing,Wavelets,Signal processing etc.
Organizations Aristotle University of Thessaloniki
Expert: George Moustris Date: 2/12/2007 Subject: mathematics-MATLAB
Question
-------------------------------------------
The text above is a follow-up to ...
-----Question-----
I have two adjacency matrices representing two undirected graphs.
I want to check if they are isomorphic.
I have found that the function to use is
graphisomorphism(G1, G2), but it gives me errors,I think about the sparse array, in the way I define it
-----Answer-----
Hi Christiana,
i can't really help if you don't tell me what the problem is. What is the errors matlab produces? What are the matrices (G1,G2) you use?
Dear Sir,
I will give you a simpler question I have about MATLAB, instead of isomorphisms.
We have the following sets:
C1 = [1 2 3 4];
C2 = [1 3 5 6];
C3 = [2 4 7 8];
C4 = [4 6 10 12];
Can you help me with a source code for MATLAB, to use for loops in order to do this?
Answer Hi Christiana,
looping over matrices using their name as an index e,g, Ai, i=1,2,..., is not possible in Matlab. What you can do however is use cells. You can create a cell A which contains 4x10 matrices (4 C's (C1,C2 etc) and 10 B's) and reference them using the cell. For example A{1,1} is C1, A{2,1} is C2, A{1,2} is B1 and so on. In the loop, you can check for intersection by using a code like intersect(A{3,1},A{1,10}) which is actually intersect(B3,C10).