Questions tagged [matlab]

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
125 views

Yaw drift when implementing AHRS filter fusion

I am using the Matlab AHRS filter fusion algorithm with an InvenSense ICM-20948 to determine object orientation. I seem to be obtaining reasonable results however I am getting what appears to be ...
4
votes
2answers
384 views

Lego Mindstorms EV3 gyro sensor offset fix

I am currently working on a project for a Lego Mindstorms EV3 autopilot using Matlab/Simulink. Basically, I am using a closed loop control system with a PID controller for the control of the control ...
1
vote
1answer
58 views

Regarding kalman filter implementation

I think I might have originally posted this in the wrong stack exchange forum, link. I think this might be the right place, I am not sure if posting again is considered "bad style", I apologize if ...
1
vote
0answers
36 views

Finding transfer function from bode plot

I try to estimate a system transfer function by hand calculation from a bode plot data but I could not succeed yet and I need someone help. it will be appreciated if anyone explains or refer me to a ...
1
vote
0answers
243 views

Maintaining scale factor for essential matrix

I want to recover the trajectory of a vehicle using a monocular camera via the computation of the essential matrix between t-1 and ...
1
vote
2answers
281 views

Error in simmechanics matlab while doing inverse dynamics using custom joint

I am doing inverse dynamics in Matlab simmechanics in which position and orientation will be input to the end effector. But it shows error as below. Error originates in Mechanical block rob33/...
1
vote
0answers
500 views

Matlab Simulink showing following errror: kinematic constraints cannot be maintained

I'm using simulink to get joints torque by giving motion input. I create very simple CAD model in solidworks to learn simulink. Simulink model is showing in below figure. During update it shows no ...
1
vote
0answers
136 views

Use MATLAB Compiler SDK generated package in KUKA Sunrise.Workbench

The MATLAB Compiler SDK allows to create a wrapper for a MATLAB function which can be accessed by Java software. Based on my understanding, KUKA's Sunrise.Workbench IDE uses most of the standard Java ...
1
vote
0answers
77 views

how to actuate pneumatic muscle by the signals received by emg sensors interfaced with raspberry pi?

My aim is to actuate a pneumatic muscle based on signals received by EMG sensors placed on the biceps. Is there any Matlab code which can process the received EMG signals and convert them into any ...
0
votes
0answers
16 views

why cumtrapz integrator always return zero?

I have been trying to use cumtrapz function to integrate velocity at a given time interval to get the position. However, it keeps giving me zero position at the beginning and end of the iteration, ...
0
votes
0answers
60 views

Compensator design

I got a plant $G(s)=\left(0.13s+1\right)/s^2$ to design a compensator which provides below demands: Settling time : max 2s Overshoot : max %35 Gain margin : min 10 dB Phase margin : min 30 deg ...
0
votes
0answers
30 views

Using CTRV UKF, to predict yaw and yaw_rate without measuring it

I would like to know does it makes sense to use CTRV (constant turn rate & velocity) motion model [x, y, v, yaw, yaw_rate] with Unscented Kalman filter if I have only measurements of the position ...
0
votes
0answers
36 views

Why my kinematic diagram is not giving the same position and orientation while forward kinematics test?

I am sharing my matlab code so that you can also generate the simulation . ...
0
votes
0answers
15 views

Using Simulink Interpreted MATLab fcn for robot dynamics using Robotics Toolbox

I am using Interpreted MATLab fcn to compute forward dynamics. I am using code of accel in which I have added my robot model in the beginning, making the accel function: ...
0
votes
0answers
18 views

3 DOF robot torque not converging Robotics Toolbox

I have a Simulink model in which desired torque is [0;0;0] and current torque should converge to zeros too. But I am getting oscillatory torque as output. This is the block diagram of what I am ...
0
votes
1answer
30 views

How do you control the end effector of a rigid body system using keyboard keys?

So in my lab, I am to create a rigid body tree robot that has an end effector that can be teleoperated by keyboard commands. I found a function called waitforbuttonpress that allowed me to give the ...
0
votes
1answer
107 views

Matlab Code for Lynx Robot

In this section, you will need to write a function lynx_fk which returns the positions of 10 points along the robot arm as defined later, given the joint angles of the robot. For this question, ...
0
votes
0answers
14 views

Information filter sensor fusion

I am struggling with a basic implementation of the information filter. I have the equivalent Kalman filter working. The information filter appears to be harder to debug. This is mostly because we ...
0
votes
0answers
30 views

How to add some more feature for this simulink model

After some research Robotic hand simulation in MatLab? After some motivation, I have tried to go inside Matlab Simulink and was able to do this :- https://drive.google.com/open?id=...
0
votes
0answers
33 views

How can I import openmv camera feed in MATLAB

I am planning to use openmv camera with wifi shield for my project. I want to import the video feed to MATLAB for further processing. As per my preliminary search it is extremely difficult and ...
0
votes
0answers
108 views

Pole placement gains tuning

given my control system I have found the region of the complex space that satisfies my specifications, determining poles position in 0.5 +- 0.2i. Now I want to find the gains that fix the desider ...
0
votes
1answer
62 views

How can i convert Torque input into PWM signal?

I am working on a project in which i have a robot working with stepper motors. I wish to control this robot with simulink. How can i convert the input( Analog sin input ) into the PWM that can be used ...