I'm doing project Euler ID11 (http://projecteuler.net/index.php?section=problems&id=11), and I thought I'd try this one in FORTRAN 95. The first problem in the project is finding a suitable way of reading in a 20x20 matrix of integers.
I'm doing it by put the 20x20 matrix into a separate file...
Hi,
I have the following problem, can anyone help?
I have 744 simple ascii files. Each of them has the following format: One line header and a column of values. The column has 275648 values (rows).
The target is to create 248 simple ascii files (744/3). Each of the new files has the...
Dear Members
I would like to match numbers in two files of extensions .lw & .pw and put the results according to matching numbers.
For example, the .lw file contains data as
59880 SPC X2d12G 4714 UNK X 900B
and .pw file has
59474 SPC X2c8bG 991 ILE A 118B
59726 SPC X2cdfG 1803 SER A 168B...
Hello everyone,
I am working on de-embedding s4p files for different types of cables. I have an s2p file for the test fixture alone. The s4p files obviously includes the cable and the test fixture.
Using Matlab, I was able to get the transfer function of the de-embedded cables by dividing...
More cleaning.
So within my appdata/local/temp I found a loooot of files starting with DIO(number)and sometimes (A,B,C,D or a combo of those).tmp
For example
DIO82.tmp
DIO82AB.tmp
DIO235C.tmp
They are taking up so much space, and google kinda makes it sound like they're even remnants of...
Hi. I am trying to read csv files into Matlab. The files are x, y, z values for topographic profiles taken about 4 times a year over several years. I've worked out how to loop through each file and loop through names so that each comes in as a separate matrix. (see below) The problem I'm...
HELP! How to process multiple files in C++
I have been bashing my head against my desk in my cubical trying to figure this out. I have approximately 500 files I would like to read in, one at a time, into a C++ program, do my processing, and send the results to a new file. I can do the...
Hi,
I'm trying to import multiple files into Mathematica. Each file is a 2d matrix and I would like to import multiple files into a nested list. So far I have something that only allows me to load a single file.
In:= SetDirectory["/directory"];
In:= filenames = FileNames[]
Out:=...
c++ header files with and without "h" extension
hi fine people,:wink:
i have seen some people use header files with ".h" extension and some without it. what is reason? i think there are some header files where you are required to use ".h" such as "#include <windows.h>. you can not use...
If there is a way to save a copy of the streamed *wav files of lectures in pirsa.org, it would useful to explain how to do it in the thread about that site in the learning materials section. I'd particularly like to know how to save them from a Linux computer.
Edit: In my browser the option...
Hi everyone,
I was wondering if someone could clarify how to put both .ps and .jpg files in the same latex file.
At the minute I'm having to convert all my .jpgs to .ps using photoshop then compiling my latex file by going Latex->PS->PDF. However all my converted jpgs look all pixelated...
Hey guys how r u .. :) I hope u all r happy.
I have an assignment to write a program to encrypt and decrypt a txt file using a key that I will choose
here is the problem
Consider the problem of encrypting a sequence of characters {A0, A1, A2, .. Ai….An-1} into another sequence {B0, B1...
Hello,
I have a quick question. I created some models on Ansys Workbench 13, but when I tried to open them in Ansys Workbench 12.1, I couldn't. It said that I cannot open a file created in a newer version!
Is there a way to save it in a different format in Ansys 13 , so it'd work in Ansys...
reading data from txt files
there are two .txt files. One is map.txt, another is event.txt.
map looks like below:
dfafdafskdjf:{{0.837711763427 -0.8359730469 2.4152891949e-04 0.000360245716236} {0.831761777387 -0.8240730748 2.4446745066e-04 0.000359914513716} {0.819861805217 -0.8062231165...
Hi there,
I have completed my analysis in BEM. The results gives me velocity potential in form of
37954305E-04 +1.58625295E-06 +2.10275811E-07 +...
I have real scattering values, imaginary and absolute scattering values in this form.
I am new to the method and from a different...
Hello. I have a question about Mathematica.
I have a series of files named P1.txt, P2.txt, etc. Each file contains 200 pairs of coordinates [x,y]. I want to write a loop that would import each of these files in turn, process them with NSolve, and then export the output files as Q1.txt...
hi all, I got a simple MATLAB question here.
I am writting a function which basicaly load my data (in .mat format), do something to them, and then plot them. The function is something like:
for i=1:n
[name1, path1]=uigetfile('*.mat','load data file')
load([path1 name1]);
end...
Question:
A new computer virus attacks a folder consisting of 200 files. Each file gets damaged with probability 0.2 independently of other files. Using Normal approximation of binomial distribution, find the probability that fewer than 50 files get damaged.
Solution:
Here n=200, p =0.2...
Hi,
ive created several graphs in different emacs files. I now want to superimpose them using code in a different emacs file. This is what i have done:
//get the input files
TFile * inputfile = new TFile("p60.root","READ");
TFile * inputfile2 = new TFile("p20.root","READ")...
Hello, I am trying to do some EEG analyses and I am having trouble converting biopac files (.acq) to an acceptable file type for EEGLAB. I tried converting to both MATLAB (.mat) files and text (.txt) files but neither have worked. It seems like EEGLAB is primarily for Neuroscan, but I do not...
Hi,
I am trying to write a loop to open four main-data-files. At each open of main-data-file, I want the loop to open another four sub-files and split the data from mail-data-file according to the creteria and dump into the four files. And the process goes on. That means I will have total of...
Hi all
I badly need some help...
I plot a file output1.txt in the following way ::
gnuplot> plot "output1.txt" using 1:2 with lines, \
plot "output1.txt" using 1:3 with lines
BUT now I have many data files,
output1.txt, output2.txt, output3.txt, ...,... ,output1000.txt
I need to...
Hey all!
I've been reading through my book trying to figure all this out for my Data Structures class and I'm typing this out while I take a break from reading the book.
I'm looking over the examples from class and my teacher has header, implementation and test files. There is no input...
Hi, guys,
I have to read from a big txt file into multiple small .tsv files.
But I was blocked at the file name. Since according to the
definition of ofstream, the filename is constant char *, then
is no way to modify the filename, which results in unable to
write multiple files...
I am afraid that this is either too specific and\or that this is in the wrong forum (if the latter is the case, if moderators could change this, I'd appreciate :).
I'm trying to do an application that uses the GPS data that comes from NMEA files.
On a particular sentence (RMC) there is a value...
I have fits files from the Sloan Digital Sky Survey (SDSS) and I have been able to make plots of the spectral data in the spSpec files. I would like to make similar plots for comparison using the photometric(ugriz) data but I'm not sure where to find it. I believe it should be somewhere in the...
Hi,
This question might be a little too specific, but does anyone know how (or where I might find literature) to generate basis set files used by the program TURBOMOLE. I am attempting to fit simple gaussian orbitals to dummy atoms but no luck so far.
Thanks
So my hard drive is filling up and I need to make room, and the first thing that came to mind was to delete the old archives (.rar files) from my "downloads" folder. I've already extracted everything I need from them and saved it in a different place. My question is will deleting the original...
I have been looking around for some information about placing a microsoft excel file onto my TI-89 (The non titanium model). Has any done this before?
Thanks
Hi guys, recently a server that I have data on inverted its firewall and turned on normal FTP, only allowing SFTP. Typically I log into the server cluster (linux) via PuTTy and SCP the files onto that server (windows). I then just open up windows explorer oin my local machine (windows) and...
Hi Guys!,
I have heard that imm files are image files and that each such file is preceded by a time stamp header file of 1024 kB (kilobytes), is this always the case?
Also what is this time stamp ( or just header) file ? What information does it include about the corresponding image file and...
when I'm using internet by my USB modem , I saw that lot of files downloaded automatically.. At that time all the automatic updatings (Windows, Antivirus) were OFF. I'm paying my internet bill depending on the capacity I download and upload... so this unidentified files were real problem to...
how do i open a file cargo.dat text file on C? i have all the proper coding, but when i compile and run it it tells me that it couldn't open the file. why? how do i put it in the same directory? I am using visual studios 2008 thanks!
#include <stdio.h>
#include <stdlib.h>
#define...
Hello
I am trying to sort the numerous PDF files I have in a folder, not written by me, and mostly journal articles that I have downloaded. I am having two problems with this:
1. Windows (7) does not allow me to add "author" or "year" properties to these files, although I have placed them in a...
for a project i have to open, edit and save a varying amount of files. I use a MATLAB code for this. It works fine and imports all the .sp files in the directory with the fopen() command. The only problem i still have is that i also want to change the extension of the files. Right now i use...
Hi pals I'm using fortran program to open several files like iso1.dat,iso2.dat... iso9.dat withis this files are number that I can read with my program, but I don't know how can I open the files above and then read it
this is my simple code
implicit real*8(a-h,o-z)...
Hi.
I am having problem loading large data files. The files consist of values defined as (with a extra space at the end of each line):
+1.326000e-005 -1.159306e+000 -1.171263e+000
+1.327000e-005 -1.159202e+000 -1.173770e+000
+1.328000e-005 -1.159563e+000 -1.175345e+000
The problem is...
Hi,
Here is code that can play a single FLV file:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=7,0,0,0"
type="application/x-shockwave-flash" width="100%" height="570" align=middle />
<param...
I recently got a new computer with Windows Vista on it. I got rid of my old computer that had Windows XP, but kept the old HD (MAXTOR 5T030H3) as it has some important files on it. I was hoping I could install the old HD into the new computer and burn the files to a dvd or something, but for...
How can I create a PDF file w/out buying anything?
Why does adobe try to swindle you into buying something?
It's cake on my Mac, but on my PC not so much.
So what do you guys use?
Thanks,
Casey
Hi,
I have a formatted data file (obtained from fortran) which has 1 column and 24000 rows. The values are like
-0.8736252526127E-9
-0.1928287267367E-11
0.28373737626278E-12
etc etc.
I have tried to read these data in MATLAB using the following command :
fid=fopen('filename')...
Good day,
I'm modifying a Monte Carlo program (MCCCS Towhee) using Fortran and am having trouble passing an argument (a 2x1 array) from a subroutine withing one file (the existing main loop that 'drives' the code) to another subroutine written in another file (an energy calculation, also part...
I sometimes have to download very large files from the Internet
my company network speed is not too fast to finish downloading them within one or two hours.
As a subcomputer, everything in my computer once stored on desktop will be deleted after reboot.
I am thinking if there is a way to...
I have a series of large 2x2 matricies, each of which is stored inside a .mat file. These files have the names data1.mat, data2.mat, data3.mat,..., data60.mat. I have sucessfully loaded each of these .mat files.
I want to create a 1x60 array whose entires are the average values of the...
Dear Members,
How can I read an MS Excel created csv or tab delimited file in FORTRAN 77? The two tab delimited and csv files are attached.
Thank you,
Ekin
Hey there,
I'm a mechanical engineering student and right now we have CAD lessons. We use Pro Engineer Wildfire (some student edition) and I'd love to see a quite complex model of something. Could anyone send me a CAD file of an plane or a wing or something alike?
Thanks in advance.
I have a quick question that I've always wondered exactly how to do but never needed to. Well of course now I do. I have a DO loop that loops an arbitrary number of times. I would like to open a file each time it comes around, using the DO loop iterator as part of the filename. Ideally, it would...
Are there any truly free video files converter out there?
I have seen many that give you a trial version but for the full version you must pay.
I am trying to convert MOD files from my camcorder to something I can watch on WMP.