Community Profile

photo

Uday Pradhan


Last seen: Today

MathWorks

77 total contributions since 2020

I am an Application Support Engineer at Mathworks.
Disclaimer : Any articles/ideas/opinions here are my own and in no way reflect that of MathWorks.

Contact

Uday Pradhan's Badges

  • 6 Month Streak
  • Revival Level 2
  • Knowledgeable Level 3
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
How can I get the instantaneous step size value in variable step solver at a simulink model?
Hi, you can use the "Clock" block in Simulink to get the current simulation time and the "memory" block to store this value for ...

7 días ago | 0

Answered
Live Script does not work
Hi Cagan, If you are a Windows user, please check if this page: Set Locale on Microsoft Windows Platforms, solves your problem....

7 días ago | 0

Answered
Custom object class array initilization within Simulink Matlab Function Block
Hi Michael, According to the documentation for MATLAB Classes for Code generation, creation of arrays of objects is not support...

9 días ago | 0

| accepted

Answered
2 Video Display side by side in a Custom User Interface
Hi, Please check the attached code. It runs the two videos side by side, however the rotation effect is removed. I hope this he...

9 días ago | 0

Answered
How do you delete and space characters in Matlab Virtual Keyboard ?
Hi, Just a naive try at what you asked, i hope it helps! function AddLetter(letter) %Called when letter press...

alrededor de 2 meses ago | 0

Answered
Trapezoid Rule method errors
Hi, The error you have posted occurs because the integral: trapz(r,B,2) evaluates to 0. This is then used as the dimension ...

alrededor de 2 meses ago | 0

Answered
Grouping vector elements that satisfy multiple conditions
Hi, I have written a small script which tries to group the vector A according to the conditions you have established, please go...

alrededor de 2 meses ago | 0

Answered
How to see the values of the Parameters defined as variables in the Examples given by Simulink?
Hi, "power" is struct with 7 fields, you can see the values of these fields as such (given that power variable exists in the ba...

alrededor de 2 meses ago | 0

| accepted

Answered
imnoise gaussian variance vs normal variance?
Hi, So the formula for adding Gaussian noise to the image by "imnoise" is given by: output = input + sqrt(v)*randn(size(input)...

alrededor de 2 meses ago | 0

| accepted

Answered
select bus elements programmatically
Hi, You can select the signals to be passed through the bus selector by using: %Say we want to choose the signals 1 and 2 to p...

alrededor de 2 meses ago | 0

| accepted

Answered
Recursive method to get the differential not working.
Hi Hampus, You will need to use the output function handle to evaluate the nth derivative approximation: f = @(x) x^5; df3 = ...

alrededor de 2 meses ago | 0

| accepted

Answered
readAprilTag in Simulink for code generation
Hi Alberto, The "readAprilTag" function is currently not supported for code generation. You could use the coder.extrinsic API t...

alrededor de 2 meses ago | 0

Answered
Help with Numerical Differentiation
Hello Deepa, Please check this example : Approximate derivates with diff function. You can easily calculate the forward finite...

alrededor de 2 meses ago | 0

Answered
How to calculate multivariable limit using matlb?
Hi Gaurav, Unfortunately, there is no special function as of now that calculates multivariable limits directly. However, ther...

4 meses ago | 0

Answered
Log-scale frequency axis in Signal Analyzer App
Hi Sukvasant, The Signal Analyzer app currently does not support changing the scale of the plot directly. However, a workaround...

4 meses ago | 0

| accepted

Answered
first order runge-kutta method
Hi, You can check this lecture series on solving ODEs in MATLAB : link. There is also a "Code and resources" section from where...

4 meses ago | 1

Answered
Same code but different result with optimal control - forward-backward sweep method
Hi, You may want to debug your program with the in-built debugging tools MATLAB provides. You may create a loop - counter varia...

4 meses ago | 0

Answered
Unable to Select Datastore (Deep Network Designer)
Hi, The most probable reason is that the support for importing built-in or custom datastores into Deep network designer was int...

4 meses ago | 0

Answered
How to make ptr during the gagerr process??
Hi, Referring to the documentation page of gagerr, I can give you an example as follows: %to display the ptr value, we need to...

4 meses ago | 0

Answered
How to generate points on the surface of an ellipsoid?
Hi, I believe you can use the ellipsoid function for this. Example: [x,y,z] = ellipsoid(0,-0.5,0,6,3.25,3.25); will create an...

4 meses ago | 0

Answered
certificates from self-paced courses not loading
Hi Brian, I have a few suggestions for you which may help: Use a different browser Do a hard refresh of the MATLAB academy h...

4 meses ago | 0

Answered
Help remove unconnected small pixel from image
Hi, I found the mistake at line 132 of the code you have attached. If you notice, grayImage is already a binary image so thresh...

4 meses ago | 0

| accepted

Answered
how to disable the CLI prompt to save simulink model before closing?
Hi, If you want to save your changes, may be you could use "save_system" command in your try block. In this way, when you close...

4 meses ago | 0

Answered
Close the prompt to save simulink model using Matlab code
Hi Seshasai, You could use the "/f" parameter with taskkill to forcefully terminate the process. Ofcourse, the changes made to ...

4 meses ago | 1

| accepted

Answered
error in HighwayLaneFollowingExample : 3D Simulation engine interface read error
Hi, The error you mentioned might be because you closed the Unreal Engine Simulation window before stopping the simulation in S...

4 meses ago | 0

Answered
'perform' function in Deeplearning toolbox
Hi Abdulaziz, The "perform" function returns the performance of the trained network calculated according to the net.performFcn ...

4 meses ago | 0

Answered
MATLAB shortcut not running after installation
Hi, You can start MATLAB from the command prompt itself. Please check this page : link for more information. Also, typically t...

4 meses ago | 0

Answered
Simulink InitFCN in MATLAB function2 block does not initialize object from h = fill()
Hi Stijn, It is my understanding that you are using the first script as the InitFcn callback of your function block, then later...

4 meses ago | 0

| accepted

Answered
calibration of a stereo dataset
Hi Riya, Please check out the Stereo Camera Calibrator App documentation page. It has all the detailed steps to get you starte...

4 meses ago | 0

| accepted

Solved


Tic Tac Toe FTW
Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...

5 meses ago

Load more