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

Livio Mariano likes this

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...