Réponse apportée
How to run simulink control and simscape model in different timming loops?
Hi, Integrating Simscape models with Simulink requires certain changes to Simulink defaults and consideration of physical simul...

4 mois il y a | 0

| A accepté

Réponse apportée
Facing error in this example openExample('whdl/WHDLOFDMTransmitterExample')
Hi, On running the shipped example “whdl/WHDLOFDMTransmitterExample” on MATLAB R2023b, I did not encounter the error mentioned...

4 mois il y a | 0

| A accepté

Réponse apportée
xcpA2L error: Error using numel Bad subscripting index.
Hi Shannon, The issue you are facing seems to be due to a version mismatch in the A2L version. From the MATLAB R2021b release ...

4 mois il y a | 0

Réponse apportée
How to make non inlined s-functions inlined for code generation
Hi Aubrey, Writing S-functions to be included in generated code involves requirements that go beyond writing S-functions used ...

4 mois il y a | 1

Réponse apportée
Programmatically to get member data type in In Bus Element Block
Hi, To programmatically obtain the data type attribute value of an In Bus Element, the function “get_param” should be used. Th...

4 mois il y a | 0

Réponse apportée
SSIM calculation for RGB images
Hi, There is an operational difference in the function “ssim” when called without passing the name-value argument “DataFormat”...

4 mois il y a | 0

Réponse apportée
How to treat 200 rows of data as an event when constructing a Timetable, as a piece of data, the size is 200*1
Hi Wensor, Using the “array2timetable” function, you can directly convert numeric data from arrays to a timetable. This can be ...

5 mois il y a | 0

Réponse apportée
Simulink generated code optimization - CPU Load
Hi Oldrich, The increase in CPU load when substituting manual code with generated code from the Simulink model can arise due to...

5 mois il y a | 0

| A accepté

Réponse apportée
Calculating Power of Specific Spatial Frequencies of pictures
Hi Olivia, Please refer to this answer provided by a MathWorks staff member that describes in detail the workflow that uses Dis...

5 mois il y a | 0

Réponse apportée
solving this maximization problem
Hi Fatemeh, Optimization of an equation with a two variable function can be solved using MATLAB’s optimization toolbox. Please ...

5 mois il y a | 0

Réponse apportée
Transmit and receive at the exact time (start in parallel not in sequence)
Hi Abdelrahman, The functionality of a “parfor”-loop in MATLAB is to simplify repeated loop iterations by executing a series o...

5 mois il y a | 0

Réponse apportée
How to tune PI controllers of MIMO system?
Hello Chandu, A workflow to tune a MIMO Control System for Specified Bandwidth using PI controllers can be found in the MathWor...

7 mois il y a | 0

Réponse apportée
How can I differentiate a function in Simulink with respect to a variable included in the function itself?
Hello Mohamed, The first derivative of the function included in the post must be calculated, which is a linear equation. In the...

7 mois il y a | 0

Réponse apportée
how to measure the average duty cycle in discrete domain
Hi Jayshree, I understand you are working on a model that calculates the duty cycle of a pulse. It seems like the model is perf...

7 mois il y a | 0

Réponse apportée
How do I compute phase noise of a signal I have imported from LTSpice ?
Hi Koustubh, I understand the issue you are facing is an error message about inconsistent array dimensions while using the “pha...

7 mois il y a | 0

Réponse apportée
How to use output number to display corresponding block of image?
Hi, From my understanding of the post, there exists an image, and the goal is to find a specific point. The image is divided in...

8 mois il y a | 0

Réponse apportée
How to compute correlation between estimated residuals and input data x?
Hi, I understand that you want to compute the correlation between the estimated residuals of your regression model and each of ...

8 mois il y a | 0

Réponse apportée
Scaling a PNG image inside a Panel in a MATLAB APP
Hi, From my understanding of your post, you are looking to make an image that exists inside a panel of your MATLAB app resize a...

8 mois il y a | 0

Réponse apportée
How to properly connect to TI F28025C for code generation and model debugging?
Hi Raul, From your description of the issue, errors seem to come up when you try to run your Simulink model on the TI hardware ...

8 mois il y a | 0

Réponse apportée
Not able to dump hardware code from Simulink to F28379D launchpad
Hi Neil, From your post, my understanding is that you are experiencing an issue with deploying code to the F28379D LaunchPad us...

8 mois il y a | 0

Réponse apportée
Hello I am trying to convert a ltspice capacitor part into a simulink part through Matlab
Hi Tahsina, The function “subcircuit2ssc” reads the SPICE netlist specified as a parameter and converts every subcircuit into o...

9 mois il y a | 0

Réponse apportée
How to generate C function to return a bool
Hi Duane, From the second attached code snippet (the desired generated code), I assume that the intended functionality is to ha...

9 mois il y a | 0

Réponse apportée
realtime data from accelerometer using matlab
Hi Ahad, Do refer to this MATLAB Answers post that details how to measure accelerometer data (using a BMA220 sensor) on a wide ...

9 mois il y a | 0

Réponse apportée
How to import STLs into MATLAB WHILE maintaining their coordinate system
Hi Andrew, STL files can be imported and aligned in the following methods – Using “stlread” - https://in.mathworks.com/help/m...

9 mois il y a | 0

Réponse apportée
How to deploy ML model on thingspeaks
Hi Arnav, There is a "Developing an IoT Analytics System with MATLAB, Machine Learning, and ThingSpeak" paper linked from the T...

9 mois il y a | 0

Réponse apportée
How to run two Simulink models at different rates, in the same workspace?
Hi John, I understand that you want to run “Modeled sys” at a faster rate than “Physical sys” from the description of the post....

9 mois il y a | 0

Réponse apportée
Creating Dataset of varying length Signals
Hi Denis, The topic of classifying time series data of varying lengths was touched upon in another MATLAB Answer. It is suggest...

10 mois il y a | 0

Réponse apportée
PID tuning / optimization usig machine learning/deep learning algorithm
Hi Avdhut, You could use the blocks that are shipped with the Reinforcement Learning Toolbox to tune a PID controller. An examp...

10 mois il y a | 0

| A accepté

Réponse apportée
How to analyze EMG signals?
Hi @Merve Deniz Senelen, You can import your “.bin” and “.hea” files using the following steps: Unzip the Files: You can use...

10 mois il y a | 0

Réponse apportée
How to convert 3D plot to .STL
Hello, A possible solution is to download the “stlwrite.m” file from the following link: https://www.mathworks.com/matlabcentra...

10 mois il y a | 0

Charger plus