blah blah blah is here! blah blah » Close

0
votes
0 answers

read a part of a text file and put it in a 2D array

Hi , I have a text file saved in C:\PROG\t.txt . Apart of the text file which is interested is in below. I want a c# code please, to read the text file and find the the values right after "BIC" that terminate with the slash and ...

0
votes
1 answers

How to shortly copy a jagged part of an array into a 1D array?

How to shortly copy a jagged part of a double array into a 1D array? I have "double" A[][,] and I want to copy all elements in A[1][i,2] into another 1D double array B[] : i.e put this elements of A into X A[1][0,2]-->X ...

0
votes
0 answers

match a word by regular expression in c#

Hi, I want a regular expression to check the below string which includes some apostrophes: 'YMF1 ' 103200 'REAL' and remove the "second" apostrophe in that string and return true if it can match the exact standalone wor ...

0
votes
1 answers

Create multiple text files from a base text file in C#

Hi there, I have a text file including several characters and strings. I want to update just some strings of the file that start with "$" for example $MODEL or $I or,...etc. I want my program to open this base file and find just ...

0
votes
1 answers

copy and paste with different name using c#

Hi there, How to copy an existing file "C:\Data\PP.txt" to another destination folder with a different name "C:\Databackup\PP1.txt" using C#?

0
votes
4 answers

How to use a string as a name of a variable in c#

Hi mates, How to use a string , to be a variable name, for example suppose X="WELL" then I want to have an array with this name -> double [] WELL = new double[10]; more specifically I want to create a set of arraies, in ...

0
votes
2 answers

Extension to(Continue_5: Read a text file into array by c#: http://www.debugging.com/bug/22823)

Hi there, Can u pls help ... This is a continued discussion: http://www.debugging.com/bug/22823 -------------------------------------------------------------------- How the final code mentioned over can be converted into a class: in wh ...

0
votes
2 answers

moving mean on a 2D array in c#

Hi There, I have a big 2D array . Can someone please help for each elemnt A[i,j] in the array take a window of n by n (80*80) elemnts with the A[i,j] in the middle, and calculate the mean and save it back to another array Mean[,]. thank ...

1
votes
4 answers

finding uncommon elements between two arrays in C#

Hi, I have two 1D arrays with (200000 elemnts). I want to compare them and find the uncommon elemnts and save it into another array. what would be the efficient way to do that ? I know and I have written a simple code that for each elemnt ...

0
votes
0 answers

[Update5]find the proportional area of some squares confined between a disk in C# --> modification

As an update to calculating the intersected areas ("http://www.debugging.com/bug/24368" and "http://www.debugging.com/bug/24305") , this article is quite helpful: "http://softsurfer.com/Archive/algorithm_0101/al ...

0
votes
0 answers

[Update4]find the proportional area of some squares confined between a disk in C# --> modification

Hiya, I have implemented the code (our first discussion) into an algorithm for gridded 2D and 3D models. However as before as the sides of the cells are not equal it will cause some serious problems- Actually the gridding (gridded model ...

0
votes
0 answers

[Update3]find the proportional area of some squares confined between a disk in C# --> simple modification

Hi vulpes, I tried to modify the code in order to obtain the fraction of grid block's area containing in the ring. however I got some errors. I need the fraction area of each grid block divided by total area of the ring ( a[i,j]/Total_Ar ...

0
votes
1 answers

[Update2]find the proportional area of some squares confined between a disk in C#

Hi Just a quick question that if the Dx and Dy are not equal(for the cases when the sides of the squares are different than S), does the code work?-I mean if the algorithm is general enough to be extended or if the algorithm should be com ...

0
votes
1 answers

[Update1]find the proportional area of some squares confined betwnn a disk in C#

Hi dude, just as an update to previous discussion:"find the proportional area of some squares confined between a disk in C#" I have got a question about the radius criteria, shouldn't it be S/2 instead of S, ...

0
votes
2 answers

find the proportional area of some squares confined betwnn a disk in C#

Hi Could any one help me solve this problem- the related picture has been uploaded (below link), please look at that first. if it is not working please let me know to upload it again as just 10 times it can be downloaded. I have a regu ...

Feedback