Answered
modifying pdf of a GMM using gmdistribution
Hello, To achive this, firstly evaluate the PDF of the GMM at a set of points. You can use the 'pdf' method available for a GMM...

3 months ago | 0

Answered
Draw mesh for 2-d array
You can try something like this to represent your array as mesh: % Example 2D data array (64x64) data = rand(64, 64); % Repla...

3 months ago | 0

Answered
Can we get datetime as an input variable?
Yes, you can use 'datetime' as an input variable for your models, but you will need to preprocess it appropriately. Raw datetime...

3 months ago | 0

Answered
Average code length and entropy
Hi, That's not always true, Huffman coding does not always achieve the entropy limit because it works with integer code lengths...

4 months ago | 1

| accepted

Answered
Connecting to NI cDAQ 9133 controller
The 'getDevices' function in MATLAB typically lists devices connected directly to your computer, so it won't automatically detec...

4 months ago | 0

Answered
How can I call a matlab function that takes no arguments using matlab engine C++ API?
When using the MATLAB Engine C++ API to call a MATLAB function that takes no arguments, you should not pass an empty Array as an...

4 months ago | 0

Answered
Is there more than one way to make a class abstract?
If you want to make a class abstract without defining abstract methods or properties, you can use an abstract methods block, but...

4 months ago | 0

Answered
Sky plot in matlab
You can consider converting your angles from radians to degrees if needed, and ensure you are using the correct plotting functio...

4 months ago | 0

Answered
Smallest Alignment Index (SALI)
Here is a basic MATLAB code to compute the SALI as a function of time for orbits in a phase space of a given time series signal:...

5 months ago | 0

Answered
how to implement a multi user communication system?
You can extend your single-user WCDMA communication link to a multi-user communication link by using a MUX (multiplexer) and DEM...

5 months ago | 0

Answered
Designing a Microstrip Array Antenna Using Genetic Algorithm
Here is an example to help you get started. This example assumes you are optimizing the length and width of the patches in a mic...

5 months ago | 0

Answered
Auto-Regressive model in Matlab?
To determine the order of the Auto-Regressive (AR) model and find the coefficients for your EMG signal, you can use criteria suc...

5 months ago | 0

Answered
How to Make the Ports and Internal Variables of a FMU Block, Visible or Invisible?
The error you encountered can happen if the path is incorrect or if the block does not support the operation you're attempting. ...

5 months ago | 0

Answered
How to structure the data using webread
First you can parse the data to xmlData: % Convert the data from char to XML DOM xmlData = xmlreadstring(data); You can use X...

5 months ago | 0

Answered
How to convert from a function of frames to a function of time for radar board (Infineon Position2Go)?
Yes, you are correct. Given that the frame interval is 150 ms, it means that there are approximately 6.66 frames per second. To ...

5 months ago | 0

Answered
Level-2 S-Function in Simulink subsystem
Hello, To configure parameters such as IP address and sample time from a Simulink subsystem mask into a Level-2 MATLAB S-Functi...

6 months ago | 0

Answered
how to add disturbance into MPC block without remaking it from the beginning?
Hi Mounira, One of the possible reason behind this error coud be incorrect constraints. You can verify the inputs and constrain...

6 months ago | 0

Answered
I would like to create a finite element analysis simulation to determine the maximum stress occuring between two identical gears in contact
You can create the geometry of the gear profiles in MATLAB. This can be done using by using the geometry creation functions like...

6 months ago | 0

Answered
Delsys Signal to MATLAB Simulink
Hi Caly, The issue you're encountering with scattered data points and "square waves that have many holes in it" could be due to...

6 months ago | 0

| accepted

Answered
Sheath current for a proper cross bonded cable is not zero, even in the balanced condition, how to achieve zero sheath current for a cable?
Hi Arittra, The cross-bonding arrangement connects the cable sheaths in a manner that ideally cancels out the induced voltages...

9 months ago | 0

Answered
3D plot for stress distribution on mesh nodes
To visualize the output from an FEM solver as a colored stress plot, you can use MATLAB. % If your data is stored in a file cal...

10 months ago | 0

Answered
How to connect PMSM model electrical ports to PSPICE block ports for Co-Simulation
Here's how you can make the electrical connection between the PMSM models' electrical ports and a PSPICE block to enable co-simu...

10 months ago | 0

Answered
How to get original intensity value from LiDAR (las) data instead of grayscale intensity
If you need the original intensity values directly from the LAS file, you may have to use a more specialized library or function...

10 months ago | 0

Answered
Interfacing ADC with Terasic DE4 board
Hey Abhishek, There are a few things you might want to check if you're not getting any output on your oscilloscope: Ensure th...

10 months ago | 0

Answered
Optimizer used in Phased Array System Toolbox for Steering Vector Synthesis
Hi Arish, The toolbox typically does not use a specific "optimizer" in the conventional sense, like those used in mathematical...

10 months ago | 0

Answered
How to view the command window history?
If you are working on scripts that produce a lot of output, you can log all command window output to a file by using the "diary"...

10 months ago | 0

Answered
From spreadsheet in simulink real time
Hi Enzo, When working with real-time applications in MATLAB and Simulink, certain blocks that are available for simulation are...

10 months ago | 0

| accepted

Answered
How can i select slope while calculating T 1/2 in NCA. How to input units for dose.
Hi Vijaya, When calculating the half-life (T1/2) of a drug in non-compartmental analysis (NCA), the selection of the slope is c...

10 months ago | 0

Answered
How to implement PSO algorithm for sizing of supercapacitor and battery in HESS using Matlab
PSO is a heuristic algorithm, and the actual implementation details can vary widely depending on the specific problem being solv...

10 months ago | 0

Answered
Can we extract MECG from AECG using adaptive comb filter using the matlab function for comb filter?
Hi Bipin, MATLAB does not have a built-in function specifically called "comb filter", but you can design a comb filter using fun...

10 months ago | 0

Load more