Disclaimer:

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

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

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

environ un mois 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

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

environ un mois 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...

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

environ un mois 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...

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

environ un mois 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.

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.

environ un mois 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...

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

environ 2 mois 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...

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

environ 2 mois 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...

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

environ 2 mois 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?

Move all figures to a specific monitor？

See this thread: Is it possible to viewing the "figure" window on second display?

environ 2 mois 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...

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

environ 2 mois 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...

Download simulink without MATLAB

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

environ 2 mois 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...

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

environ 2 mois 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 ...

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

environ 2 mois 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...

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

environ 2 mois 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...

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

environ 2 mois ago | 0

Answered

Create an Excel Template

See if this helps: Format Cells in Excel Files

Create an Excel Template

See if this helps: Format Cells in Excel Files

environ 2 mois ago | 0

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

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

environ 2 mois ago | 0

Answered

How to execute a simple cmd.exe code in MATLAB?

See this : system command in MATLAB

How to execute a simple cmd.exe code in MATLAB?

See this : system command in MATLAB

environ 2 mois 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...

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

environ 2 mois ago | 0