Answered
R2024b Codegen runs out of memory. R2018a compiles to .mex and .C++ without issues.
Hi @Dr W Kurt, It is my understanding that you are able to generate the MEX files for your code. But when you are trying to gen...

1 year ago | 0

Answered
I have some code that compiles to .mex and to C++ fine in R2018a, but in R2024b, it errors after running out of memory.
Hi @Dr W Kurt, It is my understanding that you are able to generate the MEX files for your code. But when you are trying to gen...

1 year ago | 0

| accepted

Answered
Two Arduinos with Two Simulink Model
Hi @Min, It is my understanding that you are trying to connect the Arduino ‘Uno’ and ‘Due’ serially to send data from one to ot...

1 year ago | 1

| accepted

Answered
Recessionplot not including 2020
Hi @mpho bosupeng, It is my understanding that you are plotting recessions using the ‘recessionplot’ in MATLAB R2021a, but it i...

1 year ago | 1

| accepted

Answered
Problems with reward generation in reinforcement learning simulation
Hi @Aaron Bramhasta, It is my understanding that you are trying to train RL model, but the reward function is not updating as e...

1 year ago | 0

Answered
How to combine two algorithms in one by using optimization results as input for second optimization
Hi @YASSER, It is my understanding that you are trying to formulate your problem into two sequential Optimizations problems. ...

1 year ago | 0

Answered
Avoid Obstacles with DDPG Error in raycastInternal.m (line 102)
Hi @Omar Ramadan, It is my understanding that you are trying to run the example ‘robotics/AvoidObstaclesUsingReinforcementLearn...

1 year ago | 0

Answered
Global Fit larger dataset to nonlinear equation with one global variable , and N number of variables, better objective function needed
Hi @Velencia, To fit a large dataset to a non-linear equation, you can use the ‘lsqcurvefit’ function. It solves nonlinear curv...

1 year ago | 0

Answered
I need help on how to use continous time markov chain to find the recurrent areas in the forex market
Hi @marvin foo, You can refer to this research article discussing the theoretical calculations and methodological approach that...

1 year ago | 0

Answered
How to use LSTM to solve seq2seq problem in MATLAB?
Hi @YP, In Deep Learning models, ‘cell-arrays’ are used to manage input and output data. You can also use ‘dlarray’ object in...

1 year ago | 1

Answered
Update the custom storage class for package without restarting Matlab
Hi @Salvatore Maria Saccone, You can use the ‘Custom Storage Class Designer’ to create or edit storage classes that a data clas...

1 year ago | 0

Answered
strange bndyield function result vs excel
Hi @shlomo Kugler, The differences while calculating the bond yields are occurring due to mismatched parameters, especially ‘Ba...

1 year ago | 0

Answered
Error : Network: Incompatible input and output sequence lengths. The network must return sequences with the same length as the input data or data without a time dimension.
Hi @Koo, It is my understanding that you are trying to classify the motor fault conditions for every timesteps by modelling the...

1 year ago | 0

Answered
How to use a custom simscape battery model block in battery builder app?
Hi @Soham Dange, You can use the “buildBattery” function to build custom library blocks from battery objects. It generates one ...

1 year ago | 1

Answered
Python process terminated unexpectedly after snapping 100-150 photos
Hi @Bera, There may be a runtime dependency conflict between MATLAB and Python. In general, using out-of-process execution mod...

1 year ago | 0

Answered
FILTER BIG DATA SET
Hi @SAPTORSHEE KANTO, To filter your dataset in MATLAB based on specific entries in a particular variable, you can use logical ...

1 year ago | 1

Answered
How do I use quantization to achieve the impressionist of my picture?
Hi @Kevin, You can use the ‘imquantize’ function in MATLAB to quantize any image using specified quantization levels and output...

1 year ago | 0

Answered
How to change Fontcolor xticks and yticks
Hi @Arkadiusz Charuk, You can retrieve the X and Y tick-labels from the plot and customize them, such as changing font-colour, ...

1 year ago | 0

Answered
How do I run static analysis on custom classes?
Hi @Benjamin Cerjan, When you are typing in the MATLAB Editor, there are handy suggestions pop-up for objects, functions, varia...

1 year ago | 0

Answered
MISO rate Vs. MIMO rate in Rayleigh fading
Hi @ohood, When analysing the rate differences of wireless communication systems in Rayleigh fading environments, we need to co...

1 year ago | 0

Answered
Implementing Transfer Function In Simulink.
Hi @ImNotMalek, To implement a time-varying transfer function in Simulink using signals and blocks, you can follow these steps:...

1 year ago | 0

Answered
Variable Window Not Updating Automatically when code is executed
Hi @Cody Brown The MATLAB "Variables" window updates its contents whenever a script or function has finished executing, rather ...

1 year ago | 0

Answered
How can I use the Deep Neural Network function built by COMSOL?
Hi @hjxiang It seems like you're trying to integrate COMSOL functions into MATLAB. There have been many related discussions i...

1 year ago | 0

Answered
how to run two scripts (one MEX function and one that calls upon a digital library) in parallel using parfor and parallel pools?
Hi @Luiz To resolve the error, I've modularized the code into two functions and converted one into a MEX function. I've also ad...

1 year ago | 0

Answered
Code for GARCH-ARIMA
Hi Seemant, You can perform the GARCH-ARIMA modelling in MATLAB, using the Econometric Toolbox. The ‘arima’ function in MATLAB ...

1 year ago | 0

Answered
When an agent makes more than one action sometimes these actions have opposite effects rather than coordinating effects
Hi Huixin, These kinds of challenges are common in reinforcement learning applications. You can address the issues you face wit...

1 year ago | 0

| accepted

Answered
ARIMA in Econometric Modeler
Hi Alex, I fit your data and got an almost similar constant estimate of around 0.15. The difference in coeffic...

1 year ago | 0

Answered
MEX function is slower than matlab script. Profiling possiblilites?
Hi Jan, You can use the Profiler with the ‘-profile’ flag to track execution time of the MATLAB function in its corresponding M...

1 year ago | 0

Answered
Pixhawk 6c : monitor and tune error when using telemtry
Hi, This error has been extensively discussed in the community, and there have been numerous proposed workarounds. You may go ...

1 year ago | 0

Answered
The problem occurred when creating an accelerated MEX file for the model 'ActiveSupport_3DFIG'.
Hi Zhurui, I was also facing a similar error message when compiling my model. After thoroughly reviewing the documentation, I ...

1 year ago | 0

Load more