Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

Respondida
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 meses hace | 1

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Cargar más