Help running Matlab script
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ryan Kovarik
il 30 Mar 2015
Commentato: Jonathan Campelli
il 31 Mar 2015
I need help running a script. I've already written the code for the script and it works, but I can't run it off a computer with Matlab at the moment. Would somebody mind running this script and letting me know the values for c? And also newnewcombos if it isn't too long?
prime=primes(17);
x=[0,1,2,3,4,5,6,7,8,9];
combos=perms(x);
j=1;
for i=1:length(combos);
if combos(i,1)~=0;
newcombos(j,:)=combos(i,:);
j = j+1;
end;
end;
newcombos;
for j=1:length(newcombos);
for i=1:(length(x)-1)
a(j,i)=ismember(sum(newcombos(j,[i,i+1])),prime);
end
end
a;
b=size(a);
c=0;
j=1;
for i=1:length(a);
if sum(a(i,:))==b(2);
c=c+1;
newnewcombos(j,:)=newcombos(i,:);
j=j+1;
end;
end;
newnewcombos
c
Thanks
1 Commento
Jonathan Campelli
il 31 Mar 2015
Your iterative "for" statements brute force computations that can be distilled down to/beyond the code which I have written and tested as a supplement for your code:
prime=primes(17);
x=[0,1,2,3,4,5,6,7,8,9];
combos=perms(x);
j=1;
newcombos = combos(combos(:,1) ~= 0,:);
for x=1:(size(newcombos,2)-1)
a2(:,x)=sum([newcombos(:,x),newcombos(:,x+1)], 2);
end
a2=isprime(a2);
b=size(a2)
c=0;
j=1;
for i=1:length(a2);
if sum(a2(i,:))==b(2);
c=c+1;
newnewcombos(j,:)=newcombos(i,:);
j=j+1;
end;
end;
newnewcombos;
c;
Risposta accettata
Jonathan Campelli
il 31 Mar 2015
c =
845
newnewcombos =
9 8 5 6 7 4 3 0 2 1
9 8 5 6 7 4 1 2 3 0
9 8 5 6 7 4 1 2 0 3
9 8 5 6 7 0 3 2 1 4
9 8 5 6 7 0 3 4 1 2
9 8 5 6 7 0 2 3 4 1
9 8 5 6 7 0 2 1 4 3
9 8 5 6 1 4 3 2 0 7
9 8 5 6 1 4 7 0 3 2
9 8 5 6 1 4 7 0 2 3
9 8 5 6 1 2 3 4 7 0
9 8 5 6 1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 8 5 6
1 2 9 8 5 6 7 4 3 0
1 2 9 8 5 6 7 0 3 4
1 2 9 8 5 0 3 4 7 6
1 2 9 8 3 4 7 6 5 0
1 2 9 8 3 4 7 0 5 6
1 2 9 8 3 0 5 6 7 4
1 2 0 5 6 7 4 9 8 3
1 2 0 5 6 7 4 3 8 9
1 2 0 3 4 9 8 5 6 7
1 2 0 3 4 7 6 5 8 9
1 2 0 3 8 5 6 7 4 9
1 2 0 3 8 9 4 7 6 5
1 2 0 7 6 5 8 3 4 9
1 2 0 7 6 5 8 9 4 3
0 Commenti
Più risposte (1)
Image Analyst
il 30 Mar 2015
I ran it and it tied up my computer for 10 minutes until I halted it. How long do you expect this thing to take?
1 Commento
Jonathan Campelli
il 30 Mar 2015
I have had the same trouble with this brute force script. I'm currently overhauling the iterative loops with simpler code.
Vedere anche
Categorie
Scopri di più su MuPAD in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!