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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 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년 전 | 답변 수: 1 | 0

