Answered

Please help solve and plot the solutions to an equation

Hi Alexander, Have a look at the following code. It shows one of the ways by which you can solve your question. D2 = 11.4; H...

Please help solve and plot the solutions to an equation

Hi Alexander, Have a look at the following code. It shows one of the ways by which you can solve your question. D2 = 11.4; H...

4 månader ago | 0

| accepted

Answered

Putting Annotation in 3D Space - seems impossible

Hi Oliver, The annotation function with the same syntax - 'a= annotation('textarrow',x,y,'String','Write text here');' can be u...

Putting Annotation in 3D Space - seems impossible

Hi Oliver, The annotation function with the same syntax - 'a= annotation('textarrow',x,y,'String','Write text here');' can be u...

5 månader ago | 0

| accepted

Answered

Select cells in heatmap

Hi Ilyass, You can change the 'ColorLimits' property of the HeatmapChart so that all the values of 'cdata' that are equal to an...

Select cells in heatmap

Hi Ilyass, You can change the 'ColorLimits' property of the HeatmapChart so that all the values of 'cdata' that are equal to an...

5 månader ago | 0

Answered

How can I store the values of step response function in array which has time delay ?

Hi, Have a look at the following code which will give you the desired output. num = [0.5 1]; den = [6 23.5 35.5 25.5 8.5 1]; ...

How can I store the values of step response function in array which has time delay ?

Hi, Have a look at the following code which will give you the desired output. num = [0.5 1]; den = [6 23.5 35.5 25.5 8.5 1]; ...

5 månader ago | 0

Answered

How can I multiply matrices using a for loop then extract their elements after the loop?

Hi Stephen, I understand that you want to use the elements of the matrix obtained after each iteration to calculate other value...

How can I multiply matrices using a for loop then extract their elements after the loop?

Hi Stephen, I understand that you want to use the elements of the matrix obtained after each iteration to calculate other value...

5 månader ago | 0

Answered

rounding and displaying datetime in plot x-axis

Hi Joel, In the code for 'option 2' which you have given above, replace ax.XTickLabel = datestr(linspace(xtick_start,xtick_...

rounding and displaying datetime in plot x-axis

Hi Joel, In the code for 'option 2' which you have given above, replace ax.XTickLabel = datestr(linspace(xtick_start,xtick_...

5 månader ago | 0

| accepted

Answered

how to generate a reference signal from the Driving Scenario Designer App?

Hello, Once you are done building your scenario, place a sensor on your Actor, change the 'Update Interval (ms)' as required an...

how to generate a reference signal from the Driving Scenario Designer App?

Hello, Once you are done building your scenario, place a sensor on your Actor, change the 'Update Interval (ms)' as required an...

5 månader ago | 0

Answered

Slope equation for plot of best fit line

Hi Jayashree, Once you have your plot, go to Tools->Basic Fitting from the menu bar in the figure window. Then select Linear. Y...

Slope equation for plot of best fit line

Hi Jayashree, Once you have your plot, go to Tools->Basic Fitting from the menu bar in the figure window. Then select Linear. Y...

6 månader ago | 0

Answered

Complicated grouped bar legend

Hi Daniel, Have a look at the following example to understand how to show bars and line plots in a particular order in the lege...

Complicated grouped bar legend

Hi Daniel, Have a look at the following example to understand how to show bars and line plots in a particular order in the lege...

6 månader ago | 0

Answered

Solving a system of multiple equations (including vector) for multiple variables

Hi, If 'solve' returns empty objects ([0x1 sym]), then it means that no solutions exist for the given set of equations.

Solving a system of multiple equations (including vector) for multiple variables

Hi, If 'solve' returns empty objects ([0x1 sym]), then it means that no solutions exist for the given set of equations.

6 månader ago | 0

Answered

Struggling with integration.

Hi, I understand that you have the values of 'R2', 'V' and 'D', and you have to solve the equation, 'V=∫pi*(R1+R2-sqrt(R2^2-x^2...

Struggling with integration.

Hi, I understand that you have the values of 'R2', 'V' and 'D', and you have to solve the equation, 'V=∫pi*(R1+R2-sqrt(R2^2-x^2...

6 månader ago | 1

| accepted

Answered

Non-bold font in multiline title (LaTEX)

Hi, I understand that you want to have a multi-line title with the first line bold and the remaining lines normal (non-bold). T...

Non-bold font in multiline title (LaTEX)

Hi, I understand that you want to have a multi-line title with the first line bold and the remaining lines normal (non-bold). T...

6 månader ago | 1

| accepted

Answered

Matrix inversion and LU Decomposition. Having issues with the for loops and how they reference inputs.

Hi Susanna, I understand that you want to obtain the upper and lower triangular matrices and solve the equation 'Ax=I', to find...

Matrix inversion and LU Decomposition. Having issues with the for loops and how they reference inputs.

Hi Susanna, I understand that you want to obtain the upper and lower triangular matrices and solve the equation 'Ax=I', to find...

6 månader ago | 0

Answered

Symbolic math Tool box "diff" and "dsolve" for optimal control

Hi Karthi, The issue you have stated has been fixed in MATLAB R2020b, i.e., from this version onwards, the 'diff' function can ...

Symbolic math Tool box "diff" and "dsolve" for optimal control

Hi Karthi, The issue you have stated has been fixed in MATLAB R2020b, i.e., from this version onwards, the 'diff' function can ...

6 månader ago | 0

Answered

How to extract the first Transfer function.

A possible way of solving this issue would be to solve the system of simultaneous equations and then use the 'tf' function to cr...

How to extract the first Transfer function.

A possible way of solving this issue would be to solve the system of simultaneous equations and then use the 'tf' function to cr...

8 månader ago | 0

Answered

Why doesn't matlabFunction properly vectorize the state of an ode system?

The symbols 'c' and 'd' can either be scalars or vectors.The vectorization for 'in3' is done as 'in3(1,:)' and 'in3(2,:)' so tha...

Why doesn't matlabFunction properly vectorize the state of an ode system?

The symbols 'c' and 'd' can either be scalars or vectors.The vectorization for 'in3' is done as 'in3(1,:)' and 'in3(2,:)' so tha...

8 månader ago | 0

Answered

does anyone know how to code this difference equation? I am suppose to use a filter function to expand the summation but i am not sure how?

Have a look at the following link for the documentation on the ‘filter’ function: https://www.mathworks.com/help/matlab/ref/fil...

does anyone know how to code this difference equation? I am suppose to use a filter function to expand the summation but i am not sure how?

Have a look at the following link for the documentation on the ‘filter’ function: https://www.mathworks.com/help/matlab/ref/fil...

8 månader ago | 0

Answered

Make equation in Curve Fitting tool

As Alex stated, it will be possible to tune the parameters of a predefined model, for example, by using ‘poly23’ fittype, to fit...

Make equation in Curve Fitting tool

As Alex stated, it will be possible to tune the parameters of a predefined model, for example, by using ‘poly23’ fittype, to fit...

8 månader ago | 0

Answered

How to change the position of a shared axis label in a TiledChartLayout?

For a tiled layout, changing the horizontal and vertical alignment properties of the text is possible. Refer to this link: htt...

How to change the position of a shared axis label in a TiledChartLayout?

For a tiled layout, changing the horizontal and vertical alignment properties of the text is possible. Refer to this link: htt...

8 månader ago | 0

| accepted

Answered

Error when trying to access timetable properties (Matrix index is out of range for deletion.)

The same data set is used to access the properties and error seems non- reproducible. The highlighted property, as shown in t...

Error when trying to access timetable properties (Matrix index is out of range for deletion.)

The same data set is used to access the properties and error seems non- reproducible. The highlighted property, as shown in t...

8 månader ago | 0

Answered

Runge-Kutta for solving differential equation with final value (backward integration)

The huge difference in the initial values is because the value of ‘h’ should be 2/N. This value is calculated as follows: h ...

Runge-Kutta for solving differential equation with final value (backward integration)

The huge difference in the initial values is because the value of ‘h’ should be 2/N. This value is calculated as follows: h ...

8 månader ago | 0

Answered

How do I label the scatter colorbar with month and day

I understand that you want to label the colorbar with month and day, even if it is plotted as a subplot. Generally, when the s...

How do I label the scatter colorbar with month and day

I understand that you want to label the colorbar with month and day, even if it is plotted as a subplot. Generally, when the s...

8 månader ago | 0