input format

Dear Lammps Users,

I want to have a several groups

I want to specify group with atom ID from a list that is in txt file

in other hand from the MATLAB code I selected several lists ID atoms and want each list has to be assigned one group

how?

thanks a lot

Dear Lammps Users,

I want to have a several groups
I want to specify group with atom ID from a list that is in txt file
in other hand from the MATLAB code I selected several lists ID atoms and
want each list has to be assigned one group
how?

you are doing things backwards. why not just have your matlab code
output the required LAMMPS script commands to a file and then use
"include" to read that file into your LAMMPS script?

axel.