What is Code: Definition and 958 Discussions

In communications and information processing, code is a system of rules to convert information—such as a letter, word, sound, image, or gesture—into another form, sometimes shortened or secret, for communication through a communication channel or storage in a storage medium. An early example is an invention of language, which enabled a person, through speech, to communicate what they thought, saw, heard, or felt to others. But speech limits the range of communication to the distance a voice can carry and limits the audience to those present when the speech is uttered. The invention of writing, which converted spoken language into visual symbols, extended the range of communication across space and time.
The process of encoding converts information from a source into symbols for communication or storage. Decoding is the reverse process, converting code symbols back into a form that the recipient understands, such as English or/and Spanish.
One reason for coding is to enable communication in places where ordinary plain language, spoken or written, is difficult or impossible. For example, semaphore, where the configuration of flags held by a signaler or the arms of a semaphore tower encodes parts of the message, typically individual letters, and numbers. Another person standing a great distance away can interpret the flags and reproduce the words sent.

View More On Wikipedia.org
  1. 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 ...
  2. 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.
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. Angelos K

    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...
  9. 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...
  10. 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...
  11. M

    Where can i find best and big source code

    where can i find best and big library source code
  12. 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...
  13. 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...
  14. 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...
  15. 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?
  16. 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...
  17. 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.
  18. 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...
  19. 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...
  20. 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...
  21. 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...
  22. R

    Fortran (3I3,F9.6) Fortran source code

    what does this mean..i saw this in Fortran source code! (3I3,F9.6) thanks.
  23. 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?
  24. Saladsamurai

    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...
  25. 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...
  26. R

    Java Java Code for Insult Generator

    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...
  27. S

    Seg fault in Sparse Matrix Code (due in 2.5 hours)

    i just ran it using a debugger and this is what it had: #0 0x0804939e in SparseNode::getColID (this=0x0) at sparsematrix.h:130 #1 0x08048a2d in SparseMatrix::insertElement (this=0xbfe5ef10, row=1, col=2, elem=2) at sparsematrix.cpp:72 #2 0x080491f3 in main () at sparsematrix.cpp:378...
  28. 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...
  29. 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'...
  30. moe darklight

    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...
  31. Useful nucleus

    Compiling a code to run parallel

    I'm working with a Fortran code which I run on a Linux cluster. I'm able to compile it such that it works fine on one CPU, but I would like to run it parallel . The code manual mention the following as an instruction to compile it to work in parallel The get machine file is just a long if...
  32. 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...
  33. 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...
  34. 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...
  35. J

    How to Implement Traceback Functionality in Java Algorithm?

    i have the code for the algorithm. all i need now is the when traceback button is pressed,traceback can be done and shown. anyone can help? import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Dynamictraceback extends JApplet implements ActionListener {...
  36. 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...
  37. 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: _____ (?)
  38. Monique

    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...
  39. 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
  40. 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...
  41. 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...
  42. M

    MATLAB Request for help for Finite Difference code for Matlab

    Hi, I have a project for heat transfer, I know what I want to do but I don't know how to do it on Matlab. My assignment is attachment 1 - project.pdf The first part I have done (attachment 2 - computer project.pdf) I know I should be using the Matrix Inversion Method, but as I need...
  43. 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...
  44. 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...
  45. 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...
  46. 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!
  47. 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?
  48. T

    Understanding Output for Malloc and Calloc Pointers?

    #include <stdio.h> #include <stdlib.h> /* required for the malloc, calloc and free functions */ int main() { float *calloc1, *calloc2, *malloc1, *malloc2; int i; calloc1 = calloc(3, sizeof(float)); /* might need to cast */ calloc2 = calloc(3, sizeof(float)); malloc1 =...
  49. T

    Where is my mistake following this code

    next to every line i commented on what i think it does where is my mistake in understanding of changing the index of the pointer ?? #include <stdio.h> int main() { int *ptr; int arrayInts[10] = {1,2,3,4,5,6,7,8,9,10}; ptr = arrayInts...
  50. M

    MATLAB Conditional statement problem in ODE code in Matlab

    I am new in MATLAB and recently, I have tried coding in matlab. So far, I have been getting error msg "Warning: Failure at t=2.859413e+002. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (1.015868e-012) at time t." I have referred...
Back
Top