Calculate Expected Value and Variance for Bivariate Normal Distribution
To find the empirical estimate of variable XY, you can use the following command: Exy = mean(prod(R,2)); To find the empiric...

4 months ago | 0

| accepted

Plot Fourier Series on MatLab
Your coefficients are right. The issue is that instead of adding the n-th cosine to the exiting variable ‘fourier’, you were ove...

4 months ago | 0

potential design mistake impedance measurement block
Looks good to me. Here’s the model I’ve tried with identical Parallel RLC branches having values: R = 1e9 Ohm, L = (1e-1)/(2*p...

4 months ago | 0

| accepted

How can I fix this code to work?
Try replacing: m.gl_data(s(1)+1, :) = glcm_data; with m.gl_data(s(1)+(1:k), :) = glcm_data; The code was trying to as...

4 months ago | 0

Multiple ego vehicle with same sensor added to the scenario at the same point in different simulation time
Multiple ego vehicles are not supported by the Driving Scenario Designer App currently. There are potential workarounds for s...

4 months ago | 0

| accepted

LSTM을 만들고 training 시킬 때 Number of Time Steps을 변경할 수 있는 방법이 있나요?
(English version) You are right. The number of time steps in an LSTM can be specified using the ‘SequenceLength’ attribute in ...

4 months ago | 0

how can I find destiny power spectrum using the pwelch function?
I am unsure what issue you are facing with the pwelch function. Here is an example from the documentation to get you started: ...

4 months ago | 0

How to sit a fixed value of k with an array of θ values, or a fixed value of θ with an array of k values?
A simple way of checking whether your conditions are met would be by using the modified code given below: flag = 0; while ~fla...

7 months ago | 0

What's meaning of dicom-dict.txt file 4th column "1-n"?
The fourth column represents Value Multiplicity. Check the following link for more details about Value Multiplicity: http://dico...

7 months ago | 0

| accepted

How can i connect the '.' points of the given figure. i don't want to connect '*' with any point?
Try using the following code to plot: %% Plot lw = 2; % LineWidth ms = 15; % MarkerSize figure xlim([-0.2 1.2]) ylim([...

7 months ago | 0

| accepted

My quiver plot seems to go flat when I am plotting a coupled ode.
I believe, while trying to compute dx and dy, you intended to find the elementwise product using the matrices of x and y. Try th...

7 months ago | 0

Predict future values of a PRNN
Explanation for the output you’re getting: Your patternnet is learning a mapping/relationship between the inputs and the t...

7 months ago | 0

| accepted

Reset Terminal States in Grid World example using RL Toolbox
There are a couple in different ways in which custom environments can be defined in MATLAB. Have a look at https://www.mathworks...

7 months ago | 0

reset function of reinforcement learning?
Yes, I believe you're right. Thanks for pointing this out.

7 months ago | 0

sequence learning using LSTM
Have a look at the example here: https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.layer.lstmlayer.html#d117e90134 Alth...

7 months ago | 1

| accepted

how make 3d plotting
Please have a look at the code below. I assume when you say the ball should fall to the ground, it comes back to the same ini...

7 months ago | 0

Fixed point tool conversion
You can convert a particular subsystem to Fixed Point by selecting it under System Under Design while preparing the system. Chec...

7 months ago | 1

Error" 'lyap' requires control system toolbox""
The Control System Toolbox is a piece of software that can be purchased along with MATLAB. This toolbox contains functions and a...

8 months ago | 1

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...

8 months ago | 0

"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...

8 months ago | 0

| accepted

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 ...

8 months ago | 0

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...

8 months ago | 0

| accepted

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...

8 months ago | 0

| accepted

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...

9 months ago | 1

| accepted

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...

9 months ago | 1

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...

9 months ago | 1

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

9 months ago | 0

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...

9 months ago | 0