photo

Sarthak

MathWorks

Last seen: ongeveer een maand ago Active since 2023

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 1
  • First Answer

View badges

Feeds

View by

Answered
How to compute Sound Pressure Level?
Hi Sangwoo, I understand you want to plot the SPL Graph in frequency domain and want to know the value of “P_ref”. In the form...

ongeveer een jaar ago | 1

Answered
How to omit pictorial presentation of Scalogram?
Hi Hamed, I understand you want to close the plot generated after every loop iteration. You can achieve this by making use of ...

ongeveer een jaar ago | 1

Answered
limiting parameter values in c-code
When generating C code from a Simulink model, you can limit the value of a parameter by adding constraints to the generated code...

ongeveer een jaar ago | 0

Answered
initial guessing - for mixed boundary condition
Hi N Nithya, I understand you are looking for a way of initial guessing, but I found something else in the code which might hel...

ongeveer een jaar ago | 0

Answered
Equally distributed points of known distance on a 3D solid body/3d surface
Hi Sabrina, I understand that you need the points on the surface/body to be in an equal triangular pattern. You can use the “s...

ongeveer een jaar ago | 0

Answered
I don't know why the Kalman filter algorithm I have written is not working
Hi Meysam, The reason why the position difference in the first iteration becomes zero is because you are initializing the stat...

ongeveer een jaar ago | 0

Answered
Why does the [x,fval,exitflag,output,lambda] = linprog(f,A,b,Aeq,beq,lb,ub) function return only integer numbers?
Hi Romeo, I understand that you want to set the precision of the output variable. You can use the format function to set the...

ongeveer een jaar ago | 0

Answered
How to map 2D mesh points on any 3D surface keeping the interpoint distace as it was in 2D surface?
Hi, Here are few approaches to project 2D points onto a 3D surface: Height map projection: You can use MATLAB’s ‘interp2’ fu...

meer dan een jaar ago | 0

Answered
How to write a junction in roadrunner hdmap using matlab?
Hi, Please refer to the following code to create a junction in RoadRunner HDMaP using MATLAB: % Create a new junction junc...

meer dan een jaar ago | 0

Answered
How to numerically solve a system of coupled partial differential and algebraic equations?
Hi, One way to solve a system of coupled partial differential equations (PDEs) and algebraic equations is to use a numerical m...

meer dan een jaar ago | 0

Answered
Error using eig Input matrix contains NaN or Inf.
Hi, To fix this error, you need to identify the matrix that contains NaN or Inf values and handle them appropriately. Refer th...

meer dan een jaar ago | 0

Answered
I have Simulink Coverage but could not find in Configuration parameters
To enable Simulink Coverage in your Simulink model, you need to perform the following steps: Open your Simulink model. Go to...

meer dan een jaar ago | 0

Answered
Input argument contains an empty equation or variable.
Hi, The error message suggests that one of the equations in your system is empty or contains an empty variable. This can happe...

meer dan een jaar ago | 0

Answered
Can someone help me solve the following bugs? Ps:I have installed NVIDIA Nsight and MinGW64.
Hi, The output you provided indicates that some of the GPU-related dependencies were not found on your system. The cuDNN lib...

meer dan een jaar ago | 0

Answered
How can I generalise this?
Hi, To generalize your code into a working algorithm, you can use a loop to iterate over each row of your input matrix, and th...

meer dan een jaar ago | 0

Answered
How do i put a center of surface in [0 0] coordinates
Hi, To shift the center of the surface to (0,0), you need to subtract the coordinates of the center point from all the x and y...

meer dan een jaar ago | 0

Answered
Plotting the objective function
Hi, It looks like the function ‘f(x0)’ is not recursively calling itself, but it might be stuck in an infinite loop due to som...

meer dan een jaar ago | 0

Answered
complex logical indexing?
Hi, You can use logical indexing to achieve this without a for loop. Please refer to the following code for better understandi...

meer dan een jaar ago | 0

| accepted

Answered
Velocity autocorrelation in time
Hi, You can use either the magnitude of the velocity 'V_mag' or the velocity components 'Vx' and 'Vy' separately. Using the ...

meer dan een jaar ago | 0

| accepted

Answered
Merge two cells of different size but have one rows in common
Hi, Here are the steps and the code you could refer: % Find the common value commonValue = intersect(r_ptf{12,:}, r_ptf3{...

meer dan een jaar ago | 0

Answered
How can I reuse numerical values them back as inputs?
Hi, You can save it to a MAT-file and then load it back in before the script runs. This way, each time the script is run, it w...

bijna 2 jaar ago | 0

Answered
fprint f for a matrix
Hi, You can use a ‘for’ loop to do the same. Please refer to the following code to understand the problem: z = [0 3 0; 1 2...

bijna 2 jaar ago | 0

Answered
last iteration of the for loop takes too long
Hi, It’s difficult to exactly know why this is happening, but what I have understood is that maybe the arrays Axx, Ayy, Azz, B...

bijna 2 jaar ago | 0

Answered
Concatenating structure array with matrix
Hi, As far as I have understood the question, you want to concatenate two files which contain array and matrix. You can use ...

bijna 2 jaar ago | 0

Answered
how do I substitute the values inside the vector?
Hi, You can look up to “Logical Indexing” section in the following documentation: Matrix Indexing in MATLAB - MATLAB & Simul...

bijna 2 jaar ago | 0

Answered
Error by having similar names for a variable and a MATLAB function
Hi, In MATLAB, when you have a variable with the same name as a built-in function, MATLAB will use the variable instead of the...

bijna 2 jaar ago | 0

Answered
how to assign zero to a vaiable
I think if you put the value of include_self_wght == 1, i.e., ‘Yes’, then self_wght will be assigned a value of 0 as requested....

bijna 2 jaar ago | 0

Answered
How to Solve Mean of an Array? Show each Iteration?
Hi, If you just want to show what value each variable will hold as value after each iteration, you can just remove the semicol...

bijna 2 jaar ago | 0

Answered
I am struggling with letter b and keep getting this as an error. Variable b must be of size [1 1]. It is currently of size [3 4]. Check where the variable is assigned a value.
According to the question (b) part, you need to find log10 of all the elements in the matrix. Since the size of B is [3 4], when...

bijna 2 jaar ago | 0

Answered
I am stuck up in error
The error is arising due to the following reasons: The function exp (4) - x^4 isn’t converging. Hence the convergence loop wil...

bijna 2 jaar ago | 0