Answered
How to generate a parallel input interface (or vector port) using HDL Coder
Hi @KH, What you're seeing is expected behavior, and there's a setting that controls it, though it works differently dependin...

4 months ago | 0

Answered
Draw a circle at the end of a quiver3 line
Hi @Ethan, Following up with a tested solution to my own question, in case it helps. To recap what I was after, I wanted a...

5 months ago | 0

| accepted

Answered
Custom Deep Learning Layer with different input and output format occurs error
Hi @Chuguang Pan, As mentioned in the comments, this turned out to be a bug in checkLayer on R2025a, confirmed by MathWorks s...

5 months ago | 0

| accepted

Answered
Replicating PCM System in Simulink: Issues with Signal Dimensions and Missing 'To Frame' Block.
Hi @Abdul, I think I found the real culprit behind the flat/zero scope output, and it's probably not the A-law or quantizer s...

5 months ago | 0

Answered
Sonar image formation from Phased Array Systems toolbox
Hi @Michael, Got a working template for you, plus a bit more detail than I first gave. Attached: 1. forward_look_sonar_scan.m ...

5 months ago | 0

Answered
is it easy way to use robust fuzzy logic controller for AGV
Hi @Medihiya, Yes,definitely doable — people have been using fuzzy controllers for this kind of thing for a while, and curved...

5 months ago | 1

Answered
propagateOrbit function fails on Epoch field format
Hi @Kurt, Wanted to close the loop on the Excel/datetime thing properly before saying anything definitive. Ran a couple of...

5 months ago | 0

Answered
How to use tleread function on TLE file with alpha-5 satellite numbers
Hi @Kurt, Short answer: tleread() doesn't support Alpha-5 catalog numbers right now — it's built to expect the old-style fixe...

5 months ago | 0

| accepted

Answered
PMSM SMO rotor position calculation in Simulink
Hi @Zhiyu, I looked into this a bit and I think I found the source of the confusion. Based on the way the block is labeled (...

5 months ago | 0

Answered
Adding a dummy non-learning, non-controlling agent halves the convergence speed of the main agent in MATLAB RL Toolbox
Hi @zhenpeng, Really solid ablation you've done here. I went through MathWorks' docs on train, rlMultiAgentTrainingOptions, a...

5 months ago | 0

Answered
Confusion about ROS2 parameters in MATLAB Coder
Hi @Sönke, This is a real, documented limitation — not something wrong with your code. The getParameter reference page state...

5 months ago | 0

Answered
How to simulate wheel-rail contact on a curve with Simscape Multibody?
Hi @Rafael, After digging through documentation and a couple of papers on this exact problem, here's what I found — and yes, ...

5 months ago | 1

Answered
Compatibility of Genesys ZU (Zynq UltraScale+ MPSoC) with Simulink HDL Workflow
Hi @JACOB ETOJU, You are right that the Genesys ZU is not on the official supported board list for HDL Coder. Short answer: i...

5 months ago | 0

Answered
i have coupled odes with slip boundary conditions.
Hi @Sunitha k, Took a closer look at your code and got it running end to end, so here's what was going on and where it landed. ...

5 months ago | 0

| accepted

Answered
fitting is not working
Hi @Ehtisham, Just want to close the loop on this one. Walter was right that the bounds had an extra entry that wasn't even bei...

5 months ago | 0

Answered
How to change the grid color in function heatmap
Hi @涛, Ran a quick test in MATLAB to settle this one way or the other, since dpb and Lucas already had the right instincts an...

5 months ago | 0

Answered
HDL Optimized Cosine/Sine block: unexpected FPGA resource utilization
Hi @Mehdi, Good questions, and no, you haven't found a bug — this is actually expected behavior once you know what's happenin...

5 months ago | 0

Answered
CheckCollision sometimes misses intersections between the robot arm and the collision cylinders
Hi @Urinder, Your robot already ships with collision meshes built in, so that's not the gap. Looking at your grid math instead:...

5 months ago | 0

Answered
How do I differentiate between wave patterns in multiple signals?
Hi @Sridutt, Great question! I ran into the same problem and worked out a solution that does exactly what you need — detectin...

5 months ago | 0

Answered
rotor side and control of DFIG based wind energy conversion system
Hi @Fatima zohra, Thankyou for posting your question on MATLAB Central. I appreciate your interest in improving the control p...

7 months ago | 0

Answered
comm.SDRuReceiver on X310 throws receiveData:ErrLateCommand
Hi @Hepzibah, Thanks for raising this. I looked into the ErrLateCommand error you are seeing with comm.SDRuReceiver on the X3...

7 months ago | 0

Answered
Why does fitlm give different results according to if I remove or I don't remove NaNs in the variables arrays?
Hi @Manuela, I wrote a MATLAB script (fitlm_nan_analysis.m) that walks through your exact dataset and explains why you're get...

7 months ago | 1

| accepted

Answered
Error converting python DataFrame to Table
Hi @David, Thanks for writing in — you've actually already diagnosed this correctly, so let me just confirm it and get you mo...

8 months ago | 1

| accepted

Answered
Integrating MMC in IEEE 9 bus system
Hi @Mojtaba, I had a look at both examples you mentioned and I think I can see exactly where you're getting stuck — so hopefu...

8 months ago | 0

Answered
Airplance Guidance System in Simulink
Hi @Olga, Thank you for posting your question on MATLAB Central — great to see you working on a flight simulator! I'm happy t...

8 months ago | 0

| accepted

Answered
ParallelAssembly: Define the cell gap in x and y direction differently?
Hi @Fabian, Thanks for your question — I looked into this and wanted to share what I found. Unfortunately, the short answe...

8 months ago | 0

Answered
Simple battery inverter model in Simscape Electrical
Hi @Mikel, Saw your post and figured I'd put together everything I found so you don't have to chase it down yourself. Firs...

8 months ago | 0

| accepted

Solved


Find the stride of the longest skip sequence
We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

8 months ago

Solved


Sum the Infinite Series
Given that 0 < x and x < 2*pi where x is in radians, write a function [c,s] = infinite_series(x); that returns with the...

8 months ago

Solved


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

9 months ago

Load more