/cadesign

AML710

Primary LanguageMatlab

cadesign : AML710 Assignments

Visit GitHub Repository of code!

How to run:

  1. Execute run.m in matlab.
  2. Write functions to run the code for individual questions. Instructions are below.

Class Assignments:

Q1: Square Root spiral

Execute: square_root_spiral(n) where n is any integer

Eg: square_root_spiral(5)

Q2: Fibonacci Spiral

Execute: fibo(n) where n is any integer

Eg: fibo(5)

Q3: Spirals made of line segments

Execute: lineSegmentSpirals(n) where n is any integer

Eg: lineSegmentSpirals(5)

Q4: Fractals

Execute: fractals(n) where n is any integer

Eg: fractals(6)

Programming Assignments:

Q1: 2D + 3D Transformations and Projections

Example 1: Square

Execute: square

Example 2: Cube

Execute: cube

Q2: Plain Curves

Example 1: Cirle

Execute: dynamicplot

Example 2: Ellipse

Execute: ellipseGUI

Q3: Space Curves

Example 1: Cylindrical Helix

Execute: cylinderical_helixGUI

Example 2: Conical Helix

Execute: conical_helixGUI

Q4: Synthetic Curves

Example 1: Cubic spline

Execute: cubic_gui

Example 2: Bezier curve with control polygon

Execute: bezier_gui

Q5: Surfaces

Example 1: Quadric surfaces

Execute: mygui

Example 2: Bezier surface

Execute: bezierSurfaceGUI

All commands example

square_root_spiral(5)

fibo(5)

lineSegmentSpirals(5)

fractals(6)

square

cube

dynamicplot

ellipseGUI

cylinderical_helixGUI

conical_helixGUI

cubic_gui

bezier_gui

mygui

bezierSurfaceGUI