Part I: Initial Coordinates. Initialize the X and Y Cartesian coordinates for 25 aragon atoms into a 2D grid using two arrays named 'x' and 'y'. The spacing between atomic centers should be exactly 3.8 Angstroms along both the X- and Y-axes. Plot the result using the Matlab scatter function:
Added by Brenda H.
Close
Step 1
First, create two arrays named 'x' and 'y' to store the X and Y coordinates of the argon atoms. Initialize them as empty arrays. Show more…
Show all steps
Your feedback will help us improve your experience
Danielle Ashley and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
In MATLAB, define a zero-filled 256x256 matrix named Bars by using the command "zeros". Create 2 vertical bars, centered on the image, of width 3 and height 40, separated from each other by 8 pixels, by setting the appropriate matrix elements to the value 1. Display the image Bars. Your matrix can be displayed as a 2D grayscale image by using the commands "imagesc" and "colormap". Make the image square by using the command "axis square". Pick a horizontal line through the center of the test pattern. Plot the intensity profile of this line. Label the x and y axes appropriately. To accurately reconstruct this image by sampling—ignoring edge effects—how often (for every how many pixels) must you sample (hint: ∆x = 3 pixels)? What is the fundamental principle behind sampling?
Akash M.
MATLAB HW: Create a 3D Shepp-Logan phantom by using the given MATLAB function phantom3D. Take the 3D Radon transform which projects the 3D phantom through the θ angle in the range of θ = [0, 180]. Use nested loops to evaluate the Radon transform in a volumetric approach. Perform a 2D rotation function, i.e. imrotate, on each slice. Apply the 3D back projection algorithm to the 3D Radon transform matrix.
Sri K.
MATLAB code for 1D Ising Model using Metropolis-Hastings algorithm that estimates E(H) = log(z) With 10000 samples. Do this for using scatter plot: β = {0, 0.05, 0.1, 2.95, 3} and plot with respect to
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD