Urgent Matlab task to be handled by tonight

Lukket Opslået Dec 18, 2015 Betalt ved levering
Lukket

I want to do the task depends on 2d

You should aim to develop a 2D Ray Tracer in MATLAB. Imagine you are building a virtual optical experiment platform where users are allowed to place multiple optical elements and a light source, and the system will calculate and visualise the path of light. To make the problem more tractable, we make the following assumptions:

• The platform is based on a 2D setup. • There is only one directional light source. Users should be able to place optical elements they choose. However, there is no pre-defined user interface you are asked to follow. You are com- pletely free to come up with your own, possibly unique, solutions. The following basic requirements should be met in order to gain average to good marks:

• You should be able to allow users to add/remove optical elements they choose and place them in the 2D plane. The basic optical elements your system should support include

– Line segment mirrors: which reflect all the light and in the shape of a line segment (a straight line restricted to two end points). – Circle mirrors: which reflect all the light and in the shape of a circle.

You should allow users to specify the properties of optical elements to customise them (for example, end points of line segment mirrors). • You should allow users to specify the light source, including the location and the direction. • You should be able to work out and visualise the path of light, starting from the light source. You may assume that the energy of light reduces by 10% after reflected by each mirror, and stop tracing the path of light when the energy drops below 10% of the original energy. • You should allow users to save the experiment setup and load it back later on. The file format is up to you to decide.

4

• You should develop an appropriate GUI (using MATLAB guide) for your application.

In order to gain higher marks you need to add some novel extensions or additional features. You need only provide three further di↵erent novel extensions (such as those suggested overleaf). There are endless possibilities here and you are encouraged to think of your own extensions. Here are a few suggestions:

• You could support (semi-)transparent optical elements and take refrac- tion into account (in addition to reflection). • You could support optical elements of more complicated shapes. • You could make extra e↵ort to speed up the computation. • Advanced GUI layout/elements to control or edit the experiment setup.

Demonstrating your system

You will be required to demonstrate your final system in order to verify that the programs work according to specification. The tutor will sign o↵your system via Grade Centre in Learning Central. The tutor is only guaranteed to be available to sign at CM2104 Laboratory Sessions. At the demo you will need to show your MATLAB code running and satisfying the above basic requirements. Clearly if you have anyadditional features in your system, it will be appropriate to demonstrate how these work and that they function accordingly.

5

Figure 1: Reflection of light.

Appendix

The light reflection satisfies the following rule (see Fig. 1). Assuming PO is the direction of light hitting the mirror at O and OQ is the reflective light, it satisfies that ✓r = ✓i. This applies to mirrors of other shapes, where the local tangent (and normal direction) at O will be used. You may assume that the energy of light reduces by 10% after reflected by each mirror, and stop tracing the path of light when the energy drops below 10% of the original energy.

Algoritme Spiludvikling Matematik Matlab and Mathematica Research

Projekt ID: #9147653

Om projektet

3 bud Remote projekt Aktiv Jan 24, 2016

3 freelancere byder i gennemsnit $17/timen for dette job

Softeria

A proposal has not yet been provided

$42 USD / time
(160 bedømmelser)
0.0
elmadaziz

Hi, Im Aziz from Morroco, im engineer of Modelisation Function véhicule in Matlab/Simulink, I have 4 years experiences in Matlab, Im very interested by this project.

$5 USD / time
(0 bedømmelser)
0.0