File Definition and 575 Threads
-
S
MATLAB Matlab m file function with multiple variables
Hi, I have a MATLAB function m file and I want to integrate the function. function y = myfun(t,a,b) y = (1/(2*pi)).*(1./t)*(1i*(a+b)); endThen when I call the integration in MATLAB I don't know how to specify a and b whilst integrating over t. I need to be able to set a and b outside of the...- strokebow
- Thread
- File Function Matlab Multiple Multiple variables Variables
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
T
Fortran [FORTRAN] Writing to same file from multiple processors?
I am working in FORTRAN I need to avoid writing to the same file at the same time while working in a parallel environment. I have a program (that I have not written and cannot edit) that calls a subroutine (that I have written and can edit). The subroutine is called over and over again by...- tav98f
- Thread
- File Fortran Multiple Writing
- Replies: 9
- Forum: Programming and Computer Science
-
B
MATLAB Playing a Music File from Matlab
I would like to run a calculation so that when it has converged, a song will play... to alert me from the other room (for example). http://www.mathworks.co.uk/help/techdoc/ref/audioplayer.html I found this but can't quite put it together? Their example was: Examples Load and play a...- brydustin
- Thread
- File Matlab Music
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
A
Multithreaded File IO Homework: 3 Readers, 3 Writers, Circular Buffer
Homework Statement Perform file IO with 3 reader and 3 writer threads using a circular buffer. Read the (text) file in and write the same file out. The Attempt at a Solution I have an assignment that requires me to use multiple (3) threads to read data from a file, and multiple threads...- Adyssa
- Thread
- File
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help
-
N
Reading characters from file till white space and appending symbols
Hi I am novice to programming and trying to read each character from file till white space [next line / space] and append symbols to the read characters. example: say I have string how are you doing sir then I should read it into char buffer as char buff =...- nicolegrace
- Thread
- File Reading Space Symbols
- Replies: 10
- Forum: Programming and Computer Science
-
R
Java Reading Matrix from File in Java - Can Someone Help?
hi want to read the rows of a matrix from a file which are written in the following way : (2:1,3), (4:3,1), (2:1,8) i am working in java, i am not able to figure out how to do this using bufferedreader :( can someone help? Thanks- russel.arnold
- Thread
- File Reading
- Replies: 3
- Forum: Programming and Computer Science
-
H
Fortran Can Fortran help with data file problem?
Hello guys. I want to save the numbers between 0 and 1 with 0.01 increasement to a dat file. I wrote a code for this using Fortran however, after a point I get 0.314999 instead of 0.315000. Can you help me to solve my problem? <code> REAL, DIMENSION(:), ALLOCATABLE :: Y REAL STEP, JEND...- hcelik
- Thread
- Data File Fortran
- Replies: 5
- Forum: Programming and Computer Science
-
S
Fortran Fortran: Read data from a line in a file
This is my problem: I would like to read data (saved in a text file) from a file. My data is written in a matrix format (1,000,000 rows x 3 columns). I want to read a data from a particular line, say row number 90,000. Since the number of rows is large, it will be very expensive if I have to...- sourish_SUNY
- Thread
- Data File Fortran Line
- Replies: 1
- Forum: Programming and Computer Science
-
M
Calculating moments of forces/fulcrum PDF file attached
1) see pdf for question 2 I'm unsure how to calculate the force at the fulcrum since its not in equilibrium. I thought maybe i would add the two forces together, but that doesn't seem right. 2) so this question asks for what forces need to be applied at points A and B and i understand...- mt05
- Thread
- File Moments Pdf
- Replies: 1
- Forum: Introductory Physics Homework Help
-
N
C/C++ Reading a string from file until whitespace c++
I am newbie to programming , I am trying to write a program in c++ to read strings from the file until white space [ space/ newline] each time i encounter white space i append to the string read append a symbol "$" and push to the buffer. and for the same string append another symbol "(" and...- nicolegrace
- Thread
- C++ File Reading String
- Replies: 1
- Forum: Programming and Computer Science
-
N
To Query the file attributes in unix using a c program
Hello guys, I am trying to query the file attributes in unix using a c program..Little help please :)- Naveenchandra
- Thread
- File Program Unix
- Replies: 2
- Forum: Programming and Computer Science
-
G
Law students file scathing lawsuit against their alma maters
Is this really what higher education in our system has become? The students probably won't win, but at least they are increasingly raising awareness and do have a point: http://news.yahoo.com/graduates-accuse-law-schools-scamming-students-021529890.html- gravenewworld
- Thread
- File Law students
- Replies: 20
- Forum: General Discussion
-
D
Batch file directory of files in folder
Hello all. I am far from a programmer, but have found a lot of use out of a batch file that I found. The file is as follows: dir /s*.*>dirlist.txt This file, typed into a notepad file, then saved as a .bat file has worked perfectly on my XP system. I tried to use in in W7, and it just...- dingpud
- Thread
- Batch File files
- Replies: 4
- Forum: Programming and Computer Science
-
R
Fortran Fortran90 reading in a formatted input file
Hi All, Let me preface by saying this is my first post, but I'm very glad to have found and joined what looks like a great community here. Also I have no Fortran experience, so please bear with my greenness: I'm trying to resurrect and use a code written by another engineer in our...- Rowdy5000
- Thread
- File Fortran90 Input Reading
- Replies: 11
- Forum: Programming and Computer Science
-
D
Fast random access of elements in a large file
Hello all, I have a question concerning the best way to access random elements in a large file. I have a single data file of numbers, 12G in size with dimensions 1024x768x16384. My goal is to, as quickly as possible, load, say 16384 of those numbers into memory. Assume these numbers are not...- DrFurious
- Thread
- Elements File Random
- Replies: 3
- Forum: Programming and Computer Science
-
Mp3 file plays with headphones but not on built in speakers?
mp3 file plays with headphones but not on built in speakers?? This is driving me nuts. I have an mp3 file which plays fine on my PC at work, with or without headphones. But the same file on my home laptop only plays with headphones, not on the built in speakers--I get no audio output. (I...- Doc Al
- Thread
- File Headphones
- Replies: 11
- Forum: Computing and Technology
-
B
Fortran Fortran program can't find input file
My gfortran compiler gives me the following message when I try to open a file in order to read it:Fortran runtime error: No such file or directory logout The line in the program where this file is is written in this way: OPEN(UNIT = 7, FILE = 'GPROP.DAT', STATUS = 'OLD')...- bruhan
- Thread
- File Fortran Input Program
- Replies: 10
- Forum: Programming and Computer Science
-
F
Fortran Reading a file repeatedly in each iteration of a do loop in fortran
Hi everybody, I have just joined this forum and I have a problem in fortran programming. I want to do a program in fortran where in the do loop it will read an input file from the first line upto a line and again it will go to the starting line of the file in the next loop and read...- fort_phys
- Thread
- File Fortran Loop Reading
- Replies: 9
- Forum: Programming and Computer Science
-
B
Python Python code for mapping numbers n text file
Dear Programmers I am having text file having huge data. From the text file i would like to map the two numbers that are present in the same brackets and the values should not considered if they are present in different numbers. say for example I want to map number "4758 & 3895" that are in...- Bala06
- Thread
- Code File Mapping Numbers Python Text
- Replies: 2
- Forum: Programming and Computer Science
-
HTML/CSS Accessing the text code of an HTML file for editing
I had installed FileZilla FTP freeware on my computer. Later, I was unable to edit my HTML file (pushed wrong button?) Whenever I tried to open or edit it using Word (my only editor which now seems to accept HTML), the webpage would appear, rather than the text code. I am using Windows 7 on...- Loren Booda
- Thread
- Code File Html Text
- Replies: 7
- Forum: Programming and Computer Science
-
W
How to transfer text file from PC to TI nspire CAS
How can i transfer a text document (word, pdf or text file) from PC to TI nspire CAS. I am lost and need help. I have install TI software on my PC. Thank you in advance for any help you can provide.- whoami2500
- Thread
- Cas File Nspire pc Text
- Replies: 7
- Forum: Computing and Technology
-
M
Can't read strange mixed format text file in Matlab
Homework Statement I have to read a text file with fixed format as follows The first column is supposed to be year, 2nd is month and 3rd is day The file has following format: 4d 2d 2d f9.4 f9.4 f9.4 f9.4 4d 4d 4d 4d 4d 4d 2000 218 0.4546 0.2394 0.0761 0.1167 55 58 1 1...- madtraveller
- Thread
- File Format Matlab Mixed Strange Text
- Replies: 12
- Forum: Engineering and Comp Sci Homework Help
-
Fortran Fortran 90, problem with reading a file
Here's a part of my program in which I'm having an error while compiling: open(unit=1,file="tabla.dat") allocate (x(n),y(n),f(n)) do i=0,n x=(2*i)/n-1 f=1/(1+25*x**2) write(1,*)x,f end do do i=0,n read(1,*)x(i), y(i) end do close(1) I'm having the error with gfortran: "Fortran runtime error...- fluidistic
- Thread
- File Fortran Reading
- Replies: 9
- Forum: Programming and Computer Science
-
N
Creating a CONFIG File for DL_POLY
Does anyone know how to build a CONFIG file for DL_POLY? I have the manual, and it gives the format for the CONFIG files, but am I supposed to just pull particle speed and forces out of the air?- Nix13
- Thread
- File
- Replies: 1
- Forum: Atomic and Condensed Matter
-
Best home File Transfer Protocol freeware?
For some reason, my WS_FTP95 LE program (originally from Ipswitch) did not transfer to my new computer (with Windows 7). To transfer, replace or update the program, would you have a direct link where I can get the program for free or do you have another recommendation? Ipswitch does not make...- Loren Booda
- Thread
- File Home
- Replies: 10
- Forum: Computing and Technology
-
Mounting encrypted .img file on x86_64 Linux
While playing around with the fglrx driver for AMD graphic cards I managed to completely destroy my system last night. (Tip: never play with the kernel after 11 pm.) After reinstalling from a live CD, I have the OS up and running. Unfortunately, my /home partition was encrypted so the...- jhae2.718
- Thread
- File Linux
- Replies: 2
- Forum: Computing and Technology
-
B
HelloDoes anyone know if it's possible to run an excel file in
Hello Does anyone know if it's possible to run an excel file in Simulink? I have a column with a variable in excel, and don´t know if there is a block that I can get in simulink to run this variable. Regards- bigfoot343
- Thread
- Excel File
- Replies: 1
- Forum: General Engineering
-
T
Why is the array not reading from the txt file
help me with this vector program i want to create a program that will have an arraycalled array1[] of 30 sets of 3 one digit numbers i.e 804, 450,430 etc) i will have 13 vector containersor arrays defined with a series of 3 one digit numbers. i want the program to find any series of numbers...- theisonews
- Thread
- Array File Reading
- Replies: 6
- Forum: Programming and Computer Science
-
D
Comp Sci Fortran 77 reading from text file, printing
Homework Statement Write a program that reads the time, temperature, pressure, and volume measurements from a data file like : 0900015001990700 1000019602210877 1100021202790925 1234034203221015 1300038803221121 1400044803241425 1503051303201520 1604055503181665 1700061303191865...- dorado29
- Thread
- File Fortran Printing Reading Text
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
B
MATLAB MATLAB: Trying to understand a MATLAB .m file
I'm trying to create a paper plane simulation in C and I'm trying to convert MATLAB code to C. Admittedly, I don't know MATLAB (and it's honestly been a while since I've done a lot of math), but I've been able to decode some parts of the following MATLAB code that I found online: S = 0.017...- borjomi
- Thread
- File Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
N
C language: reading a txt file and segment fault
I use gcc to compile the code. When I run the program, I get segmentation fault (core dumped). ranked_galaxies.txt: # PGC Name RA DEC Mass Distance Diameter Tile_Number Rank_stat 37617 NGC3992 179.399700 53.374450 2.290868 22.909000 5.613000 1 2.51796409431e-05 62964 IC4837A...- nenyan
- Thread
- C language Fault File Language Reading
- Replies: 6
- Forum: Programming and Computer Science
-
C
How to read 2 different file in loop
hi... program below just for example integer i,j do j=1,100 do i=55,78 if(i==j)then print*,i,j end if end do end do end if base on do loop theory,outer do will read 1st line of j then proceed to inner loop,then find if i==j,if true the program will print result and...- ctaini
- Thread
- File Loop
- Replies: 10
- Forum: Programming and Computer Science
-
J
What is the Purpose of rundll32.exe and rundll.exe Commands on Windows?
I've been seeing this certain file extension lately on my computer, but I do not know what programs to run them. What are file extension dll?- jill40
- Thread
- Extension File
- Replies: 4
- Forum: Computing and Technology
-
J
Bash: Including a path from one file into another
Hi everyone I'm having trouble working out how to import a specified path into a bash script. Basically, I have numerous scripts, each of which writes their output to a certain directory via the command set wdir = "/home/..." However, in the future this directory may change, so rather than...- jf22901
- Thread
- File Path
- Replies: 4
- Forum: Programming and Computer Science
-
S
Gaussian 09 .out file format specification (and freqchk)
Hello, I was wondering if anyone could tell me where the documentation exists for the output of Gaussian 09 runs. The .out file is plain text and human readable, but I can only decipher parts and units are not always clear. I would have thought the Gaussian website would have an explicit...- surfer96313
- Thread
- File Format Gaussian
- Replies: 4
- Forum: Chemistry
-
Comp Sci Java Program Input from file, output to file(s)
Develop an application that reads city, state, and population from a text file. Example input census file: Jamestown FL 50000 Domville CO 10000 Jennyboro FL 30000 Lillyville CO 5000 If the population of the city is greater than or equal to 50,000, write the city information to a text...- iamjon.smith
- Thread
- File Input Java Output Program
- Replies: 31
- Forum: Engineering and Comp Sci Homework Help
-
B
Help: Abaqus-why not get the correct stress? with inp file.
help: Abaqus--why not get the correct stress? with inp file. hi, all, the attachment is the calculation inp file for the stress of pipe. but now i can not get the correct result. pls help me to find the error. thanks in advance!- beitownren
- Thread
- File Stress
- Replies: 1
- Forum: Mechanical Engineering
-
C
Can't put .txt file into an array
I'm trying to input a .txt file with a variable number of rows and 3 columns into an array. The first row is just a single number expressing the remaining number of rows. so we have something like this 3 3 5.12 3 5.3 3 5 4 3 4 All the individual numbers are separated by spaces. So far...- chemengstuden
- Thread
- Array File
- Replies: 6
- Forum: Engineering and Comp Sci Homework Help
-
T
Fortran Fortran90: Reading Mixed-Type Input File
Hi everyone, I am kind of new in fortran90 and I am struggling with writing this basic programme: I have an input file with a fixed format . It looks like this: c 23.345 45.342 34.345 c 12.345 56.235 67.234 c 45.567 44.345 78.345 c 56.567 78.563 97.342 where the first column...- typeon
- Thread
- File Fortran90
- Replies: 5
- Forum: Programming and Computer Science
-
J
Fortran Fortran 77 - subroutine in separate file
Hi all I am currently using subroutines, and placing them at the end of the main program. However, I was wondering if it is possible to save them to a separate file, which the main program then calls? For example, in the program below I call the subroutine 'SUB', which is located at the end of...- jf22901
- Thread
- File Fortran Subroutine
- Replies: 3
- Forum: Programming and Computer Science
-
M
What could be causing a file from 2011 to be undeletable?
Recently I discovered a file (dated Feb. 13, 2011, time 8:07 P.M. (EST)) that cannot be deleted and does not respond to any commands, such as move, rename, open, etc. I have "unlocker assistant", but it doesn't work here. The date stamp corresponds to a time when I was surfing Physics...- mathman
- Thread
- deleted File
- Replies: 42
- Forum: Computing and Technology
-
C
VHDL code - write to a binary .dat file
I'm attempting to write some simulation VHDL code that will be able to write the output of my simulation as a single string of binary values in a .dat file. So far I've used both the textio and std_logic_textio libraries to write the signals to a .txt file as text. Is there a library I can...- crono1009
- Thread
- Binary Code File
- Replies: 1
- Forum: Electrical Engineering
-
Comp Sci How to Build a Java GUI for Recording City Populations to a Text File?
Develop an application that reads city, state and population entered from the user and writes this information to a file. The application should continuously prompt for this population information until terminated by the user. Example file: Jamestown FL 50000 Domville CO 10000 Jennyboro FL...- iamjon.smith
- Thread
- File Gui Java Output Text
- Replies: 27
- Forum: Engineering and Comp Sci Homework Help
-
C
How to Fix Runtime File Reading Error in Fortran Code?
I frequently get the same runtime error when using g77. Here is the error message: fmt: end of file apparent state: unit 16 named vi1.src last format: (F10.6) lately reading sequential formatted external IO abnormal program termination I have added to my code the REWIND statement...- chaim
- Thread
- Error File Reading Runtime
- Replies: 7
- Forum: Programming and Computer Science
-
M
Fortran Can Fortran77 Write a File to Excel without Using Tab Separation?
I have problem don't use tab to separate cell for writing file to excel. this algorithm write file to excel one cell only.i want write file separate cell on excel file. please suggest me about algorithm write file in excel file.- mme58105
- Thread
- Excel File Fortran77
- Replies: 4
- Forum: Programming and Computer Science
-
M
Comp Sci C++: continuous reading file while doing calculation in between?
Homework Statement I have 1 class for reading parameter from file (example below) and 1 class for doing calculation For every step, I'd like to read in parameter and do calculation in between. For i = 0 to number of lines in parameter file Read in parameter; Calculation; End...- madtraveller
- Thread
- Calculation Continuous File Reading
- Replies: 4
- Forum: Engineering and Comp Sci Homework Help
-
N
Efficient File Name Changes: How to Automate the Process with Programming
Hello all, I have another little computer problem to deal with. I have a folder full of files (over a thousand) with the basic form KJ(number)-j(another number).txt, and I want to change the style to (number)(another number).txt. Is there any simple way to do this as the only way I can think...- n1person
- Thread
- File
- Replies: 3
- Forum: Programming and Computer Science
-
I
Mathematica File names in a Do Loop: Mathematica
Does anybody know how i can make files in a do loop in mathematica? For example i want a do loop as (here is not mathematica language) do i=1,10 make file = text_i.txt (here i is the index of the do loop) end do The results of this process would be ten files as text_1.txt text_2.txt...- ilvreth
- Thread
- File Loop Mathematica
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
N
Fortran Solving Fortran Input File Problem - B
Hey guys, I am wondering if anyone could help me with a simple problem. I want to remove key parameters from the "type declaration/parameter" portion of my code and into an external input file for easy access. The problem is, many of my variables (such as arrays) can't be defined until...- Nrets
- Thread
- File Fortran Input
- Replies: 1
- Forum: Programming and Computer Science
-
J
Python How to write a data file in Python
Hi guys I've done a Runge-Kutta script for the Lorenz Equations in python, I need to write data for (t,x,y,z) in a .dat file in order to reprint in a table. How can a do it? Imported routines are: import sys, pylab, numpy from pylab import * from mpl_toolkits.mplot3d import Axes3D...- javiergra24
- Thread
- Data File Python
- Replies: 9
- Forum: Programming and Computer Science