Rank: 425263 based on 0 downloads (last 30 days) and 0 file submitted
photo

shiva

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by shiva View all
Updated File Comments Rating
13 Sep 2013 ALLCOMB All combinations of input (v4.0, feb 2014) Author: Jos (10584)

This is an awesome piece of code!
Although i have an request, like say when I have a 5 or more large vectors (eg.,-200:200) i encounter memory problems.
I was thinking like,
1) check the maximum variable size for the particular computer.
2) if the size of the generated variable is more than the maximum size permitted store the intermediate result in a "mat" file. clear the contents of the variable and append the successive results to the end of the "mat" file

11 Sep 2013 Next Combination/Permutation Produces one comb/perm at a time. Both with/without repetition. Author: Matt Fig

say if i have vectors like these
q1 = -40:dq:40;
q2 = -175:dq:0;
q3 = -250:dq:15;
q4 = -200:dq:200;
q5 = -40:dq:40;

how do i find all possible combination
Q = combination(q1,q2,q3,q4,q5);

the solution exist only if i choose dq >= 7
when i used the "allcomb" from FEX
or during for loop pre-allocation using the product of the length of the vectors

i'm looking for all possible combinations i.e., dq = 1, which for the above cases i get memory problems

your code looks promising except i dont know how to use them.

i always get this "@nextchoose/nestfunc"

24 Nov 2012 3D Puma Robot Demo Simulate a 6 link 3D Puma Robot Author: Don Riley

Manually adding link data to "linksdata.mat" file:

if you have saved your link files with struct variables as s1,s2,...,s6,s7

double click on each of the mat file to load them in matlab workspace.

then type,

save('linksdata.mat','s1','s2','s3','s4','s5','s6','s7')

in the command window

24 Nov 2012 3D Puma Robot Demo Simulate a 6 link 3D Puma Robot Author: Don Riley

A tip to automatically add a column of 1s to vertices matrix

add this line in the cad2mat function

s0.V0 = [V(:,1), V(:,2), V(:,3), ones(length(V),1)];

example:

function cad2mat(filename)
filename = 'Link0.stl'; % part
% Read the CAD data file:
[F, V, C] = rndread(filename);
s0=struct('F0', F,'V0', V,'C0', C);
s0.V0 = [V(:,1), V(:,2), V(:,3), ones(length(V),1)];
save('Link0.mat','s0');
end

24 Nov 2012 CAD2MATDEMO.M 3D CAD data to MATLAB Converter, CAD STL to MATLAB Patch. Author: Don Riley

A tip to automatically add a column of 1s to vertices matrix

add this line in the cad2mat function

s0.V0 = [V(:,1), V(:,2), V(:,3), ones(length(V),1)];

example:

function cad2mat(filename)
filename = 'Link0.stl'; % part
% Read the CAD data file:
[F, V, C] = rndread(filename);
s0=struct('F0', F,'V0', V,'C0', C);
s0.V0 = [V(:,1), V(:,2), V(:,3), ones(length(V),1)];
save('Link0.mat','s0');
end

Contact us