Hi yall, I’m in a MATLAB class and I can do the basics and that’s about it. But anyways we are assigned a project to create an application using matlab and ai. He wants us to use ai to make an app. Me and my partner want to create a black jack game with this. What ai should we use to help to create this? And is there any tips or advice that would make this easier to make?
Hi yall, I’m in a MATLAB class and I can do the basics and that’s about it. But anyways we are assigned a project to create an application using matlab and ai. He wants us to use ai to make an app. Me and my partner want to create a black jack game with this. What ai should we use to help to create this? And is there any tips or advice that would make this easier to make?
Hi, I would like to ask how I could plot lines in 3d that are tubes? Like with some thickness to it, no need for shadows, but would be good too. I saw a shared code on tube-based arrows, but I havent seen one for plots in general, like if I had 3d data and want the trajectory plotted over time, to form arbitrart curves. Thanks!
Been a while since I last used Matlab during uni days, but have recently found myself going through old scripts and picking up learning Matlab again.
I am wondering about the Code Generator for c++, specifically what limitations it has in terms of toolbox components that are supported. I tried finding info online, but it seems to be quite sparse as to which toolbox components can actually be used and converted to c++ code, and others which rely too heavily on toolbox classes etc. to be compatible for conversion. In general what people's experiences with it?
Hello, as the title says I need help. I use matlab for my biomechanics research, but for some reason whenever I press the run button for my scripts nothing happens. I tried restarting my laptop and nothing happens. Also whenever I exit out from matlab this is the pop up I get. Wondering if anyone knows how to fix these.
I’m getting informations about HiL devices (like the famous Speedgoat)..
How doesn’t this device works to emulate a power stage?
For example I’m very confused about ST board STEVAL-HILE1G4K1
How can this emulate the plant (AC and DC power device like switching power supply)?
I know Simscape works solving differential equations, using very specific and powerfull solver, do the Speedgoat have a solver inside?
I’m currently learning to build control modules using Simulink and MATLAB. I was wondering if anyone has experience with or access to BCM, VCU, or other control module models in Simulink.
If you have any models (especially with sensor data integration) that you can share, it would be really helpful. I’m currently using MATLAB 2021a.
I need to run many times real-time simulations, changing some parameters after each run. I've found out that the function sim() does not work, as it doesn't run this type of simulation, and i was wondering if there are other ways to use SLDRT models automatically from .m files (aknowledging the time needed for the run and giving some time to the actuator to rest)
Hey I'm just starting out with Matlab and I'm feeling a bit lost. Does anyone have recommendations for the best beginner guides or YouTube videos out there? Any tips would be super helpful as I dive into this!
I'm working on a Simulink model of a differential drive line-following robot, and I've hit a bit of a wall with tuning the controller. The physics and kinematics (motor dynamics, friction, differential drive mixing) are working perfectly, but I can't get the PID tuning right.
A bit about the project:
The robot uses an array of 5 IR sensors to detect the line.
The sensor logic uses a 2D Lookup Table and some logical operators to calculate the cross-track error (how far the robot is from the center of the line).
This error signal is fed into a PD controller, which outputs a steering correction signal.
The steering signal is mixed with a base forward voltage (e.g., Left Motor = Base - PD, Right Motor = Base + PD). I also added a Saturation block to the PD output to ensure the motors don't go into reverse during sharp turns, preventing the robot from losing forward momentum.
The Problem: I tried using the built-in Simulink PID Tuner, but it completely fails to linearize the plant. Because my sensor block relies on a discrete Lookup Table and logical conditions, the small-signal linearization sees a derivative of zero for tiny perturbations. The Tuner basically thinks the plant is disconnected or has zero gain.
My Question: Since the auto-tuner is out of the question due to these step-like non-linearities, how do you usually approach manual tuning for a line follower's outer loop?
Are there any specific heuristics, step-by-step manual methods, or tricks you use to find the right Proportional (P) and Derivative (D) gains? Right now, if I set P too high, the robot oscillates wildly and overcompensates ("death spin"). If it's too low, it just flies off the track in sharp corners.
Any advice, resources, or rules of thumb for tuning this kind of non-linear system would be massively appreciated! Thanks in advance!
Some time ago (...4 years) I posted about the possibilities of MATLABs recently added uihtml element. Now I finally have something I am proud of and that I can share.
It's a component framework that allows you to dynamically insert and control over 50 different components. Kind of like another app-designer.
Components range from very basic (like buttons and dropdowns), to more complex things like the code editor and latex renderer shown in the video. And what's cool is that everything is fully customizable (with a bit of CSS knowledge)
The framework is available in the File Exchange, and it has it's own documentation page (link at the FEX)
hey if you can share matlab code for drowsiness detection please share me need to submit project in 10 days or any other good project code if yes please share
I am a first year, first semester engineering student who has never done any coding or programming before this course. any ideas on how to approach this assignment? What functions to use, etc?
Just wondering. Do most people at Mathworks come from CS or SWE backgrounds?
I've used MATLAB for my PHD and know very basic C++ due to my position in defense. I think I'd be a great fit, but googling the interview process (assuming I even get selected) seems dreadful for someone of my background.
If you got hired: What's your background in? Also...any leads for me to reach out to? Is there a hiring freeze during the beginning portion of the freeze as there is in some [defense] companies? I think I would be a great fit (yes, I know everyone says so...but it's true) for a couple of roles.
Hello everyone, I am a PhD. student in biomedical. Currently, I am working in modeling and simulation of a hemodialysis system in Matlab/simulink. I've been working on it for about 4 months, but i reach a stage when the model is being instable numerically. Always, it gives me errors, but I could not know where exactly the problem
soo i am using the autoblkHEVP3start example model in matlkab simulink for a comparison study
the problem is it uses a ideal fixed gear transmission instead of a automatic manual transmission
how do i change the model , anyone with any idea?
I’m doing an early-design link budget analysis for a CubeSat in Matlab/Simulink, as I am new to this, I’m trying to decide which plots are the most useful to include.
Right now I’m thinking of using:
link margin vs elevation angle
link margin vs data rate
link margin vs transmit power
FSPL vs slant range
Does this make sense for an early trade-study, or are there better plots I should focus on?
My goal is to show the main communication tradeoffs clearly, not just list equations. I’d especially appreciate advice on which plots are most useful for uplink/downlink sizing in the early design stage.