Answered

I am new to using Matlab and have a question regarding the covariance function and generating random variables. I need to estimate P(X1^2 + X2^2 + X3^2 +X4^2) > 16 by generating Normal RV with a covariance and mean matrix. Thank you

Hi, The Statistics Toolbox has a function mvnrnd to generate jointly Gaussian random variables with specified means and cova...

I am new to using Matlab and have a question regarding the covariance function and generating random variables. I need to estimate P(X1^2 + X2^2 + X3^2 +X4^2) > 16 by generating Normal RV with a covariance and mean matrix. Thank you

Hi, The Statistics Toolbox has a function mvnrnd to generate jointly Gaussian random variables with specified means and cova...

nästan 7 år ago | 0

Answered

using Schroders iteration. How to start? I am new to matlab

Hi Cleven , I think you are looking for a way to represent the function 'f' and take it's differential. You can use the anon...

using Schroders iteration. How to start? I am new to matlab

Hi Cleven , I think you are looking for a way to represent the function 'f' and take it's differential. You can use the anon...

nästan 7 år ago | 0

Answered

Using the MATLAB library compiler for Java: compilation error

Hi Kriti, From the log it seems that the issue might be related to java configuration in your machine. Refer to the follow...

Using the MATLAB library compiler for Java: compilation error

Hi Kriti, From the log it seems that the issue might be related to java configuration in your machine. Refer to the follow...

nästan 7 år ago | 0

Answered

How to solve function with Bisection and Secant method

Hello AlyseW7, I have investigated on both code for Bisection and secant methods and have few observations, which I will dis...

How to solve function with Bisection and Secant method

Hello AlyseW7, I have investigated on both code for Bisection and secant methods and have few observations, which I will dis...

nästan 7 år ago | 3

Answered

How can i extract all element except 'SP' 'NS''GX' and need to put it as a colum with numeric columns?

Hi Nadeera, I am assuming that you have a set of cell arrays each of which represents the data set and you would like to extr...

How can i extract all element except 'SP' 'NS''GX' and need to put it as a colum with numeric columns?

Hi Nadeera, I am assuming that you have a set of cell arrays each of which represents the data set and you would like to extr...

nästan 7 år ago | 0

Answered

How can I plot this GUI ?

Hi Ercong, I understand that you want to execute the script and plot it. However, MATLAB is throwing error if trying to run d...

How can I plot this GUI ?

Hi Ercong, I understand that you want to execute the script and plot it. However, MATLAB is throwing error if trying to run d...

nästan 7 år ago | 0

Answered

How to find state transition matrix with symbolic parameters efficiently

Hi xianjie, I tried to execute the code you provided and found the same issue that it's running long time without giving the ...

How to find state transition matrix with symbolic parameters efficiently

Hi xianjie, I tried to execute the code you provided and found the same issue that it's running long time without giving the ...

nästan 7 år ago | 1

| accepted

Answered

Standard deviation across plots

Hi Sarah, You can take the approach described by Yona in earlier comments. If you don't have same number of data in all the v...

Standard deviation across plots

Hi Sarah, You can take the approach described by Yona in earlier comments. If you don't have same number of data in all the v...

nästan 7 år ago | 0

| accepted

Answered

display variables from workspace

Hi, The number of digits can be changed in the "View" tab. I don't think you can set the default column width. That's probably ...

display variables from workspace

Hi, The number of digits can be changed in the "View" tab. I don't think you can set the default column width. That's probably ...

nästan 7 år ago | 0

Answered

Comparing a signal reconstruction with given equation

Hi James , I observe some inconsistency in the definition of 'g_t' and compute of 'g_t' in the code. I think as per the d...

Comparing a signal reconstruction with given equation

Hi James , I observe some inconsistency in the definition of 'g_t' and compute of 'g_t' in the code. I think as per the d...

nästan 7 år ago | 0

Answered

How do i write a user defined function for problem 6.4 in the textbook?

Although I don't know the exact question, you can use in-built 'degrees2dms' function to convert degrees to dms using following ...

How do i write a user defined function for problem 6.4 in the textbook?

Although I don't know the exact question, you can use in-built 'degrees2dms' function to convert degrees to dms using following ...

nästan 7 år ago | 0

Answered

Does specific .m define particular function?

Hi Walter, The inbuilt function 'exist' can help you in this regards. It returns various code based on entity present as the ...

Does specific .m define particular function?

Hi Walter, The inbuilt function 'exist' can help you in this regards. It returns various code based on entity present as the ...

nästan 7 år ago | 0

Answered

How can I quickly change my model from a variable-step-size to a fixed-step size in order to generate a .dll file using simulink coder?

Hi Reese, You can change the model from variable step size to fixed step size by changing the 'Solver options' from 'model co...

How can I quickly change my model from a variable-step-size to a fixed-step size in order to generate a .dll file using simulink coder?

Hi Reese, You can change the model from variable step size to fixed step size by changing the 'Solver options' from 'model co...

nästan 7 år ago | 1

Answered

When I am trying to run my code, I am getting these errors: Error using size Too many input arguments. Error in cell/strcat (line 26) siz{i} = size(varargin{i}); Error in uiopen (line 63) allML(1)=strcat(allML(1), ';*.mdl;*.slx');

Hi vineeth , You are getting this error due the variable 'size' that you define in the second line of the code by using the s...

When I am trying to run my code, I am getting these errors: Error using size Too many input arguments. Error in cell/strcat (line 26) siz{i} = size(varargin{i}); Error in uiopen (line 63) allML(1)=strcat(allML(1), ';*.mdl;*.slx');

Hi vineeth , You are getting this error due the variable 'size' that you define in the second line of the code by using the s...

nästan 7 år ago | 1

Answered

Creating a circular plate

Hi Vaibhav, The following link can help you: http://www.mathworks.com/matlabcentral/fileexchange/33731-meshing-a-plate-usi...

Creating a circular plate

Hi Vaibhav, The following link can help you: http://www.mathworks.com/matlabcentral/fileexchange/33731-meshing-a-plate-usi...

nästan 7 år ago | 0

Answered

How can I programmitcally "click" on a block mask action button?

Hi Jason, I understand that you would like to execute the callback programmatically. You can use the 'evalin' function to a...

How can I programmitcally "click" on a block mask action button?

Hi Jason, I understand that you would like to execute the callback programmatically. You can use the 'evalin' function to a...

nästan 7 år ago | 0

Answered

How does MATLAB generate Halton sequences

Hi Eric, You can get the Name of the sequence on which point set P is based from 'Type' property of P. So, the code snippet ...

How does MATLAB generate Halton sequences

Hi Eric, You can get the Name of the sequence on which point set P is based from 'Type' property of P. So, the code snippet ...

nästan 7 år ago | 0

Answered

Add and delete Line and port

Hi Laurensius, My understanding from the question is that you would like to perform different action when the popup list ele...

Add and delete Line and port

Hi Laurensius, My understanding from the question is that you would like to perform different action when the popup list ele...

nästan 7 år ago | 0

| accepted

Answered

can you run matlab experiments online

Hi Catrine, My understanding from the question is that you would like to execute existing MATLAB program online. You can lo...

can you run matlab experiments online

Hi Catrine, My understanding from the question is that you would like to execute existing MATLAB program online. You can lo...

nästan 7 år ago | 0

Answered

can Someone tell me how i can fix GPS-data to caculate distance between two Points?

Hi Joel, You may refer to following links which explains well how to find distance between two GPS points: http://in.mathw...

can Someone tell me how i can fix GPS-data to caculate distance between two Points?

Hi Joel, You may refer to following links which explains well how to find distance between two GPS points: http://in.mathw...

nästan 7 år ago | 0

Answered

Implementations of plsregress on 2015b and 2013a

Hi Yoshihiro , I have reproduced the issue at my end. However, there is no mention of any modification of this function in the...

Implementations of plsregress on 2015b and 2013a

Hi Yoshihiro , I have reproduced the issue at my end. However, there is no mention of any modification of this function in the...

nästan 7 år ago | 0

| accepted

Answered

Digitization and interpolation of contour map.

This issue might be due to the fact that there were some change in all the 'interp' functions in MATLAB release R2013b. As a wor...

Digitization and interpolation of contour map.

This issue might be due to the fact that there were some change in all the 'interp' functions in MATLAB release R2013b. As a wor...

nästan 7 år ago | 0

Answered

looking for equivalent in MATLAB of "where variable1 in ('a', 'b','c')" in SQL

Hi Binzi, I understand from the query that you have two arrays and you would like to find out the elements in the first array...

looking for equivalent in MATLAB of "where variable1 in ('a', 'b','c')" in SQL

Hi Binzi, I understand from the query that you have two arrays and you would like to find out the elements in the first array...

nästan 7 år ago | 0

Answered

How can I combine probability distribution objects?

I understand that you would like to achieve pooled weighted distribution of two distributions. There is no in-built functions i...

How can I combine probability distribution objects?

I understand that you would like to achieve pooled weighted distribution of two distributions. There is no in-built functions i...

ungefär 7 år ago | 0

Answered

How to populate a n-d lookup table from the workspace in R2011b?

I understand that you would like to put some variables in 'Table data' parameter of 'n-D Lookup Table' block and simulate the mo...

How to populate a n-d lookup table from the workspace in R2011b?

I understand that you would like to put some variables in 'Table data' parameter of 'n-D Lookup Table' block and simulate the mo...

ungefär 7 år ago | 0

Answered

Is there anyway to change the code generation options(Storage class, HeaderFile attribute) automatically based on name given to the new object in model explorer?

I understand that you would like to set the 'Code Generation Options' based on the name of the Data Object of a Data Class. T...

Is there anyway to change the code generation options(Storage class, HeaderFile attribute) automatically based on name given to the new object in model explorer?

I understand that you would like to set the 'Code Generation Options' based on the name of the Data Object of a Data Class. T...

ungefär 7 år ago | 0

Answered

How do i count the time the pulse is at 0 state for a square wave in Simulink?

I understand that you would like to get the cumulative time when the engine is off. You can achieve this functionality using 'st...

How do i count the time the pulse is at 0 state for a square wave in Simulink?

I understand that you would like to get the cumulative time when the engine is off. You can achieve this functionality using 'st...

ungefär 7 år ago | 0

Answered

Matlab functions - summation

My understanding is that you would like to have some alternative for symbolic math in 'Mathematica' for function call. From t...

Matlab functions - summation

My understanding is that you would like to have some alternative for symbolic math in 'Mathematica' for function call. From t...

ungefär 7 år ago | 0

Answered

Lung segmentation with image processing

I understand that you would like to segment a image into different portions based on color. You can create segments of the image...

Lung segmentation with image processing

I understand that you would like to segment a image into different portions based on color. You can create segments of the image...

ungefär 7 år ago | 0

Answered

plot heat map on map using Latitude, Longitude and my data value

I understand that you would like to put color for the circles created on the map. You can do this by sending 'facecolor' as an ...

plot heat map on map using Latitude, Longitude and my data value

I understand that you would like to put color for the circles created on the map. You can do this by sending 'facecolor' as an ...

ungefär 7 år ago | 1