Question: Write a Matlab program to draw a Bzier Curve. Input: a matrix of given control points. 1. calculate the dimension of the points (plan curve

Write a Matlab program to draw a Bzier Curve. Input: a matrix of given control points. 1. calculate the dimension of the points (plan curve or spatial curve). 2. calculate the number of control points, if the number of control points is less than 3, return. 3. Calculate the Bernstein Basis Function. 4. Draw a Bzier curve formed by the control points. Draw the curve and control polygon using Matlab function plot30). 5. (Think about how to draw the curve in Matlab? If drawing the curve using Matlab function ezploto, how to change the program? Try this method optionally)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
