Answered
correlation window range code
Check out the findpeak function as mentioned in the comments above. You can use multiple Name-Value pairs to suit your use cas...

6 years ago | 0

Answered
"Example: Define Custom Deep Learning Layer with Learnable Parameters" doesn't work
Thanks for pointing this out. Check out the complete file by running the following command: edit(fullfile(matlabroot,'examples...

6 years ago | 0

| accepted

Answered
Getting hatchfill to properly display a patch legend
I presume you’re using the hatchfill function from File Exchange. Internally, it calls the line function to create the hatch ...

6 years ago | 0

Answered
PDF of paretotail distribution
Since the object returned by the paretotails is of Piecewise Distribution type, you can directly use the pdf function to query t...

6 years ago | 0

| accepted

Answered
how to reverse drive ego vehicle in driving scenario designer app.?
It is not currently possible to reverse the direction of motion of ego vehicle in Driving Scenario Designer app. This might be i...

6 years ago | 0

| accepted

Answered
finding the distance traveled before speed is reduced to a certain velocity
The original equation from your question is . Rearranging the terms would give . We would need to integrate the equation abo...

6 years ago | 1

| accepted

Answered
I need help with a Triple Integral
Try using the following code: fun = @(x,y,z) y; % y is r zmin = @(u,v) sqrt(2-(v.^2)/20)+12; % z zmax = @(u,v) 17...

6 years ago | 1

Answered
I want to transform an trapez into a square (fitgeotrans)
The fitgeotrans function transforms the control point pairs in the movingPoints argument to the control point pairs in the fixed...

6 years ago | 1

Answered
T-test cutoff
Try adding the following lines before plotting the values: tstatMod = tstat; tstatMod(tstat<=2.32) = NaN; And then modify ...

6 years ago | 0

Answered
Summing with multiple variables
Try replacing the appropriate line of code with the following: Phi=sum(Am.*cos(Bm.*x2).*exp(-lambdam*t),2); The sum function...

6 years ago | 0

Answered
Indefinite Integration of a function
The output from the integration stays the same and remains unsolved because MATLAB is unable to find a closed form expression fo...

6 years ago | 0

| accepted

Answered
Create arbitrary decision tree without training data?
Have a look at Stateflow to implement flow charts. Here are a couple links to get you started: https://www.mathworks.com/hel...

6 years ago | 1

Answered
How to use ranksum with splitapply?
The splitapply function applies the function mentioned as an argument to each group. For the ranksum function we would need to p...

6 years ago | 0

Answered
How to create a connecting model transfer function out of multiple transfer function?
Have a look at https://www.mathworks.com/help/control/ug/conversion-between-model-types.html#f3-1039600 It would help to conv...

6 years ago | 0

Answered
Using a variable with fwrite and next line
Consider replacing the appropriate line of code with the following: fline = strjoin(walks,','); fline = strjoin({fline,''},'...

6 years ago | 0

Answered
Need help for mathematics problem.Signals and Systems and Newton method.
Consider modifying the following code for the question related to sampling: fy=1; %frequency in Hz wy=2*pi*fy; %signal frequ...

6 years ago | 0

Answered
Coding noise cancellation in matlab
Consider using either of the following syntaxes: ha=dsp.LMSFilter('Length',256,'StepSize',mu); ha=dsp.LMSFilter(256,'StepSiz...

6 years ago | 0

Answered
Table values as input to a function
The desired expression can be evaluated in two ways. One of them uses symbolic math while the other avoids symbolic math altoget...

6 years ago | 0

Answered
the fsurf produce incorrect plotting?
The output by fsurf in the example given is being plotted for P in the range of 298 – 500 and T in the range of 10^(-10) – 10. T...

6 years ago | 0

| accepted

Answered
error while using hht function
The ‘FrequencyLimits’ argument in the hht function can take values within [0,fs/2] where ‘fs’ is the value set for the Sample Ra...

6 years ago | 0

| accepted

Answered
I have a huge image file (.dat file 17Gb) of columns x rows x frames. I need to import this file as fast as possible, but only every 10th frame or so.
The fseek command takes as second argument the offset which is the number of bytes to move from origin. To obtain every Nth fr...

6 years ago | 0

Answered
Deep learning with vector output
You can use the tanhLayer to obtain output values in the range of –1 to 1. Here’s the documentation for more information: http...

6 years ago | 0

Answered
Why won't my axes position change stick?
Use the drawnow command while setting or getting positions of any graphics objects. This makes sure that things are in sync as t...

6 years ago | 0

Answered
I currently have 2019a but I need 2010b.
You can download any of the earlier releases from https://www.mathworks.com/downloads/web_downloads/select_release while you’re ...

6 years ago | 0

| accepted

Answered
Layer 'conv_1': Input size mismatch. Size of input to this layer is different from the expected input size.
The sequenceInputLayer accepts as ‘inputSize’ the number of features of the input data. Setting the ‘inputSize’ to [3 1 1] shoul...

6 years ago | 1

Answered
BiLSTM for sequence to sequence G2P conversion (DNN)
You can use the sequenceInputLayer to input a sequence to the bilstmLayer. To output a sequence set the ‘OutputMode’ parameter t...

6 years ago | 0