Community Profile

photo

Dhananjay Kumar


Last seen: Today

MathWorks

23 total contributions since 2019

Disclaimer:
Any advice or opinions posted here are my own, and in no way reflect that of MathWorks.

Dhananjay Kumar's Badges

  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
EES Matlab interface?
See if this helps: Calling EES from MATLAB

15 hours ago | 0

Answered
I keep getting this error, " Failure in initial objective function evaluation. FSOLVE cannot continue."
Declare a 5x11 F in the beginning and use proper indexing on F like this: F = ones(5,11); F(1,:)= x(1).*(-M1.*(w.^2...

15 hours ago | 0

Answered
How to compile the algorithm written in MATLAB into a program that can be used in ROS?
See if this helps: ROS Toolbox: Design, simulate, and deploy ROS-based applications

26 days ago | 0

Answered
Equivalent command of "-M" at MCC in CODER GUI
The purposes of mcc command and MATLAB Coder are little different . I think you are looking for deploytool or Application Comp...

26 days ago | 0

Answered
How do I link outputs from C code written in visual studio into matlab
You can call your C code in MATLAB in two ways Using C MEX API Using loadlibrary function MATLAB Engine API is used to call...

2 months ago | 0

Answered
Why do I get an error when trying to launch the Deep Network Designer, even though I have the relevant toolbox? The error states that I don't have the correct libraries.
See this thread: Why do I see "error while loading shared libraries: libXss.so.1" when starting MATLAB

2 months ago | 0

Answered
Systems equation with a loop
Hey, See these two examples: Solve System of Equations with vpasolve Root of Function with fzero If the value of a paramet...

2 months ago | 0

Answered
wait for user input in app designer
Add a Text-type edit field (icon: ). This will take the input as character array (Here, default value will be empty character ar...

2 months ago | 0

Answered
Calling objects in legend changes marker size
This appears to be a bug. I work at MathWorks and have forwarded this feedback to the relevant team.

2 months ago | 1

Answered
How can I get system Matrix A,B and C for my state space system of Spring-Mass damper system of n blocks arranged in uniform way?
I think this should be very simple (Writing the generalized matrix in the image). You just need to know array indexing and for l...

3 months ago | 0

| accepted

Answered
optimization problem using optim prob in matlab
While using optimvar to create variables which would be used in optimization problem constraints, you can specify 'Type' as 'int...

3 months ago | 0

Answered
i need the second plot to start from where the last point on the first plot left off. The graph is meant to be continuous across all three stages not broken up. Help please?
Just shift the plot by adding the previous segment's final y-value: plot(t_1,p_1,'blue',t_2,p_2+p_1(end),'blue',t_3,p_3+p_1(end...

3 months ago | 0

| accepted

Answered
Move all figures to a specific monitor?
See this thread: Is it possible to viewing the "figure" window on second display?

3 months ago | 0

Answered
Vector array from matrix
If A = [1 0 5; 6 -9 -5; 1 2 5; 0 0.9 -2] then min(A,[],2) gives a column vector containing minimum value of each row. Similarl...

3 months ago | 0

| accepted

Answered
Download simulink without MATLAB
You can install the additional MathWorks products the same way you installed MATLAB initially. Follow steps here: https://in.ma...

3 months ago | 0

Answered
Coding a second degree differential equation
You can declare phi as a symbolic variable by using syms command and sove the equation symbolicaly as we solve any equation by h...

3 months ago | 0

Answered
I am having problem converting this to Matlab. It either spits out 'char' as the answer or it would say untitled after i have written it in Matlab and fixed all the errors. Help me out.
I suppose this is python code. For converting this code to matlab code, you should understand the code completely and manually ...

3 months ago | 0

Answered
ınstalling image processing tool
This is a generic error that is displayed while installing a Support Package. Refer to this: Why do I see the error "Something...

3 months ago | 0

Answered
Function that plots and calculates intersection of lines
You can do it manually through basic mathematical principles. y-y1 = m(x-x1) => mx-y = mx1-y1 . Now this is in the form...

3 months ago | 0

Answered
Create an Excel Template
See if this helps: Format Cells in Excel Files

3 months ago | 0

| accepted

Answered
Error: "Conversion from logical to sym is not possible"
I am assuing that you have declared phi as a symbolic variable by writing >> syms phi So func and dfunc are symbolic expressio...

3 months ago | 0

Answered
How to execute a simple cmd.exe code in MATLAB?
See this : system command in MATLAB

3 months ago | 1

| accepted

Answered
How to continuously repeat the output of the "From Spreadsheet" source block?
For this you need to first set the Treat first column parameter in the From Spreadsheet block as Data and then set the Output a...

3 months ago | 0