I got a little problem in putting the code from matlab into python, i know how to make loops and stuff but the double equal sign is the same as function is member and I have no idea how to put it in python
for i=1:49
if path==var(path(1),i) == 0 & var(path(1),i) ~= 0
path(1,2) = var(r,i);
var2(i,1:2) = path;
path(1,1:2);
a = a+1;
two_connections(a,:) = path;
path? What doesvar(..., i)do? (The docs don't allow that construction: mathworks.com/help/techdoc/ref/var.html.) What is this code means to do?==has the same meaning in Matlab as in Python. Your question is unclearvarin this case is an array that he defined elsewhere, rather than the function.