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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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