Code Definition and 908 Threads
-
M
Trying To COnvert inherited code to F90
I have least squares code which I am trying to rewrite in FORTRAN90. I have a pair of allocatable arrays declared in MAIN. I pass those unallocated arrays to a subroutine where the arrays are allocated and data is assigned. However, I get segmentation faults every time I try to run this...- mzottola
- Thread
- Code Convert
- Replies: 14
- Forum: Programming and Computer Science
-
R
Python Considering Re-Writing Open Source Code in Qt for Science Research
I found some open source code in wx that I'm considering re-writing in qt and adding some new functionality to. It's for science research. Before I do, I wanted some feedback from the community if this is a worth while endeavor and an estimate of how long it would take. It's about 700 lines...- rigetFrog
- Thread
- Code Open source Research Science Source
- Replies: 2
- Forum: Programming and Computer Science
-
Triple redundancy sensor matlab code
Homework Statement Hardware redundancy is important in many real-world engineering systems. Specifically, installing multiple sensors that measure the same quantity provides a level of safety in the event that one instrument fails during the mission lifetime. You do not want an expensive...- gfd43tg
- Thread
- Code Matlab Matlab code Sensor Telescope
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
What is the Correct Color Code for a 1KΩ ± 10% Resistor?
I want to know color code for this resistor ---> 1KΩ \pm 10% I have check in two sites. This sites showed me different color code for this resistor value. Which one is right i don't know i am confused! http://www.digikey.com/us/en/mkt/calculators/4-band-resistors.html (this...- Hardik Batra
- Thread
- Code Color Resistor
- Replies: 13
- Forum: Other Physics Topics
-
Adding code in box on the forum
Hello, I am taking MATLAB this summer and will be having a number of questions on this forum about all my bugged code when I make it. Before I begin, I was wondering how do people add those ''code boxes'' when they make a thread that shows all their code within the post. Thanks Example: Post...- gfd43tg
- Thread
- Box Code Forum Matlab
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
MHB QR Code Length: Examining the Fixed Size of QR Codes
prove the length of QR is fixed- Albert1
- Thread
- Code Length
- Replies: 2
- Forum: General Math
-
G
Is there any free burnup code
hello,every body ,I want to know is there any any free burnup code? thank you- googlefans
- Thread
- Burnup Code
- Replies: 3
- Forum: Nuclear Engineering
-
N
How does the computer understand computer code
I've been programming on and off for a few years just recently taking it seriously. Something I've always wondering about is how the computer understands the commands I type in. Is it essentially binary? and if so how could 1's and 0's possibly create something as complex as a video game or an...- Niaboc67
- Thread
- Code Computer
- Replies: 6
- Forum: Programming and Computer Science
-
M
MATLAB [Matlab] Gui help for adding code
Hi, all there is an example for gui but I can not do. Could somebody help me. I generated a button in gui then I have to add some function on in. Codes are in the picture. Will I add them under callback function? Why can I not determine where I should I add them. To understand it what...- mech-eng
- Thread
- Code Gui Matlab
- Replies: 6
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
C/C++ Can someone explain what's going on in this code? (C++)
I was looking at an example from here: http://cboard.cprogramming.com/cplusplus-programming/133294-passing-operator-parameter.html template <class T> bool myfunc(bool lv, bool rv, T oper) { return oper(lv, rv); } struct Or { bool operator()(bool lv, bool rv) {...- Jamin2112
- Thread
- Code Explain
- Replies: 13
- Forum: Programming and Computer Science
-
H
MATLAB Composite Simpsons 1/3 matlab code
hey guys, So I'm working on a MATLAB function that uses simpsons 1/3 rule to find an integral. This is what I have done so far, but I'm not 100% confident.. I seem to get double when I use greater segments. If anyone would be able to have a look at give me some tips that would be very much...- haz
- Thread
- Code Composite Matlab Matlab code
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Why do I need a processing code when I pair Arduino with bluetooth
Why do I need a "processing" code when I pair Arduino with bluetooth I have a need to connect my [Arduino+Bluetooth dongle JY-MCU V1.02] to my laptop in-built bluetooth device.Most forums suggest using a processing code to go ahead and do this...- marellasunny
- Thread
- Arduino Bluetooth Code Pair Processing
- Replies: 1
- Forum: Electrical Engineering
-
J
Maximum allowable probability of error for the (8, 4) Hamming Code
Homework Statement What is the maximum allowable probability of error is a typical digit in order that the (8, 4) Hamming Code can be used with probability .999 that the receiver will not be misled (i.e., 3 or more errors occur) in a single word? Homework Equations...- jmomo
- Thread
- Code Error Maximum Probability
- Replies: 1
- Forum: Calculus and Beyond Homework Help
-
Fortran Fortran 77 [F77] : Code in external file without subroutine?
I have some F77 code and I am wondering if it is possible to inject external code into a separate file and call it without it being a subroutine, and placed into the code. An example would be : a = 1 + 1 b = a + 1 c = b + a a = c + b d = 4 + a and I want to take lines 3 and 4 and...- Hepth
- Thread
- Code File Fortran Subroutine
- Replies: 3
- Forum: Programming and Computer Science
-
E
MATLAB Need MATLAB Implementation for OFDM Communication Systems in Continuous-Time?
Hello all, Does it occur that anyone here working on OFDM communication systems? I need a MATLAB implementation of such systems in the continuous time. I will provide the math derivations if requested. Thanks- EngWiPy
- Thread
- Code Matlab Matlab code System
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
G
Carbohydrates: part of the histone code, epigenetics,DNA transcription
And this is why I'm going to hazard to guess that the next century of biology will be heavily dominated by the study of post translational modifications. The genome only encodes ~26,000 genes, and the entire end product of the genome+epigenetics--the proteome--only is comprised of roughly...- gravenewworld
- Thread
- Code Dna
- Replies: 2
- Forum: Biology and Medical
-
LaTeX LaTeX: Help with \ell Code & Command List
What is the capital equivalence of \ell (##\ell##) Also where can I find a list of such commands?- BiGyElLoWhAt
- Thread
- Code Latex
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Programming Microcontrollers - C vs Machine Code
What is the most commonly used programming language for microcontrollers? I have done programming in machine code and it is a pain. I will get better at it if I have to, but would rather use a high level language like C. I hear C is much easier to write programs with than machine code...- mrmjp
- Thread
- Code Machine Programming
- Replies: 10
- Forum: Electrical Engineering
-
G
Is a Binary-to-Gray Code Converter Considered a Decoder?
Homework Statement Binary-to-Gray code converter,isn't it a decoder? The Attempt at a Solution- go2255
- Thread
- Code Converter
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
E
MATLAB Matlab Code for Time-Frequency Transformation
Hello everyone. Sorry if the question is silly, but in really need to know something. We know that The Fourier transform of time is frequency and the inverse of frequency is time. In Matlab can anyone tell me how to write it ? Because in the book Non linear fiber optics by Agrawal we found that...- eahaidar
- Thread
- Code Matlab Matlab code Transformation
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Code: Return random number less than specifed value
Code: Random number less than specifed value This isn't really a homework problem. I'm just doing this for fun and giggles. But given the nature of the forum rules, I'll post it here. Homework Statement Create a method (function) that returns a random number less than the specified...- collinsmark
- Thread
- Code Random Random number Value
- Replies: 23
- Forum: Engineering and Comp Sci Homework Help
-
B
MATLAB Help with MATLAB code; discrepancy between graph max and Matlab's max
Hi, For some reason, when I run this MATLAB code, I'm getting what looks like about 10,000 for Rf for the largest Vo on the graph, but MATLAB is giving me Rf at (Vo)max as 100,001 Any ideas? clc; clear; close all; syms Rf Rf = 0:0.1:100000; VRt25 = 18.*(10000)./(10000 + Rf)...- babayevdavid
- Thread
- Code Graph Matlab Matlab code Max
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
N
Fortran How to Write a Fortran Code to Read a Specific Data File?
The input file: --------------------------------------------------------------------------------- S 1 S 2 1H,,1H...- niloy112
- Thread
- Code Fortran
- Replies: 5
- Forum: Programming and Computer Science
-
S
LaTeX Why Isn't My LaTeX Code Displaying Formula?
in this post Is there a problem with my code?- swmmr1928
- Thread
- Code Formula Latex
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
PHP My php code skips a user request please look inside
Hey folks! Wow...been a while since I posted here. So this ought to be a simple script I'm running in Command Prompt, but it completely skips the part where it asks the user to enter a number (after asking how much would you like to withdraw (or deposit) ) What gives? <?php...- Femme_physics
- Thread
- Code Php Request
- Replies: 22
- Forum: Programming and Computer Science
-
What is the significance of translating binary code?
Can you help me to translate this binary code? 01001001 00100000 01001100 01001111 01010110 01000101 00100000 01011001 01001111 01010101- Mechatron
- Thread
- Binary Code
- Replies: 4
- Forum: General Engineering
-
T
Java Sine wave equation into Java Code
I have been trying to implement this Wave equation into java: A = amplitude of wave L = wave length w = spatial angular frequency s = speed wt = temporal angular frequency d = direction FI = initiatory phase Y(x,y,t)=A*cos(w *(x,y)+ wt*t + FI; I...- TastyLemons
- Thread
- Code Java Sine Sine wave Wave Wave equation
- Replies: 1
- Forum: Programming and Computer Science
-
A
Allowing Users to Change the Code of a Website (a Post-Like Format)
Hi, So what I'm trying to do is enable visitors to the site pesterlog.tk, provided they have the correct login details, to change the code on the site. So say there was a page pesterlog.tk/user1, if user1 visited the page, (s)he could just enter the login details and change the code on...- AlfieD
- Thread
- Change Code Format
- Replies: 11
- Forum: Programming and Computer Science
-
J
MATLAB MatLab code for these Integrals.
How can I write proper language for these integrals in MatLab ? Your helps really appreciated. John Mark- John Mark
- Thread
- Code Integrals Matlab Matlab code
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
K
Where Can I Find Resources and Tips for Coding PARET?
Please let me know if there is any resources, papers or tips and tricks to code PARET- khalid03ma
- Thread
- Code
- Replies: 1
- Forum: Nuclear Engineering
-
B
MATLAB Help with FFT Code Troubleshooting in Matlab
ok I have been troubleshooting this code left and right... but I am still not getting what Mat lab is getting... can someone please look at this for me ? private float Fs; private int N; private Complex [] F; private int R; private Complex[] x...- btb4198
- Thread
- Code Fft
- Replies: 16
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
B
MATLAB Troubleshooting FFT code with MATLAB
ok I wrote my own FFT class and I now have MatLab on my computer. I am comparing my code to mat-lab. so my test i used it this : for (int y = 0; y < 100; y++) { double temp8 = (2D * (Math.Sin(2D * Math.PI * 4D * (double)y / 100D)))...- btb4198
- Thread
- Code Fft Matlab Troubleshooting
- Replies: 11
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
How do bar code scanners read a bar code from a cell phone screen?
A quick google search found that there are 2 kinds of bar code scanners. One uses ambient light and a CCD device, these obviously would have no problem with a bar code on a screen since it is essentially just taking a picture. The other kind sweeps a laser over the bar code and reads the...- mrspeedybob
- Thread
- Cell Code Screen
- Replies: 1
- Forum: General Engineering
-
A
Fortran Retake: Reading an existing file into a fortran code
Thank you very much for the reply. I placed the file in the same directory as the program and opened the file before executing and everything was just perfect. But my other problem is that, in my data, there consists of negative numbers. Is there a way to read the positive inputs without the...- angelfaz
- Thread
- Code File Fortran Reading Retake
- Replies: 2
- Forum: Programming and Computer Science
-
A
Fortran Reading an existing file into a fortran code
I am programming in fortran 90/95 and i have a problem opening an existing file for input. I have written the code without any errors, but at compilation time, the file to be read cannot open. It is as if the program does not know the location for the file. I would like to know if there is a...- angelfaz
- Thread
- Code File Fortran Reading
- Replies: 1
- Forum: Programming and Computer Science
-
A
Movies like source code and getaway
Im trying to find movies like the 2 that I mentioned above. Where by majority of the scenes take place at one place. For source code was on the train, and for getaway was in a car. Does anyone know what do you call this type of movies. :D- AllenHe
- Thread
- Code Movies Source
- Replies: 3
- Forum: Science Fiction and Fantasy Media
-
Scientists have discovered a second code hiding within DNA
Scientists discover double meaning in genetic code http://www.washington.edu/news/2013/12/12/scientists-discover-double-meaning-in-genetic-code/- Greg Bernhardt
- Thread
- Code Dna
- Replies: 4
- Forum: Biology and Medical
-
D
Mechanical Engineering & Writing Code: Benefits & Recommended Languages
Good morning everyone. I would love some insight regarding mechanical engineering and writing code. My physics professor (who also has a masters in electrical engineering) mentioned last night that the ability to write code (I apologize if I am using the term incorrectly...still kinda new to...- DocSpringston
- Thread
- Code Writing
- Replies: 2
- Forum: STEM Career Guidance
-
P
Is this an impossible code challenge?
i wrote a script that codes phrases for me in c++ that should be impossible to solve if anybody can solve the code i'll respond with the key and explain how it works so here it is 05 08 13 52 19 55 89 44 33 77 10 82 88 84 23 65 46 52 57 95 37 93 18 11 29 40 69 34 97 87 21 52 17 33 86 20 37 96...- pixelpuffin
- Thread
- Challenge Code Impossible
- Replies: 9
- Forum: General Discussion
-
A
Combinatorics: Linear Code Proof
Consider S ={0120, 1010, 2011} as a subset of codes of length four over Z3 with d = 3 By (a) Show that S is a linearly independent set. I am asked to show S is a linearly independent set. However, if I add 0120 + 0120, I get 0210. Since 0210 is not in the set S, is S still a linearly...- Askhwhelp
- Thread
- Code Combinatorics Linear Proof
- Replies: 4
- Forum: Calculus and Beyond Homework Help
-
H
Convergence Error in Matlab Code for Fluid Flow Simulation
Homework Statement My apologies if the error is an obvious one and many thanks in advance for any help given: I am trying to create a Matlab code that simulates Lifting Line Theory in order to provide an estimate of the lift and drag of a 3D wing. My hope is to later use this as part of...- HACRS4
- Thread
- Code Lifting Line Matlab
- Replies: 7
- Forum: Engineering and Comp Sci Homework Help
-
1
MATLAB Plotting Beam Emittance with MATLAB Code
Hi, I want to write a very simple code to plot the beam emittance knowing x,y,z and vx,vy,vz of each particle. I have generated with a tracking code a very simple beam (cone distribution with 1° divergence) and I want to compare the emittance of this beam with the one calculated by a...- 1Keenan
- Thread
- Beam Code Matlab Matlab code Plotting
- Replies: 6
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
E
MATLAB Solve Matlab Code Problem: Nonlinear Fiber Optics
I took this code from the agrawal book: nonlinear fiber optics and I wanted to see the results : %---specify input parameters clear all; distance= input('enter fiber length (in units of L_D)= '); beta2=input(' dispersion: 1 for normal, -1 for anomalous'); N=input('Nonlinear parameter N=')...- eahaidar
- Thread
- Code Matlab Matlab code
- Replies: 14
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Q
MATLAB [Matlab] Numerical Code for the NLS equation
hello i just copied the Numerical Code for the NLS equation which is the following: %---specify input parameters clear all; distance=input('enter fiber length(in units of L_D)='); beta2=input(' dispersion: 1 for normal, -1 for anomalous'); N=input('Nonlinear parameter N=')...- queenstudy
- Thread
- Code Matlab Numerical
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
S
Are There Mistakes in My ARM Cortex-M Machine Code Exercises?
Homework Statement Hey guys. I am just learning machine code for Cortex-M. There are a few exercises within the textbook, however, I am not entirely sure if I am doing them correctly. If you could possible look over my work to see if there are any mistakes, I would greatly appreciate it! They...- sandy.bridge
- Thread
- Arm Code Machine
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
J
Java Is there anything wrong with this Java code?
I had a phone interview with a guy and I thought it went well. At the end he told me to send him a Java program that reads from a file containing a list of integers, one per line, and prints out all the pairs that sum to 8. I thought I made a pretty good algorithm that finds all the pairs that...- Jamin2112
- Thread
- Code Java
- Replies: 11
- Forum: Programming and Computer Science
-
S
MHB Verilog Code: Implementing f(x,y,z) = x*y + y*z + x*z | Check My Work
Figured this would be the safest place to post a question about Verilog Code seeing as how the people answering all my questions have obviously took this class. If there is another place I should post it then please inform me. Just need someone to check my work. Question: Write the verilog...- shamieh
- Thread
- Code
- Replies: 1
- Forum: Programming and Computer Science
-
P
Testing Verilog Code - Find Reason Output Not Displayed
I have a verilog code for a simple 8-bit counter. I'm trying to build a testbench but for some reason it doesn't work. I'm using xilinx and when I run the simulation, the inputs work but the output doesn't work. It stays as XXX. Here is my verilog code and testbench. module counter(enable...- polaris90
- Thread
- Code Testing
- Replies: 6
- Forum: Electrical Engineering
-
L
Printing a QR code on a POS receipt
Hi guys, Does anybody here have an understanding of POS (point-of-sale) technology. I am looking for a way to print a QR-Code onto a till receipt if the dollar spend is over a set amount. The QR-Code information to be printed would be pulled from a 3rd party server. Every till receipt that...- Logger
- Thread
- Code Printing
- Replies: 1
- Forum: Computing and Technology
-
How do you deal with out-of-control code?
I would like to get some ideas for solving problems that occur on large coding projects. I'll just describe one for now but I have plenty of other examples. Please feel free to offer your suggestions, describe problems that you would like to find a solution for or derail it off in another...- Borg
- Thread
- Code
- Replies: 9
- Forum: Programming and Computer Science