Edit a number like mass in Nastran .bdf file
3 次查看(过去 30 天)
显示 更早的评论
Hi all
I want to modify mass parameter in a bdf file using matlab. checking this code but I couldn't edit it in a way to change the 4th column in front of CNOM
fname = 'bpillar.bdf' ;
fid = fopen(fname,'r') ;
S = textscan(fid,'%s','Delimiter','\n');
fclose(fid) ;
S = S{1} ;
%%Get the line number of CBEAM
idxS = strfind(S, 'CBEAM');
idx = find(not(cellfun('isempty', idxS)));
cbeam = S(idx(2:end)) ;
k = cellfun(@strsplit,cbeam,'un',0) ;
iwant = cell2mat(cellfun(@str2double,k,'un',0)) ;
1 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!