Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Take in a set of link vectors and augment each vector with a zero matrix, so that the elements of the output represent the start

Take in a set of link vectors and augment each vector with a zero matrix, so that the elements of the output represent the start and endpoints of the link in its local coordinates. Function C Reset MATLAB Documentation 1 function link_set planar_build_links (link_vectors)2% Take a set of link vectors and augment each with a zero vector to form 3% the base of the link 4%5% Input: 6%7% link_vectors: a 1xn cell array, each element of which is the vector 8% from the base to end of a link, as seen in its *localx coordinate 9% frame 10%11% Output: 12%13% link_set: a 1xn cell array, each element of which is a 2x2 matrix whose 14% columns are the [0;0] base of the link in its local frame and the link 15% vector (end of the link) in its local frame 161718% Use the 'cell' 'and 'size' commands to create an empty cell array the % same size as link_vectors, named 'link_set' 1929161718% Use the 'cell' 'and 'size' commands to create an empty cell array the % same size as link_vectors, named 'link_set' 1920212223% Loop over the vectors in link_vectors, constructing a matrix whose % first column is all zeros and whose second column is the link vector, % and saving this matrix in the corresponding column of link_set 242526 end Code to call your function e C Reset 1% This code augments two 2x1 vectors and one 3x1 vector with zero vectors 23 link_vectors ={[1;0],[1;0],[0;2;1]}; 45 link_set planar_build_links (link_vectors); 67 link_set{:}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

a. What department offers the course?

Answered: 1 week ago

Question

Why should an individual manager be interested in supporting HR?

Answered: 1 week ago