Question

s-function builder Simulink for Arduino

I am trying to build an s-function builder for the LSM6DS3 IMU with the following Arduino code: #include <Arduino_LSM6DS3.h> ...

1 year ago | 0 answers | 0

Question

Can't open demo?

I am trying to open this demo, but it says 'No system or file called 'pidtune_demo' found.' https://www.mathworks.com/help/sldo...

1 year ago | 1 answer | 0

Question

Arduino Nano 33 BLE to MATLAB

I am trying to connect my Arduino Nano 33 BLE via direct serial port. I have both MATLAB Support and Simulink Support installed...

1 year ago | 4 answers | 0

Question

How to take out units in a column

I am trying to do a 3D plot where I would plot the x and y coordinates over time, but when I try to use the plot3 command, it sa...

1 year ago | 1 answer | 0

Question

FMINUNC cannot continue help?

I am trying to learn how to use fminunc, but it gives the error "Failure in initial objective function evaluation. FMINUNC canno...

1 year ago | 1 answer | 0

Question

Normalizing in Shooting Method

I want my graph to look like this: The only things I can think of is that my error equation is incorrect or I am using the wr...

1 year ago | 1 answer | 0

Question

Building Sparse Matrix with Integer Errors

I am trying ot build a sparse matrix, but I keep receiving the error: Subscript indices must either be real positive integers or...

1 year ago | 1 answer | 0

Question

How to save function to calculate in an equation?

How do you save dydx so it's not a function and can be calculated in error? At the moment, I get the error: "Undefined operator...

1 year ago | 1 answer | 0

Question

How to save ode45 outputs in a loop?

I am trying to save my T and Y values in a loop, but it gives me the error "Subscripted assignment dimension mismatch." I origi...

1 year ago | 2 answers | 0

Question

Finding average step size and slope with ode45

I want to be able to calculate the average step size and slope for each value in the loop. I first want to plot the log values ...

1 year ago | 1 answer | 0

Question

How to use ode45 on a second-order ODE, but without a function file (just one script)?

I am given the following second-order ODE and I want to use ode45 and by not creating a function file. I am given the equat...

1 year ago | 1 answer | 0

Question

How do you find a sinusoidal curve on given data without using curve fit tool box?

I have a bunch of data points that outputs a graph similar to a sinusoidal, but I want to use matlab to create a single sinusoid...

3 years ago | 2 answers | 0