Respondida
How to find Angle of Impedence?
You should take into consideration that there can be phase difference between the voltage and the current signals. One way is to...

más de 1 año hace | 0

Respondida
How to reconstruct/reassemble a decomposed signal?
You can use the “waverec” function for this purpose. Follow the following documentation for more details. Multilevel 1-D discr...

más de 1 año hace | 0

Respondida
How to model a PD (Photo-diode) in SIMULINK?
You can use Photo Diode from the Simscape Library. “Simscape / Electrical / Sensors & Transducers” Documentation for Photodiode...

más de 1 año hace | 0

Respondida
Error using the invoke function,picoscope
It is difficult to say until we do not have the variables that you are sending as parameters. You can go through the following d...

más de 1 año hace | 1

Respondida
Add field to input struct array in Mex
In order to add a new field to the struct Array in Mex, you can use “mxAddField” function. Please go through the following docu...

más de 1 año hace | 0

Respondida
Is there a way to remove one channel group from a tdms file and write a new tdms file?
You can execute the following steps to remove a channel group from an existing TDMS file and create a new TDMS file with the upd...

más de 1 año hace | 0

Respondida
Resistance in PEM electrolyzer block
The external resistance "R" in the setting of Simscape's Electrolyzer block denotes an additional resistance that can be connect...

más de 1 año hace | 0

Respondida
spdfcdfinfo - how to avoid a crash when the cdf file is corrupted?
One approach is to use the built-in MATLAB function exist to check if the file exists and is readable. Another approach is to u...

más de 1 año hace | 0

Respondida
How to extract MIDI data from mxarray in simulink ?
To extract the MIDI data correctly from the “mxarray” received by the “midireceive()” function in Simulink, you can use the foll...

más de 1 año hace | 0

| aceptada

Respondida
Hanging during large parallel processing tasks.
There are a few possible reasons why MATLAB may occasionally freeze during demanding parallel processing workloads. Here are som...

más de 1 año hace | 0

Respondida
How to resolve "Transparency violation error" for parallel programming?
The error message you're getting implies that your code is violating the transparency rule. The “parfor” loop in MATLAB can do t...

más de 1 año hace | 0

| aceptada

Respondida
two trigger events, can specify in different color
Yes, you can distinguish between the two events “A” and “B” in MATLAB by using the “eventData” input argument of the event funct...

más de 1 año hace | 1

| aceptada

Respondida
rocmetric 'Unrecognized function or variable 'rocmetrics'.'
I could not find "rocmetric" function in R2021b release documentation. So I think “rocmetric” function was introduced in the R20...

más de 1 año hace | 0

Respondida
Fast aggregates over overlapping subsets of a vector
You are correct in saying that “accumarray” only functions for sets of indices that are mutually exclusive. You can apply a func...

más de 1 año hace | 0

Respondida
I don't understand MATLAB coder to C
You must write an entry-point function that invokes each function your main function needs in order to introduce numerous functi...

más de 1 año hace | 0

Respondida
Simulink optimizer solve for largest value
In your Simulink model, you may use a variety of optimization techniques to determine the greatest value of the output for a giv...

más de 1 año hace | 0

Respondida
Derivative of state '1' in block 'model_name' at time 0.0 is not finite
It is difficult to tell the exact solution without knowing the context and the settings of the model. You can go through below ...

más de 1 año hace | 0

Respondida
How can I storage data in simulink to use it as one set of data?
To perform an FFT on the entire vector in one step in Simulink, you can use the Buffer block to store the entire vector and then...

más de 1 año hace | 1

| aceptada

Respondida
Exporting uneven nested cells to excel
Xlswrite is not recommended. Go through the below documentation. (Not recommended) Write Microsoft Excel spreadsheet file - M...

más de 1 año hace | 0

Respondida
Index exceeds the number of array elements. Index must not exceed 8.
To handle this error, you should better add proper checks as the function is getting agl_grid as input. For eg. For the stateme...

casi 2 años hace | 0

Respondida
How can I combine two correlation matrices (corrplot)?
The corr function is used to calculate the correlation matrix of each dataset, and the triu and tril functions are used to extr...

casi 2 años hace | 0

Respondida
Can i get the remaining time from the start of a timer?
You can use tic, toc and a while loop for this. t = timer; t.StartDelay = 20; t.TimerFcn = @(myTimerObj, thisEvent)disp('20 s...

casi 2 años hace | 0

Respondida
Going from Euler's method to trapezoidal rule
You would have to modify the calculation of the intermediate value m as follows: if true syms t y f=@(t,y) 1-t+4.*y; t=0;...

casi 2 años hace | 0

Respondida
how to prepare a matlab code for tcsc
Yes, it is Possible to write MATLAB code to implement TCSC. f_base = 60; %Hz R = 0.1; %Ohm C = 100e-8; %F V_base = 20e4; %V ...

casi 2 años hace | 0

Respondida
Save plot values as table values and output them to the table
A matrix can be created representing the image. We can than visualize the image. Array2table can be used to get a table out of ...

casi 2 años hace | 0

Respondida
How to generate random numbers in a Gaussian distribution?
You can use the randn function in MATLAB. You can follow the following steps: Generate Random Numbers from a standard normal ...

casi 2 años hace | 0

| aceptada