You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
how to generate code ?
2 views (last 30 days)
Show older comments
node = 3;
Link = (node-1)*node/2
NN = toeplitz(node+1:-1:2);
mask = logical(fliplr(diag(ones(1,node-1),-1)));
NN(mask) = 1;
for n = 0:2^Link -1
out(:,:,n+1)= bitget(n, NN);
end
output
val(:,:,1) =
0 0 0
0 0 0
0 0 0
val(:,:,2) =
0 0 0
0 0 1
0 1 0
val(:,:,3) =
0 0 1
0 0 0
1 0 0
val(:,:,4) =
0 0 1
0 0 1
1 1 0
val(:,:,5) =
0 1 0
1 0 0
0 0 0
val(:,:,6) =
0 1 0
1 0 1
0 1 0
val(:,:,7) =
0 1 1
1 0 0
1 0 0
val(:,:,8) =
0 1 1
1 0 1
1 1 0
Link = (node-1)*node/2
please help to generate upto n nodes
Answers (1)
Walter Roberson
on 21 Mar 2021
node = 10;
9 Comments
Walter Roberson
on 21 Mar 2021
Edited: Walter Roberson
on 7 Apr 2021
node = 10;
Link = (node-1)*node/2;
NN = toeplitz(node+1:-1:2);
mask = logical(fliplr(diag(ones(1,node-1),-1)));
NN(mask) = 1;
nout = 2^(node+1);
out = zeros(node, node, nout);
for n = 0:nout - 1
out(:,:,n+1)= bitget(n, NN);
end
out
out =
out(:,:,1) =
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
out(:,:,2) =
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 1 0
0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 0 0
0 0 0 1 0 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0 1
1 0 0 0 0 0 0 0 1 0
0 1 0 0 0 0 0 0 0 1
1 0 1 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0
1 1 0 0 1 0 0 0 0 0
1 0 1 1 0 1 0 0 0 0
out(:,:,96) =
0 0 0 0 1 0 1 1 1 1
0 0 0 0 0 1 0 1 1 1
0 0 0 0 0 0 1 0 1 1
0 0 0 0 0 0 0 1 0 1
1 0 0 0 0 0 1 0 1 0
0 1 0 0 0 1 0 0 0 1
1 0 1 0 1 0 0 0 0 0
ankanna
on 24 Apr 2021
n = 3;
Link=(n*(n-1))/2;
c=2^Link;
NN = toeplitz(Link+1:-1:2)
mask = logical(fliplr(diag(ones(1,Link-1),-1)));
NN(mask) = 1;
for c = 0:2^Link-1
l = bitget(c, NN)
end
the above code i generate all configuration matrix.
i need to generate all paths in this network.
please help me to generate all paths in the network
Walter Roberson
on 25 Apr 2021
What is a "path" for your purposes?
ankanna
on 25 Apr 2021
path is formed between source to destination.
for example, we take configuratio matrix 0 there is no path and no network.
we consider 1 configuration matrix path =
12 13 23
1 = 0 0 1 then matrix is
link11 link12 link13 0 0 0
link21 link22 link23 = 0 0 1
link31 link32 link33 0 1 0
now path above matrix is
path = 2 3
i need to generate all paths in matlab code.
please help me to generate
Walter Roberson
on 25 Apr 2021
This requires R2021a. If I recall correctly, you are using R2016b or something around that time frame.
Walter Roberson
on 25 Apr 2021
As I posted "This requires R2021a."
You are using R2016a.
You should consider updating your MATLAB.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)