I want load my text file to read.
I want [nodes, elem, C, A, bcs, loads] as an output form and the input file is below.
filename = uigetfile('*.txt','Select the inpuf file');[nodes,elems,C,A,bcs,loads] = gettrussdata2D(filename);function[nodes,elems,C,A,bcs,loads] = gettrussdata2D(filename)....end<Input text file>Nodes: (x,y)0.0 0.02.0 0.02.0 2.00.0 0.0Elements: (Node1 Node2),E,A1 2 2e11 1e-51 3 2e11 1e-51 4 2e11 1e-54 3 2e11 1e-54 2 2e11 1e-52 3 2e11 1e-5BCs (Node_number dof specified_disp)2 1 02 2 03 1 03 2 0Nodal loads (Node_number dof load)4 1 2e4 4 2 -4e4
Best Answer