photo

David


Last seen: 7 månader ago Active since 2023

Followers: 0   Following: 0

Statistics

  • Thankful Level 2

View badges

Feeds

View by

Question


How to use a global variable when using ode45()?
I have a function named "my_carcontrol3" that gets passed the time "tau" in the ode45() function call. My idea was to use a glob...

12 månader ago | 2 answers | 0

2

answers

Question


If v=-10:1:10, why isn't the v>0 case triggered?
I am trying to understand if I call my function: v=-10:0.1:10;%voltage across transistor i = logic(v,25) And my function is:...

ungefär ett år ago | 1 answer | 0

1

answer

Question


How to keep track of accumulated error for integral term in a PID controller function?
This is my PI controller function: function [ control ] = my_fastcontrol(t, v) Kp = 20; K_i = 10; ...

ungefär ett år ago | 1 answer | 1

1

answer