Code Definition and 908 Threads
-
Whats the dress code at national labs?
Kind of a stupid question but I'm very interested to know. I would think business casual but a lot of the pictures I see online of people working in labs are wearing ordinary close (jeans and such). So if you were a grad student going to visit a lab for a few days what would you wear?- Topher925
- Thread
- Code Labs
- Replies: 9
- Forum: General Discussion
-
C
MATLAB Matlab Code Help: Read Sparse Matrix, Calculate Eigenvalues
Hello. Can anyone help me in producing a Matlab code that will read a sparse matrix and then calculate the eigenvalues of it, show the sparsity pattern of it etc. I have the the sparse matrix data in compressed sparse row (CSR), compressed sparse column (CSC) formats and also in Co-ordinate...- confi999
- Thread
- Code Matlab Matlab code
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
X
MATLAB Who can help me to run this code in matlab?
who can help me to run this code in matlab? I run it in my computer but the result is totally different from the book! In the book,the image is a increase curve,but my result is a decrease curve.So, is there something wrong of my MATLAB? code: syms r P A B t; P = exp(A+B*r); disp('first...- xuej1112
- Thread
- Code Matlab
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
A
MATLAB Matlab code for extracting random subwindows/subimages
hi, I am doing project related to object recognition using decision trees and random subwindows.For which i nee d MATLAB code for extracting random subwindows/subimages(size is 16x16) from the image files and after that i need to get the gray values of the subimages.- amus
- Thread
- Code Matlab Matlab code Random
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
R
Mathematica Mathematica Code Help: Draw Chain Segments
Hello, I am writing a code in Mathematica to draw chain segements (Conformal Geometry - Hermetian matrix chains). The purpose of the code is to take 3 complex numbers as input and test if they are collinear or not. If collinear, output should be a line else a circle or an arc passing through...- relroy
- Thread
- Code Mathematica
- Replies: 24
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
Create Stick Plot w/ IDL Code: Title Under 65 Chars
Today I was trying to figure out how to create a stick plot using IDL. I'm talking about a plot in which each data point is connected to the x-axis by a vertical line. It is often used to visualize time sequences and other discrete data in engineering. I've also heard it called a stem plot, but...- cepheid
- Thread
- Code Plots
- Replies: 0
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
C
Coding Theory, Finding Dual Code
Homework Statement Let S = {0101, 1010, 1100}. From first principles, find a basis B for the dual code C orthogonal (couldn't find symbol) Homework Equations http://www.maths.uq.edu.au/courses/MATH3302/files/codingnotes.pdf i'm using page 19,20 and 21 The Attempt at a Solution...- Chadlee88
- Thread
- Code Coding Dual Theory
- Replies: 1
- Forum: Calculus and Beyond Homework Help
-
L
MATLAB How can I attach MATLAB code in LaTeX without it looking like a report?
Hello! Im writing a technical report with "article" as documentclass in Latex. I want to attach my MATLAB code in the appendix. If I copy and paste the text it won't look like the MATLAB code but it will look like a report.. What command should I use so the text just looks like it is ...- ladil123
- Thread
- Code Latex Matlab Matlab code
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
E
MATLAB Efficient MATLAB Code for Recursive Functions: Expert Tips and Tricks
Hello, I have the following equation, and I want to program it using MATLAB. But it is a recursive function, and it seems that I can not handle it well. So please if anyone can help, I will be thankful.- EngWiPy
- Thread
- Code Matlab Matlab code
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
J
Converting LabView code to Matlab
Hi, this is not actually a homework question, but as it has mostly to do with computer science, I thought this would be the appropriate place. At work we have a measurement setup which is currently controlled by a LabView program. My task is to move the code from LabView to Matlab. I don't...- Jopi
- Thread
- Code Matlab
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
T
Can You Crack This Mysterious Physics Homework Code?
Homework Statement I was given the following statement as a question on one of my physics homework assignments: Crack the following code: 21202E2F2E2D213428252D2134292321 2C2025302C212E2134292F2E20293320 2F3534202F2620342825203135253334 292F2E0120200825292E333425292E09 Homework...- thisiswai
- Thread
- Code
- Replies: 1
- Forum: Advanced Physics Homework Help
-
P
MATLAB Matlab code guide me ZZZZZZZZZZ
Hi i Would like to solve the the following eqn using Matlab Since I am new to Matlab, I would request u to help me in this regard (∂^2 T)/〖∂r〗^2 + 1/r (∂T )/∂r+(∂^2 T)/〖∂z〗^2 = 1/α (∂T )/∂t+τ/α (∂^2 T)/〖∂t〗^2 - { (1+δ(t) )-(1+δ(t-tp) }*IoKa/k 〖exp( - 2r/σ^2 〗_^2)exp(-zka) where δ(t) =76ns...- psm1
- Thread
- Code Matlab Matlab code
- Replies: 6
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
P
MATLAB Solve Thermal Equation Using Matlab: Guide for Beginners
Hi i Would like to solve the the following eqn using Matlab Since I am new to Matlab, I would request u to help me in this regard (∂^2 T)/〖∂r〗^2 + 1/r (∂T )/∂r+(∂^2 T)/〖∂z〗^2 = 1/α (∂T )/∂t+τ/α (∂^2 T)/〖∂t〗^2 - { (1+δ(t) )-(1+δ(t-tp) }*IoKa/k 〖exp( - 2r/σ^2 〗_^2)exp(-zka) where δ(t) =76ns...- psm1
- Thread
- Code Matlab Matlab code
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
P
MATLAB Solve Thermal Equation using Matlab Code - Help Needed | Hello PDE
Hi i Would like to solve the the following eqn using Matlab Since I am new to Matlab, I would request u to help me in this regard (∂^2 T)/〖∂r〗^2 + 1/r (∂T )/∂r+(∂^2 T)/〖∂z〗^2 = 1/α (∂T )/∂t+τ/α (∂^2 T)/〖∂t〗^2 - { (1+δ(t) )-(1+δ(t-tp) }*IoKa/k 〖exp( - 2r/σ^2 〗_^2)exp(-zka) where δ(t) =76ns...- psm1
- Thread
- Code Hello Matlab Matlab code Pde
- Replies: 2
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
CAMB Output File: TT Power Spectrum (C_l) Columns
Hi, all! The camb code is available at http://lambda.gsfc.nasa.gov/toolbox/tb_camb_form.cfm in a web interface form. One of it's output files, named something like camb_13685314_scalcls.dat should contain the scalar C(l)'s. Can anyone tell me, what exactly is contained in... -
S
C/C++ Struggling with C++ Code for Sudoku Puzzle
Please help in c++ urgent Argh! I've been trying to work out this problem for an entire week and I'm now at my wits end! I'm supposed to hand in this assignment in 7 hours and am posting my problem here as a last resort. Can i please have someone's assistance in this? I use Dev-C++. Basically...- steelband
- Thread
- C++ Code Puzzle Sudoku
- Replies: 6
- Forum: Programming and Computer Science
-
D
How to Adjust MATLAB Code to Correctly Draw a Diamond with Even Sizes?
i need to build a code which asks the user for the size of the desired diamond and then draws it, i can get this to workl perfectly by using the fprintf command and building the diamond out of 4 parts,: see code- clc clear h=input('enter height of diamond :'); y=1; while y<=h/2 for...- Dell
- Thread
- Code Matlab Matlab code
- Replies: 6
- Forum: Engineering and Comp Sci Homework Help
-
M
Where can i find best and big source code
where can i find best and big library source code- markone2
- Thread
- Code Source
- Replies: 3
- Forum: Programming and Computer Science
-
B
Code for animation in flash action script 2.0
i have a a board and i want it divided into 6 parts. 1 part is equal to the size of the stage. when the mouse moves to the left of the screen i want the current part to tween into the left part. same for right and down and up. what i have so far is for the bar on the left, right, bottom...- brandy
- Thread
- Animation Code Flash
- Replies: 1
- Forum: Programming and Computer Science
-
R
C programming help nedded ?what is the wrong of this code?
C programming help nedded ??what is the wrong of this code? #include<stdio.h> int matA[3][4],matB[4][3],matAB[3][3],i,j,k; void read(); void multiply(); void display(); int main() { read(); multiply(); display(); return 0; } void read() { printf("Enter your matrix A:\n"); for...- rclakmal
- Thread
- C programming Code Programming
- Replies: 8
- Forum: Programming and Computer Science
-
T
MATLAB Efficient Summation in MATLAB for Biphasic Model: Varying n from 0-3 to 0-100
i need to write this into MATLAB http://www.engin.umich.edu/class/bme456/ch10fitbiphasic/biphasfit19.gif which i have done here: uj = (-sig/Ha)*(xj-(((2*h)/(pi^2))*((((-1)^n)/((n+1/2)^(1/2)))*sin((n+1/2)*((pi*xj)/h))*exp(((-Ha*ko)/(h^2))*((n+1/2)^2)*(pi^2)*t)))); how do i vary n...- tunk
- Thread
- Code Matlab Matlab code Summation
- Replies: 3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
O
Compiling Source Code on Linux (MINT) - Assistance Needed!
Whenever i try to compile source code of programs in linux (MINT) it tells me that it cannot compile executables. Can someone help me?- okwatia
- Thread
- Code Source
- Replies: 5
- Forum: Engineering and Comp Sci Homework Help
-
O
How to manually write the code for a matlab delta function
that is 0 everywhere and 1 at 0. the code I wrote was this: n = -20:1:20; if n==0 imp = 1 else imp = 0; end >> stem (n, imp) ? Error using ==> stem at 40 X must be same length as Y. but i got that error. Using vectors and matrices is useless cause the delta...- O.J.
- Thread
- Code Delta Delta function Function Matlab
- Replies: 10
- Forum: Engineering and Comp Sci Homework Help
-
P
C/C++ How can I incorporate graphics into my C++ code?
How can I use graphics in my C++ code? I'm making a project of basic level (cricket score board) and I need to incorporate graphics in it. Are there any online tutorials etc. for graphics? P.S. I use Visual C++ 6.0 compiler.- Peon666
- Thread
- C++ Code Graphics
- Replies: 16
- Forum: Programming and Computer Science
-
C
Get Help with C Code: Understanding Linked Lists and Queue Pointers
1. I have this code typedef struct linkedlist {struct linkedlist *next; key_t value;} queue; const queue *tail; queue *create_queue(key_t input) { queue temp; temp.next = NULL; temp.value = input; tail = &temp; printf("%d\n", tail->value); return &temp; } int main() { queue *one...- cshum00
- Thread
- C code Code
- Replies: 3
- Forum: Engineering and Comp Sci Homework Help
-
C
MATLAB Matlab Code for Matrix Multiplication
Hihi, Let's say I have the linear equations ,A 2x +3y +4z 5x+6y-7z 5x-4y+3z then I can always write as a matrix multiplication A= B*x matrix B = 2 3 4 5 6 -7 5 -4 3 times matrix x x y z Then., how can I tell MATLAB to express in the matrix multiplication form so...- cks
- Thread
- Code Matlab Matlab code Matrix Matrix multiplication Multiplication Urgent
- Replies: 13
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
C
Fortran Help with Fortran Code Using FFTW-3.3alpha1
Hello, I've been trying for 2 weeks now to write in fortran a MPI program that computes the Fourier transform off a real matrix and then in vers transform using fftw-3.3alpha1. I installed the libray on evry computer availbale at my school and an I was able to compile yet my code. Even if...- cva
- Thread
- Code Fortran
- Replies: 4
- Forum: Programming and Computer Science
-
G
ASME Boiler and pressure vessel code
Does anybody knwo how calculate the required cross-sectional area of the bolts with internal pressure, according to the ASME code? I mean in which section, appendix, whatever. I have spent a lot of time trying to find this and I could not. But I can´t believe that an important standard, like...- gabriel
- Thread
- Boiler Code Pressure Pressure vessel Vessel
- Replies: 3
- Forum: General Engineering
-
R
Fortran (3I3,F9.6) Fortran source code
what does this mean..i saw this in Fortran source code! (3I3,F9.6) thanks.- Rajini
- Thread
- Code Fortran Source
- Replies: 8
- Forum: Programming and Computer Science
-
L
Producing 3D Graphs with Code: Is There an Easy Way?
i can produce 2d graphs with my code but i need to produce 3d aswell, is there no easy way i can produce a 3d graph?- lukus09
- Thread
- 3d Code Graphs
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
C/C++ Help with Simple C++ code please
Help with Simple C++ code please :) So here is the idea of the program (I have comments in the code too) Ask the user for a number up to 5 digits long, store it in a as a string array,reverse the order of the number (i.e. if user enters 12345 make it 54321), convert the reversed string to an...- Saladsamurai
- Thread
- C++ Code
- Replies: 20
- Forum: Programming and Computer Science
-
D
LaTeX How to Get Proper Font for Quantum Numbers in LaTeX
I have been using LaTex lately for my Quantum assignments. I am not too good with it yet. I was wondering if anyone knows how to get the proper font for the quantum numbers I want the lowercase loopy L that is almost always used for angular momentum, but I can't figure out how to type it...- dsr39
- Thread
- Code Latex Quantum
- Replies: 1
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
R
Java Java Insult Generator Code Issues?
Hi, I have to do a homework assignment for my intro to computer porgramming class and i have to write a program that creates insult sentences. My professor gave us some code to start with and we had to fill in the functions(professor gave us the names of these functions and the name of the...- royboyz12
- Thread
- Code Generator Java
- Replies: 2
- Forum: Programming and Computer Science
-
P
Compiling older code with gcc/g++
I have some older cpp code that was written when gcc 2.95 was in general use, but this code does not compile under g++ 4.x or even 3.3. Is there a way to tell the compiler to compile code that is old and not written to present standards? I seem to recall there is a way to do it but I do not...- Pollywoggy
- Thread
- Code
- Replies: 3
- Forum: Programming and Computer Science
-
K
Assembly language: Why wouldnt my code work the way i want it to?
this is my code to convert lower case strings to upper case. i want to ask the user whether to continue or not. but no matter what i type, the prog keeps stoping. try to copy paste this code to ur emulator and u'll know what I am saying. also, how should i replace the include 'emu8086.inc'...- kloong
- Thread
- Assembly Assembly language Code Language Work
- Replies: 7
- Forum: Programming and Computer Science
-
Visitation Dress Code (before a funeral)
anyone know if there is a dress code for a visitation? my friend whose dad died left on facebook a public message that visitation is tomorrow. is a visitation formal like a funeral? ... I've never been to either. I don't want to show up dressed in regular clothes and seem rude, but I don't...- moe darklight
- Thread
- Code
- Replies: 7
- Forum: General Discussion
-
F
Fortran Error 112 /undef when running fortran code
Hiya. I am able ot compile my program with no errors but when I run it I get the message: Error 112, Reference to undefined variable, array element or function result. I cannot see where I have gone wrong and more frustratingly this code was working, running producing results on the unix...- freja
- Thread
- Code Error Fortran Running
- Replies: 8
- Forum: Programming and Computer Science
-
C
How i will write the code for fft
Homework Statement How i will write the code for fft Homework Equations ACos(ωt+φ) The Attempt at a Solution n = 100; n = 0:n; nodd = 2*n + 1; T=n*pi/2w w=2*pi*1.93*10^14; phi= 0; A=-6:6; X= A*cos(w*T+pi) %Here it generates error " ? Error using ==> mtimes Inner matrix...- cobraa_eyz
- Thread
- Code Fft
- Replies: 2
- Forum: Engineering and Comp Sci Homework Help
-
H
Optimizing C Code: Help with Loops and If Statements for Gear Combinations
Hey I am having some issues with my C code. What it should do is calculate the output speed when a gear combination is used. It loops to find all combinations for 4 gears from 1 to 42, but can be changed. 2 things i can't get working - IF STATEMENT - i want it to only show...- herpamad
- Thread
- C code Code Loop
- Replies: 4
- Forum: Programming and Computer Science
-
P
Fortran Checking programming code: fortran 95
Hi. Can anyone be kind enough to check what's wrong with my source code? Here's the project: http://www.dur.ac.uk/3h.physics/proj...nsmission.html You can skip the introduction bits. I'm stuck at the last question on Calculation Part I. I did the source code independently and it works...- p$ycho
- Thread
- Code Fortran Programming
- Replies: 2
- Forum: Programming and Computer Science
-
B
A1: What ethical considerations are involved in creating a code of science?
Q1: Is there a code of science, a set of requirements or guidelines for scientific research? A1: _____ (?) Q2: If so, what is the code of science? A2: _____ (?)- Bob K
- Thread
- Code Science
- Replies: 16
- Forum: General Discussion
-
Science - Genetic Code Sees Double
Interesting, never trust a dogma. Genetic Code Supports Targeted Insertion of Two Amino Acids by One Codon "Call it the genetic version of a double-entendre. Scientific dogma dictates that various three-letter combinations of our genetic sequence each "mean" exactly one thing--each codes...- Monique
- Thread
- Code Genetic code Science
- Replies: 2
- Forum: Biology and Medical
-
O
Where does the user get the pseudorandom code from in CDMA system?
hello every one Could anyone please help me? I have question about CDMA. Where does the user get the pseudorandom code from in CDMA system? thanks- osamaalshaibi
- Thread
- Code System
- Replies: 1
- Forum: Electrical Engineering
-
N
What is the Pseudo Code for a Riemann Sum Calculation?
So I'm writing a program to do a riemann sum. The final answer should be Pi. My function: f(x) = 4/(1+x^2) a = 0 b = 1 n = 40,000,000 For a riemann sum, delta x = (b-a)/n so (1-0)/40,000,000 = 1/40,000,000. Then the riemann sum looks like...- ncp1044
- Thread
- Code Sum
- Replies: 9
- Forum: Programming and Computer Science
-
K
Writing Electronic Structure Code
Hello all, In my research, I use DFT from time to time using SIESTA or VASP. I have spent much time reading up on the various aspects of DFT and think I have a pretty good handle on it. In order to prove this to myself, I would like to start to write my own code. I am however finding that...- knghrts17
- Thread
- Code Electronic Structure Writing
- Replies: 1
- Forum: Atomic and Condensed Matter
-
C
Fix IF Conditions in VB Code DO Loop
Hey. This is what I have to do: Fix the IF conditions inside the DO loop to handle ALL possible combinations of first name and last name searches (it is missing at least one right now) and see if you can make the code more efficient. Dim searchFname As String, searchLname As String Type...- Calculus!
- Thread
- Code
- Replies: 4
- Forum: Programming and Computer Science
-
C
Is the Broken Code Related to UAC Settings in AppData Folder?
Broken code -- UAC related? Here's the code I'm having trouble with, cut down the relevant part: protected void ProcessFiles(string[] files) { if (File.Exists(outputFilename)) throw new Exception("Output file " + outputFilename + " already exists!"); if...- CRGreathouse
- Thread
- Broken Code
- Replies: 0
- Forum: Programming and Computer Science
-
D
MATLAB Need help with some matlab code - engineering project
This is some Matlab code that my group has been working on. None of us really code all that much, and have only had one year of Comp Sci. It doesn't help that this is all our our first times using Matlab, either. :/ The problem is calculating a value for a and aPrime. We're trying to use...- DyslexicHobo
- Thread
- Code Engineering Matlab Matlab code Project
- Replies: 4
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
Crack this code if you can* Challenging
9 30 20 39 59 50 79 73 88 95 104 131 132 135 144 150 166 185 198 190 218 215 232 235 241 269 265 270 300 305 313 325 338 348 355 373 I will not be posting the algorithm used to generate this coded message. Good Luck!- Mex2107
- Thread
- Code Crack
- Replies: 3
- Forum: General Discussion
-
G
LaTeX [Q]Why does latex code fail to post fomula now?
Before physics forum sever moved, latex code i wrote did well But at this time, all latex code i wrote fail mulfunctions. What happened? and How do i have to do?- good_phy
- Thread
- Code Latex
- Replies: 7
- Forum: MATLAB, Maple, Mathematica, LaTeX