Community Profile

photo

Sarthak

MathWorks

Last seen: 25 Tage vor Aktiv seit 2023

Statistiken

  • Knowledgeable Level 1
  • First Answer

Abzeichen anzeigen

Content Feed

Anzeigen nach

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

2 Monate vor | 0

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

2 Monate vor | 1

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

3 Monate vor | 0

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

3 Monate vor | 0

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

3 Monate vor | 0

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

3 Monate vor | 0

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

3 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

| akzeptiert

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

9 Monate vor | 0

| akzeptiert

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

9 Monate vor | 0

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

10 Monate vor | 0

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

10 Monate vor | 0

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

10 Monate vor | 0

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

10 Monate vor | 0

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

10 Monate vor | 0

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

10 Monate vor | 0