Feeds
提问
gridding problems in the script
Hello, in the task I have an independent-of-grid "real size" set of good sand inside a volume. The task is to make gridding ...
9 years 前 | 1 个回答 | 0
1
个回答提问
round random a number
Hello, Suppose we have a number "3.76" and we want to round it either to 3 or 4 in a random way, how to do it? I didn't find...
9 years 前 | 2 个回答 | 1
2
个回答提问
Averaging the 3D-array
Hello. Suppose we have an 3D-array 4x4x4 with some values in it. The values are either 5 or 7. A(:,:,1)=[5 5 7 7; 7 5 7 7; ...
9 years 前 | 3 个回答 | 0
3
个回答提问
Elimination of rows in array
Hello. Didn't find a relevant answer. Suppose we have an array of such form: A=[a1 b1 c1 d1; a2 b2 c2 d2; etc], i.e. rows ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Boundary replacement of values in arrays
Hello. Suppose we have three arrays (columns of m x 1 size). Arrays A,B,C. How to set up the replacement script of such a cond...
9 years 前 | 1 个回答 | 0
1
个回答提问
selecting a smaller array from a bigger one
Hello. Suppose we have a grid block 100x90x80, where grid blocks: x=1:100, y=1:90, z=1:80, array is r(x,y,z) with some valu...
9 years 前 | 1 个回答 | 0
1
个回答提问
slash / after text .txt
% open your file for writing fid = fopen('test.txt','wt'); fprintf(fid,'super\n') % write the matrix myData = r...
9 years 前 | 1 个回答 | 0
1
个回答提问
format numbers in txt
R2=R; R2(R2==2) = 0.25; R2(R2==1) = 0.15; fid = fopen('porosity.txt','wt'); if fid > 0 fprintf(fi...
9 years 前 | 1 个回答 | 0
1
个回答提问
Replacing elements in an array
Didn't find a relevant answer. Suppose we have an array R=[1 2 1 2 2 2]'; How to replace "2" with "4" ? Thank you.
9 years 前 | 1 个回答 | 0
1
个回答提问
print an array to .txt
Didn't find a good explanation. Suppose we have an array R=[..,..,..] How to save this single array to a .txt file? Thank y...
9 years 前 | 1 个回答 | 1
1
个回答提问
threshold 3D visualisation
Suppose we have a 3D array r(x,y,z) filled with values 1 and 2. 1. How to visualise it into a 3D model? 2. How to visualise on...
9 years 前 | 2 个回答 | 0
2
个回答提问
Counting certain values from an array
Suppose we have an array r=(2,2,2) filled with zeros and ones. How to count up how many zeros and how many ones do we have?
9 years 前 | 1 个回答 | 0
1
个回答提问
3D array to a column
Suppose we have an 3D-array r=ones(m,n,k). How to make a column of all the values of "r" in the following form? example, ...
9 years 前 | 1 个回答 | 0
1
个回答提问
Pressure propagation movie plot. Where is the error?
Elastic_updated_version: The script contains an error in creating the plot. All the above code is supposed to be correct. ...
10 years 前 | 0 个回答 | 0
0
个回答提问
The "Elastic" script works perfectly on OS X, but crashes on Windows 7,8,10. Why?
The "Elastic" script works perfectly on OS X, but crashes on Windows 7,8,10. Why?
10 years 前 | 1 个回答 | 0