Disclaimer:

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

Answered

Finding the phase shift of the Sine wave from Workspace?

See this answer: Calculating Phase difference from workspace data

Finding the phase shift of the Sine wave from Workspace?

See this answer: Calculating Phase difference from workspace data

2 months ago | 0

Answered

Matlab syntax (vectorization)

You should note that logical indexing would select not all the elements from a row(or column) from an array, and that should re...

Matlab syntax (vectorization)

You should note that logical indexing would select not all the elements from a row(or column) from an array, and that should re...

2 months ago | 0

Answered

Saving structure data type in Simulink

Try one of these: 1) To Workspace block 2) Export Workspace Variables through model explorer 3) assignin function 4) evalin ...

Saving structure data type in Simulink

Try one of these: 1) To Workspace block 2) Export Workspace Variables through model explorer 3) assignin function 4) evalin ...

2 months ago | 0

Answered

Error using genfis function in Grid Partitioning

Check with this function to check if the issue is related to the data: mustBeFinite

Error using genfis function in Grid Partitioning

Check with this function to check if the issue is related to the data: mustBeFinite

2 months ago | 0

| accepted

Answered

Two videos sampling frequency sync

If you have Vision HDL toolbox. This might help: 1) Convert frames to pixels stream 2) Using ChromaResampler to resample the p...

Two videos sampling frequency sync

If you have Vision HDL toolbox. This might help: 1) Convert frames to pixels stream 2) Using ChromaResampler to resample the p...

2 months ago | 0

Answered

How can I set up a MATLAB timer for the next day, to run a function the values within which change daily?

Hi Manan, I think it should be pretty straight forward. You just need to specify the starting time and date in startat to be th...

How can I set up a MATLAB timer for the next day, to run a function the values within which change daily?

Hi Manan, I think it should be pretty straight forward. You just need to specify the starting time and date in startat to be th...

2 months ago | 0

Answered

Error in Embedded Coder Support Package for PX4 Autopilots

Hey Chaos, See if this answer helps: Unable to locate build tool "GNU PX4 Archiver": echo

Error in Embedded Coder Support Package for PX4 Autopilots

Hey Chaos, See if this answer helps: Unable to locate build tool "GNU PX4 Archiver": echo

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

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

4 months 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

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

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

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

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

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

6 months ago | 1

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

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

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

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

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

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

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.

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

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

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

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

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

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

6 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?

Move all figures to a specific monitor？

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

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

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

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

Download simulink without MATLAB

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

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

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

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

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

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

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

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

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

6 months 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

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

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

6 months 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

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

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

6 months ago | 0