Jump to content
Livio Mariano

ReadVectorBuilder

Recommended Posts

Liv,

If you want to extract the element ID's, you can use "getreqlist" command. 

 

syntax:

request_list = getreqlist(filename, datatype)

request_list = getreqlist(filename, subcase, datatype)

 

--> you will get a cell variable "request_list" with element ID's with a prefix letter 'E' like ( E1234, ....)

 

and if you want to get the element id's in a matrix, you can do something like below :

 

elementid = regexp(request_list,'E','split'); 

for i = 1:length(request_list)
    elem(i,:) = str2num(elementid{i}{1,2});
end

 

Thanks,

Manoj

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×