已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 1

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

| 已接受

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

| 已接受

已回答
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...

1 year 前 | 1

| 已接受

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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...

1 year 前 | 0

已回答
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 ...

1 year 前 | 0

已回答
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...

1 year 前 | 1

| 已接受

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

1 year 前 | 0

已回答
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...

2 years 前 | 0

已回答
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...

2 years 前 | 0

已回答
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...

2 years 前 | 0

已回答
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;...

2 years 前 | 0

已回答
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 ...

2 years 前 | 0

已回答
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 ...

2 years 前 | 0

已回答
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 ...

2 years 前 | 0

| 已接受