제출됨


Total Field Scattered Field source with Perfectly Matched Layer Boundaries
In this code, TF/SF source is implemented for 1D FDTD source along with PML Boundary condition.

8년 초과 전 | 다운로드 수: 3 |

Thumbnail

제출됨


Optical Spectra of Dielectric slab using 1D Finite Difference Time Domain (FDTD).
This code calculates Transmission and Reflection spectra of Etalon slab using FDTD method.

8년 초과 전 | 다운로드 수: 2 |

Thumbnail

제출됨


1D Finite Difference Time Domain simulation (FDTD) with Perfectly Matched Layer (PML)
FDTD is illustrated with PML absorbing boundary condition at both ends of 1D space grid.

8년 초과 전 | 다운로드 수: 6 |

Thumbnail

제출됨


Optical Linear Absorption of a Two Level System
In this code, differential equation for optical polarization is solved.

8년 초과 전 | 다운로드 수: 2 |

Thumbnail

제출됨


Band structure of GaAs using Parabolic Approximation
Band structure of GaAs using Parabolic Approximation

8년 초과 전 | 다운로드 수: 2 |

Thumbnail

제출됨


Fourier transform DFT for selected range of frequencies
For selected frequency range, DFT is computed.

8년 초과 전 | 다운로드 수: 1 |

Thumbnail

제출됨


Numerical Solution to Optical Bloch Equation for a two level atom using Runge Kutta method
Numerical Solution to Optical Bloch Equation for a two level atom using Runge Kutta method

8년 초과 전 | 다운로드 수: 10 |

Thumbnail

제출됨


Simulation of Rabi Flopping in a Two Level Atom using Finite Difference Method
Rabi flopping for a two level quantum system is simulated for different detuning frequencies.

거의 9년 전 | 다운로드 수: 5 |

Thumbnail

제출됨


Excited States of Quantum Harmonic Oscillator using Raising Operator
Calculating Excited States of Quantum Harmonic Oscillator using Raising Operator.

거의 9년 전 | 다운로드 수: 7 |

Thumbnail

문제를 풀었습니다


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

거의 9년 전

문제를 풀었습니다


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

대략 9년 전

문제를 풀었습니다


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

대략 9년 전

문제를 풀었습니다


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

대략 9년 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

대략 9년 전

문제를 풀었습니다


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

대략 9년 전

문제를 풀었습니다


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

대략 9년 전

문제를 풀었습니다


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

대략 9년 전

문제를 풀었습니다


Convert a vector into a number
This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

대략 9년 전

문제를 풀었습니다


Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component. Examp...

대략 9년 전

문제를 풀었습니다


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

대략 9년 전

문제를 풀었습니다


Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

대략 9년 전

문제를 풀었습니다


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

대략 9년 전

문제를 풀었습니다


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

대략 9년 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

대략 9년 전

문제를 풀었습니다


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

대략 9년 전

문제를 풀었습니다


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

대략 9년 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

대략 9년 전

제출됨


Numerical Solution of 1D Time Independent Schrodinger Equation using Finite Difference Method.
Finite Difference scheme is applied to Time Independent Schrodinger Equation.

대략 9년 전 | 다운로드 수: 24 |

Thumbnail

제출됨


Numerical Solution of Euler's Equation for Sod Shock Tube using Richtmyer method.
Euler's equation for Sod Shock Tube problem is numerically solved using two step Richtmyer method.

9년 초과 전 | 다운로드 수: 4 |

Thumbnail

제출됨


Blackbody Radiation Spectrum from Wien's Law and Planck's law
This code calculates blackbody radiation spectrum at different temperatures

9년 초과 전 | 다운로드 수: 39 |

Thumbnail

더 보기