Answered

ROS raspberry pi and teensy?

Hi There is a similar question of using both raspberry pi and Arduino using Simulink. You may find it here: https://www.mathwo...

ROS raspberry pi and teensy?

Hi There is a similar question of using both raspberry pi and Arduino using Simulink. You may find it here: https://www.mathwo...

10 months ago | 0

Answered

find function in for loop

Hi In the below lines of code, you are assigning the output of "find" which is an array of values to an element of "fixation_o...

find function in for loop

Hi In the below lines of code, you are assigning the output of "find" which is an array of values to an element of "fixation_o...

10 months ago | 0

Answered

How can I create a plot for 2 different groups?

Hi As per my understanding, you are trying to plot the two groups that are differentiated by the line g = findgroups(id_group...

How can I create a plot for 2 different groups?

Hi As per my understanding, you are trying to plot the two groups that are differentiated by the line g = findgroups(id_group...

10 months ago | 0

Answered

Variable 'a11' has been deleted from base workspace

Hi Try defining the variable in the model itself. You can do it in this way, open "Model settings -> Model properties" and ini...

Variable 'a11' has been deleted from base workspace

Hi Try defining the variable in the model itself. You can do it in this way, open "Model settings -> Model properties" and ini...

10 months ago | 0

Answered

lot of throughput doesn't shown

Hi The variable “Throughput” is defined in two ways in your code Throughput=B.*log2(1+(10.^(SNIR(end)/10))); Throughput=Thr...

lot of throughput doesn't shown

Hi The variable “Throughput” is defined in two ways in your code Throughput=B.*log2(1+(10.^(SNIR(end)/10))); Throughput=Thr...

10 months ago | 0

Answered

Read thousands of xls file from a folder fast.

Hi https://www.mathworks.com/help/matlab/ref/xlsread.html As per the above linked documentation, it is suggested that you use ...

Read thousands of xls file from a folder fast.

Hi https://www.mathworks.com/help/matlab/ref/xlsread.html As per the above linked documentation, it is suggested that you use ...

11 months ago | 0

Answered

Index exceeds the number of array elements (1).

Hi This error is caused because you are attempting to reference a nonexistent element of an array.Common causes for this may be...

Index exceeds the number of array elements (1).

Hi This error is caused because you are attempting to reference a nonexistent element of an array.Common causes for this may be...

11 months ago | 0

Answered

Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Hi Since you are using optimValues.x, optimValues must support dot indexing. The error in line 4 usually arise when optimValues...

Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Hi Since you are using optimValues.x, optimValues must support dot indexing. The error in line 4 usually arise when optimValues...

11 months ago | 0

Answered

discrete time simulations sampling rate question

Hi The output for step size of 5 seconds and 0.005 seconds are the same. The only difference is that there should be enough si...

discrete time simulations sampling rate question

Hi The output for step size of 5 seconds and 0.005 seconds are the same. The only difference is that there should be enough si...

11 months ago | 0

| accepted

Answered

bining x in plots

Hi Try replacing plot(x,y) to semilogx(x,y) ‘semilogx’ turns the x-axis to a Logarithmic scale as in the figure that you...

bining x in plots

Hi Try replacing plot(x,y) to semilogx(x,y) ‘semilogx’ turns the x-axis to a Logarithmic scale as in the figure that you...

11 months ago | 1

Answered

discrete time simulations sampling rate question

Hi There is a difference between the sample time of signal and the step size you set for Simulink solver. Step size determine...

discrete time simulations sampling rate question

Hi There is a difference between the sample time of signal and the step size you set for Simulink solver. Step size determine...

11 months ago | 0

Answered

Set-up of a coherent receiver / comparison with Hilbert Transform: Error using phased.ReceiverPreamp/parenReference Not enough input arguments. Expected 2 (in addition to System object), got 1.

Hi, You have set the property “PhaseNoiseInputPort” to 'true'. The documentation page says that whenever you set it to 'true', ...

Set-up of a coherent receiver / comparison with Hilbert Transform: Error using phased.ReceiverPreamp/parenReference Not enough input arguments. Expected 2 (in addition to System object), got 1.

Hi, You have set the property “PhaseNoiseInputPort” to 'true'. The documentation page says that whenever you set it to 'true', ...

11 months ago | 0

| accepted

Answered

multiple check box on a graph

Hi, You can make use of AppDesigner for this. This link might be helpful in knowing checkboxes and assigning callbacks to it. ...

multiple check box on a graph

Hi, You can make use of AppDesigner for this. This link might be helpful in knowing checkboxes and assigning callbacks to it. ...

11 months ago | 0

Answered

How to fix cropped legend of non-default sized plot figure?

Hi There is a possible way that can be considered in case of changing marker size of legend. Create a second, hidden plot with...

How to fix cropped legend of non-default sized plot figure?

Hi There is a possible way that can be considered in case of changing marker size of legend. Create a second, hidden plot with...

11 months ago | 0

Answered

Stuck in endless loop

Hi, As per my understanding, you are trying to find the mean of grid at each layer. In your case, if the output of rain(y,x,t) ...

Stuck in endless loop

Hi, As per my understanding, you are trying to find the mean of grid at each layer. In your case, if the output of rain(y,x,t) ...

11 months ago | 0

Answered

How do I get the value at a particular index?

Hi Consider A as the matrix, and x as indices, then Values = A(x) In case you need value of a 2-D matrix, define 'rowMatrix'...

How do I get the value at a particular index?

Hi Consider A as the matrix, and x as indices, then Values = A(x) In case you need value of a 2-D matrix, define 'rowMatrix'...

11 months ago | 0

Answered

"This canvas does not support painters" error flooding command window

I understand that you were receiving the error "canvas does not support painters" on opening your App with AppDesigner in MATLAB...

"This canvas does not support painters" error flooding command window

I understand that you were receiving the error "canvas does not support painters" on opening your App with AppDesigner in MATLAB...

11 months ago | 0

Answered

Error in code for legend plot

Hi The major error that I observe in your code is "Too many input arguments" to the function "pose_dot". Make sure you decre...

Error in code for legend plot

Hi The major error that I observe in your code is "Too many input arguments" to the function "pose_dot". Make sure you decre...

12 months ago | 0

Answered

Creating/importing a simple geometry in PDE for thermal analysis

Hi As of R2019b, importing multidomain geometries from STL files is not supported. MATLAB will interpret the entire STL file as...

Creating/importing a simple geometry in PDE for thermal analysis

Hi As of R2019b, importing multidomain geometries from STL files is not supported. MATLAB will interpret the entire STL file as...

12 months ago | 1

| accepted

Answered

Error Histfit too many arguments

Hi To display both curves in same histogram, try using below command after gamma distribution using "histfit": hold on; and ...

Error Histfit too many arguments

Hi To display both curves in same histogram, try using below command after gamma distribution using "histfit": hold on; and ...

12 months ago | 0

Answered

How to make a ramp function that start in point a and finish in point b. [a,b]. And with value 0 outside the interval

Hi A small modification in the code you defined for the interval [a,b]. Using this line would yield you the expected result. ...

How to make a ramp function that start in point a and finish in point b. [a,b]. And with value 0 outside the interval

Hi A small modification in the code you defined for the interval [a,b]. Using this line would yield you the expected result. ...

12 months ago | 0

Answered

License manager error - 97

Hi Go through the following link, it might help you: https://www.mathworks.com/matlabcentral/answers/97558-why-do-i-receive-l...

License manager error - 97

Hi Go through the following link, it might help you: https://www.mathworks.com/matlabcentral/answers/97558-why-do-i-receive-l...

1 year ago | 0

Answered

I need to cancel my purchase

Hi You may contact support@mathworks.com for any purchase, license or installation related issues. Hope this helps!

I need to cancel my purchase

Hi You may contact support@mathworks.com for any purchase, license or installation related issues. Hope this helps!

1 year ago | 0

Answered

OFDM Synchronisation Example Not Working

Hi There might be few reasons in this case of wrong synchronization like Preamble might not be present in the frame that you ...

OFDM Synchronisation Example Not Working

Hi There might be few reasons in this case of wrong synchronization like Preamble might not be present in the frame that you ...

1 year ago | 0

Answered

How to modify Cone Clutch in SimScape Driveline?

Hi Modifying a block parameter makes you achieve this. Under the block parameters of cone clutch, change the parameter from Phy...

How to modify Cone Clutch in SimScape Driveline?

Hi Modifying a block parameter makes you achieve this. Under the block parameters of cone clutch, change the parameter from Phy...

1 year ago | 0

Answered

VHDL OSVVM for verification supported?

Hi As of now, there is no support for VHDL OSVVM in MATLAB. It might be supported by MATLAB in future releases. Instead you ...

VHDL OSVVM for verification supported?

Hi As of now, there is no support for VHDL OSVVM in MATLAB. It might be supported by MATLAB in future releases. Instead you ...

1 year ago | 0

Answered

Develop a signal from a MATLAB block with a different sample rate

You can run the MATLAB function block at a sample time of 0.2ms by setting the solver step size to 0.0002 seconds (create 200 x ...

Develop a signal from a MATLAB block with a different sample rate

You can run the MATLAB function block at a sample time of 0.2ms by setting the solver step size to 0.0002 seconds (create 200 x ...

1 year ago | 0

| accepted

Answered

Adaptive MPC controller, Oscillatory overshooting before starts tracking, need to know how to settle the overshoot, please.

Hi If system does not have complex poles, then there is no chance for oscillatory overshoots. So, make sure that your system de...

Adaptive MPC controller, Oscillatory overshooting before starts tracking, need to know how to settle the overshoot, please.

Hi If system does not have complex poles, then there is no chance for oscillatory overshoots. So, make sure that your system de...

1 year ago | 0

Answered

Polynomial MLR to fit multiple compositional values to single value for large data set?

You can try using custom models in curve fitting toolbox under linear and non-linear regression to define custom equations. The ...

Polynomial MLR to fit multiple compositional values to single value for large data set?

You can try using custom models in curve fitting toolbox under linear and non-linear regression to define custom equations. The ...

1 year ago | 0

Answered

using Accelstepper arduino library in MATLAB using the MATLAB support package

Hi To control a stepper motor in MATLAB, you can follow the link below: https://www.mathworks.com/help/physmod/sps/examples/s...

using Accelstepper arduino library in MATLAB using the MATLAB support package

Hi To control a stepper motor in MATLAB, you can follow the link below: https://www.mathworks.com/help/physmod/sps/examples/s...

1 year ago | 0