Recent content by quetzal
-
Q
Importing data from text file into Matlab
I know about the low-level O/I functions but I really don't know how to handle them. It is something new to me because it is a bit different from the common mathematical programing i was used to. I've done this so far: fid = fopen('cuboid.mfd','r')...- quetzal
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
Q
How to replace zeros in a matrix by elements of an array in Matlab?
Awesome! I've got it done similarly...Thanks! num=1; for j=1:N for i=1:D if ID(i,j)==1 ID(i,j)=0; else ID(i,j)=EA(num); num=num+1; end end end- quetzal
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
Q
How to replace zeros in a matrix by elements of an array in Matlab?
Homework Statement I have a matrix that contains zeros but it may contain also ones. For example: ID=[1 0 0 0; 0 0 0 0; 1 0 1 1] I'm trying to replace all the ones by zeros and all the zeros by elements of an array EA going...- quetzal
- Thread
- Array Elements Matlab Matrix
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
Q
Importing data from text file into Matlab
Thanks RoshanBBQ! I know that the easiest way is extracting the two matrices manually. But I'm just curious if there exists a command/code to locate them within the text file. I will need to do it many times repeatedly.- quetzal
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
Q
Importing data from text file into Matlab
Homework Statement I would need some help with extracting two matrices from a text file into Matlab. First is the 60x3 matrix of node coordinates. Second is the 24x8 matrix of node numbers assigned to elements. I have 24 brick elements so each of the elements has 8 nodes. But there are some...- quetzal
- Thread
- Data File Matlab Text
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help