필터 지우기
필터 지우기

what is the difference between mux and vector concatenate?

조회 수: 66 (최근 30일)
hadi
hadi 2011년 11월 10일
I want to input the joint angle, joint angular velocity and joint angular acceleration to the joint actuator, how could I specify each signals for each of them?!
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 11월 10일
hadi: Please fix the title of your question. It seems unrelated to the body. If there are related, please describe how.

댓글을 달려면 로그인하십시오.

답변 (1개)

Guy Rouleau
Guy Rouleau 2011년 11월 11일
Look at the section "Stabilizing Numerical Derivatives in Actuation Signals" in this page to see how to compute velocity and acceleration based on position
Then combine the into a vector using either the vector concatenate
or the Mux:
The difference between Vector Concatenate and Mux is in the way the memory is handled under the hood. VC copies the element into a contiguous piece of memory, while mux is virtual, it is only a visual representation, it does not copy the components into one contiguous piece of memory.
In your case, if you care only about simulation you will not see a difference.

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by