Author |
Message |
Topic: problem with coding pseudocode |
Srabon
Replies: 4
Views: 6715
|
Forum: Support Posted: Mon Apr 09, 2012 1:21 pm Subject: |
PROGRAM odlc
IMPLICIT NONE
INTEGER::i,it
INTEGER,PARAMETER::nx=20,nt=50
DOUBLE PRECISION,PARAMETER::dx=2./(nx-1.),dt=0.01,c=1.0
DOUBLE PRECISION,DIMENSIO ... |
Topic: Converting data-table into array |
Srabon
Replies: 4
Views: 7494
|
Forum: Support Posted: Thu Mar 08, 2012 6:50 am Subject: |
(1) To read this file I can declare x1,x2,x3 and so on. But this does not look efficient if there are thousands of columns. Can anyone suggest a better way?
Thanks! |
Topic: Converting data-table into array |
Srabon
Replies: 4
Views: 7494
|
Forum: Support Posted: Thu Mar 08, 2012 3:30 am Subject: |
(Thanks John. I just realized that my question was not clear enough and the problem was badly defined. Sorry about that. I am trying to restate the problem here.)
Say, I have a matrix stored in an ... |
Topic: Converting data-table into array |
Srabon
Replies: 4
Views: 7494
|
Forum: Support Posted: Wed Mar 07, 2012 3:13 pm Subject: Converting data-table into array |
The following codes produce a data-table containing 10x10 values.
PROGRAM data_table
IMPLICIT NONE
INTEGER::i,x,y,k,j,m,ierr
INTEGER,DIMENSION(1:10)::dtable
ierr=0
... |
Topic: problem with coding pseudocode |
Srabon
Replies: 4
Views: 6715
|
Forum: Support Posted: Mon Mar 05, 2012 6:55 am Subject: |
That was so nice of you, John.
Thank you so much for the codes! |
Topic: problem with coding pseudocode |
Srabon
Replies: 4
Views: 6715
|
Forum: Support Posted: Sun Mar 04, 2012 8:54 pm Subject: problem with coding pseudocode |
I am trying to code the following pseudo-code to approximate the solution to the 1D linear convection as in the figure:
PROGRAM one_d_linear_convection
IMPLICIT NONE
INTEGER::i,it,nx,nt,k ... |
Topic: code to window averaging filter |
Srabon
Replies: 3
Views: 5625
|
Forum: General Posted: Sat Jul 09, 2011 12:55 am Subject: |
Cheers! mate!
I finally worked out in the following way..
integer, parameter, dimension(*) :: a = [ 1, 4, 5, ..., 2 ]
integer :: i
real ... |
Topic: code to window averaging filter |
Srabon
Replies: 3
Views: 5625
|
Forum: General Posted: Mon Jul 04, 2011 10:05 pm Subject: code to window averaging filter |
Hi there I have a two-column data files with 8192 rows. Can someone tell me how to average each 8 values as tried below? I managed to average first eight values but do not know how to call the succee ... |
Topic: How to generate input sine signal |
Srabon
Replies: 3
Views: 5603
|
Forum: Support Posted: Wed May 25, 2011 11:21 am Subject: |
That's exactly what I need!
John Campbell, you are great! |
Topic: How to generate input sine signal |
Srabon
Replies: 3
Views: 5603
|
Forum: Support Posted: Tue May 24, 2011 12:47 pm Subject: How to generate input sine signal |
Hello,
Could anybody help me with
1. writing fortran codes to generate input sine signal
2. getting the values of the created signal in a text file with sample length of 10k?
The parameters ... |
Topic: How to count data frequency and assign to bins |
Srabon
Replies: 6
Views: 8659
|
Forum: Support Posted: Thu Feb 24, 2011 10:59 pm Subject: |
Thank you so much, John! I really appreciate your great cooperation! |
Topic: How to count data frequency and assign to bins |
Srabon
Replies: 6
Views: 8659
|
Forum: Support Posted: Wed Feb 23, 2011 3:58 pm Subject: |
@John, thank you for your kind help.
To check my understanding of the code, I tried to modify (with no success),
1. to suit for any score files that contain any score, negative or positive.
2. ... |
Topic: How to count data frequency and assign to bins |
Srabon
Replies: 6
Views: 8659
|
Forum: Support Posted: Tue Feb 22, 2011 9:59 pm Subject: |
Thanks for your direction, David.
In light of the OP, I tried to devise the following example, in which 100 scores (from 1-100) are read from an external file and assigned to 10 bins using the intr ... |
Topic: How to count data frequency and assign to bins |
Srabon
Replies: 6
Views: 8659
|
Forum: Support Posted: Tue Feb 22, 2011 5:12 pm Subject: How to count data frequency and assign to bins |
I happened to find the following problem http://s4.postimage.org/1lidiedwk/histichap.jpg in Chapman and currently working on it. But not sure how to code the data sorting part and assign them to the r ... |
|