Answered

Apply a matrix to a function

Hi Johnny, As far as my understanding goes , it is not possible. Because when you create a symbolic function indexed with a lis...

Apply a matrix to a function

Hi Johnny, As far as my understanding goes , it is not possible. Because when you create a symbolic function indexed with a lis...

3 months ago | 0

| accepted

Answered

Symbolic Integration of two functions that are the gradient of a function

Hi Neil, I think on the line no 7 you meant : cond = P(0,0) == P_atm Now coming to your question dsolve is used to solve diff...

Symbolic Integration of two functions that are the gradient of a function

Hi Neil, I think on the line no 7 you meant : cond = P(0,0) == P_atm Now coming to your question dsolve is used to solve diff...

3 months ago | 0

Answered

Quadratic problem with integer variables and lineal constraints

Hi Paula , From my understanding you are talking about Mixed Integer Quadratic Problem. I think this doc can be very helpful fo...

Quadratic problem with integer variables and lineal constraints

Hi Paula , From my understanding you are talking about Mixed Integer Quadratic Problem. I think this doc can be very helpful fo...

3 months ago | 0

| accepted

Answered

Installation failed because of missing C compiler

Hi, From My understanding you are trying to install to R2020a version which doesn't support UBUNTU 20.04. See this document h...

Installation failed because of missing C compiler

Hi, From My understanding you are trying to install to R2020a version which doesn't support UBUNTU 20.04. See this document h...

3 months ago | 0

Answered

Plotting a surface from a two-dimensional matrix

Hi Mattia , Since we want to have permutation for the create the Surface plot , mex grid will of great use. It returns 2-D grid...

Plotting a surface from a two-dimensional matrix

Hi Mattia , Since we want to have permutation for the create the Surface plot , mex grid will of great use. It returns 2-D grid...

3 months ago | 0

Answered

Matlab license expiration, now?

Hi Bobby, On My end It is showing your Licence is valid till 2021-12-31 but still you can follow below procedures to removce th...

Matlab license expiration, now?

Hi Bobby, On My end It is showing your Licence is valid till 2021-12-31 but still you can follow below procedures to removce th...

3 months ago | 0

| accepted

Answered

I did not understand the error which is called 'Error using symengine: Array sizes must match.' What should i do?

Hi Mert, The Probelm arises in the 3rd iteration. In the 3rd Iteration x1 is size of 3x1 symfun and grad_x1 is size of 9x1 . ...

I did not understand the error which is called 'Error using symengine: Array sizes must match.' What should i do?

Hi Mert, The Probelm arises in the 3rd iteration. In the 3rd Iteration x1 is size of 3x1 symfun and grad_x1 is size of 9x1 . ...

3 months ago | 1

| accepted

Answered

Finding the derivative of a function with respect to the derivative of a variable

Hi Andrew , Walter Robinson has beautifully explained why there is problem with using diff(f,diff()) here. Now to get the desi...

Finding the derivative of a function with respect to the derivative of a variable

Hi Andrew , Walter Robinson has beautifully explained why there is problem with using diff(f,diff()) here. Now to get the desi...

3 months ago | 0

Answered

Installing Python Libraries in Matlab Online

Hi Anirudh , As you have correctly mentioned Mathworks recently added the support of calling python functions from Matab. Ref...

Installing Python Libraries in Matlab Online

Hi Anirudh , As you have correctly mentioned Mathworks recently added the support of calling python functions from Matab. Ref...

5 months ago | 0

| accepted

Answered

writing g code in matlab

Hi Vikash , refer to this ans: https://www.mathworks.com/matlabcentral/answers/311648-writing-gcode-with-matlab-how-to-repla...

writing g code in matlab

Hi Vikash , refer to this ans: https://www.mathworks.com/matlabcentral/answers/311648-writing-gcode-with-matlab-how-to-repla...

5 months ago | 0

Answered

How to insert error bars in interpolation plot?

Hi Sara, you can refer to the following documentation to plot error bars in interpolated plots: errorbars 1-d Data interpolat...

How to insert error bars in interpolation plot?

Hi Sara, you can refer to the following documentation to plot error bars in interpolated plots: errorbars 1-d Data interpolat...

5 months ago | 0

Answered

how do i assign count v

Hi Bredan , as Rik suggested you should go through MATLAB onramp tutorial if you want to learn the basics and , you can see fol...

how do i assign count v

Hi Bredan , as Rik suggested you should go through MATLAB onramp tutorial if you want to learn the basics and , you can see fol...

5 months ago | 0

Answered

MATLAB Simulink: Algebraic Loop Error 'Algebraic state in loop containing __ computed at time 0.0 is Inf or NaN'

This message may be caused by a singularity in your system. One situation where this may occur is if the values of your states d...

MATLAB Simulink: Algebraic Loop Error 'Algebraic state in loop containing __ computed at time 0.0 is Inf or NaN'

This message may be caused by a singularity in your system. One situation where this may occur is if the values of your states d...

5 months ago | 0

| accepted

Answered

Help needed with singularity in the solution?

Hi Yazan, This message may be caused by a singularity in your system. One situation where this may occur is if the values of yo...

Help needed with singularity in the solution?

Hi Yazan, This message may be caused by a singularity in your system. One situation where this may occur is if the values of yo...

5 months ago | 0

Answered

Which toolbox should I use?

Hi Tyler, The Signal Processing (SP) Toolbox is a prerequisite for the DSP System Toolbox. In general, you can think of the SP ...

Which toolbox should I use?

Hi Tyler, The Signal Processing (SP) Toolbox is a prerequisite for the DSP System Toolbox. In general, you can think of the SP ...

5 months ago | 1

Answered

How can I change the step time?

Hi, it can be the problem in the configuration settings of Scope block , try going to configuration settings of scope and ma...

How can I change the step time?

Hi, it can be the problem in the configuration settings of Scope block , try going to configuration settings of scope and ma...

5 months ago | 0

| accepted

Answered

Simulink stepブロックのステップ時間について

Hi, As Naoya clearly mentioned it can be the problem in the configuration settings of Scope block , try going to configuration...

Simulink stepブロックのステップ時間について

Hi, As Naoya clearly mentioned it can be the problem in the configuration settings of Scope block , try going to configuration...

5 months ago | 1

Answered

About Choosing MATRIX element

Hi, I think you want to know how you acces the array elements in a for loop. You can refer to this documentations: Array Index...

About Choosing MATRIX element

Hi, I think you want to know how you acces the array elements in a for loop. You can refer to this documentations: Array Index...

5 months ago | 0

Answered

How to create/access and update global variables in Simulink using Data Store Memory block

Hi Krupa, My understanding of your question is that you want to have a variable which change with every time step.So do that y...

How to create/access and update global variables in Simulink using Data Store Memory block

Hi Krupa, My understanding of your question is that you want to have a variable which change with every time step.So do that y...

5 months ago | 0

Answered

What is wrong with my waterfall plot?

Hi Kyle, Specify the value of the variables so that we can reproduce this on our end as well Thanks

What is wrong with my waterfall plot?

Hi Kyle, Specify the value of the variables so that we can reproduce this on our end as well Thanks

5 months ago | 0

Answered

Trouble with Matlab Engine

Hi Bledian, If you are able to install the MATLAB engine and you getting the error while calling the MATLAB engine in python th...

Trouble with Matlab Engine

Hi Bledian, If you are able to install the MATLAB engine and you getting the error while calling the MATLAB engine in python th...

5 months ago | 1

Answered

Reference Model and Algebraic loops

Hi leonidas, Basically, algebraic loops occur when an input port with direct feedthrough is driven by the output of the same bl...

Reference Model and Algebraic loops

Hi leonidas, Basically, algebraic loops occur when an input port with direct feedthrough is driven by the output of the same bl...

7 months ago | 0

Answered

Can't get simple for loop to run

Hi Alex , I think you are defining "results " variable wrong. From my understanding you want to results variable to be similar ...

Can't get simple for loop to run

Hi Alex , I think you are defining "results " variable wrong. From my understanding you want to results variable to be similar ...

7 months ago | 0

Answered

How to Plot variation of an output?

Hi Nataly, Follow the steps below : x = [ 1 : 1:100];%creating a array from 1 to 100 with step of 1 Cps = 1.2;%defining const...

How to Plot variation of an output?

Hi Nataly, Follow the steps below : x = [ 1 : 1:100];%creating a array from 1 to 100 with step of 1 Cps = 1.2;%defining const...

7 months ago | 0

Answered

How to remove the margins of a plot

Hi Hao Shi, Add these line of code to your answer : set(gca, 'Position', [0.02,0.1,1,0.82]) set(gcf,'OuterPosition',[50 50 68...

How to remove the margins of a plot

Hi Hao Shi, Add these line of code to your answer : set(gca, 'Position', [0.02,0.1,1,0.82]) set(gcf,'OuterPosition',[50 50 68...

7 months ago | 1

Answered

How to make graph using simulink display block

Hi Sourish, There are several ways to obtain graph. 1) First as Vasishtha mentioned you can "to workspace" block so it will e...

How to make graph using simulink display block

Hi Sourish, There are several ways to obtain graph. 1) First as Vasishtha mentioned you can "to workspace" block so it will e...

7 months ago | 0

Answered

How to calculate area in a binary image?

Hi Asmalina, 1) To find the area in pixel size we just need to find the number of white pixel which would be area = bwarea(bw)...

How to calculate area in a binary image?

Hi Asmalina, 1) To find the area in pixel size we just need to find the number of white pixel which would be area = bwarea(bw)...

7 months ago | 0

| accepted

Answered

example of linecirc function

Hi Manoj, linecirc gives the intersection points of a line and a circle. Syntax: [xout,yout] = linecirc(slope,intercpt,cent...

example of linecirc function

Hi Manoj, linecirc gives the intersection points of a line and a circle. Syntax: [xout,yout] = linecirc(slope,intercpt,cent...

7 months ago | 0

| accepted

Answered

Use Matlab code in Python after creating standalone package

Hi Maryam , The MATLAB Engine API for Python provides a package for Python to call MATLAB as a computational engine. The engin...

Use Matlab code in Python after creating standalone package

Hi Maryam , The MATLAB Engine API for Python provides a package for Python to call MATLAB as a computational engine. The engin...

7 months ago | 0

Answered

Saving a file in Matlab R2020a

Hey , On the Home tab, in the Environment section, click Preferences. From the left panel go to MATLAB->Editor/Debugger->Backup...

Saving a file in Matlab R2020a

Hey , On the Home tab, in the Environment section, click Preferences. From the left panel go to MATLAB->Editor/Debugger->Backup...

7 months ago | 0