frame2d - 0rame2d.m clear all % Added File Managment....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 %frame2d.m clear all % Added File Managment. Program will request an xls filename from the user % The output is written to an m-file of the input data name suffixed "_out.txt" f_name=input('What is the name of the data file? (*.xls file) ','s') out_name=strcat(f_name,'_out.txt') fid = fopen(out_name,'wt') Nodes=xlsread(f_name,'Nodes') Nelms=xlsread(f_name,'Nelms') x=xlsread(f_name,'x') NBC=xlsread(f_name,'NBC') node=xlsread(f_name,'node') props=xlsread(f_name,'props') force=xlsread(f_name,'force') % Print number of nodes and elements fprintf(fid,'Number of nodes= %3i\n',Nodes) fprintf(fid,'Number of elements= %3i\n',Nelms) %Create array NN containg 1,2,3,. .Nodes NN=[1:1:Nodes] dprint=[NN',x,NBC] fprintf(fid,'Node number and their coordinates and BC are:\n') fprintf(fid,'%3i %12.8f %12.8f %3i %3i %3i\n',dprint') %Create array MM containg 1,2,3,. .Nelms MM=[1:1:Nelms] %Augment [MM], [node] and [props] to form [pprint] pprint=[MM',node,props] fprintf(fid,'Element number, first and second nodes, E, A and I of elements are:\n')
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/07/2011 for the course EML 4507 taught by Professor Kim during the Fall '11 term at University of Florida.

Page1 / 4

frame2d - 0rame2d.m clear all % Added File Managment....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online