Answered

How to protect paramaters in look-up table in Simulink?

Hi Ozan, I understand that the issue is with protecting the parameters of the Look-up Table while code generation from the prot...

How to protect paramaters in look-up table in Simulink?

Hi Ozan, I understand that the issue is with protecting the parameters of the Look-up Table while code generation from the prot...

2 månader ago | 0

| accepted

Answered

Can I ask how to change the border color of NumericEditField in MATLAB App designer

Hello Han, The NumericEditField doesn't have any property for editing the border color. A possible workaround would be to encap...

Can I ask how to change the border color of NumericEditField in MATLAB App designer

Hello Han, The NumericEditField doesn't have any property for editing the border color. A possible workaround would be to encap...

2 månader ago | 0

| accepted

Answered

Input signal varies in size, how to get previous values of signal?

Hello Phan, I understand that the issue faced is with delaying a variable sized signal using a unit delay block. You may refer ...

Input signal varies in size, how to get previous values of signal?

Hello Phan, I understand that the issue faced is with delaying a variable sized signal using a unit delay block. You may refer ...

2 månader ago | 0

Answered

Change number of Ports on a Simulink Block

Hello John, You could have a look at Dynamic masked subsystems documentation. There is an example on varying number of input po...

Change number of Ports on a Simulink Block

Hello John, You could have a look at Dynamic masked subsystems documentation. There is an example on varying number of input po...

2 månader ago | 0

Answered

Simulate a solar system

Hello Jesus, I understand that the issue faced here is that the simulation depicts only one planet at a time but the requiremen...

Simulate a solar system

Hello Jesus, I understand that the issue faced here is that the simulation depicts only one planet at a time but the requiremen...

2 månader ago | 0

Answered

app designer UI Table with calculation ability

Hi Liu, You could leverage the "CellEditCallback" callback function of the uitable to add functionalities to any cell of the ui...

app designer UI Table with calculation ability

Hi Liu, You could leverage the "CellEditCallback" callback function of the uitable to add functionalities to any cell of the ui...

3 månader ago | 0

Answered

Is there a way to use "SizeChangedFcn" with "Resize" and "AutoResizeChildren" properties on?

Hi Peter, Please follow the instructions in the following MATLAB Answers page: https://www.mathworks.com/matlabcentral/answer...

Is there a way to use "SizeChangedFcn" with "Resize" and "AutoResizeChildren" properties on?

Hi Peter, Please follow the instructions in the following MATLAB Answers page: https://www.mathworks.com/matlabcentral/answer...

3 månader ago | 0

Answered

setting an output value as a threshold value for finding local maxima block in simulink

Hi Ramon, The Peak Finder block in Simulink accepts threshold as a property. So, it cannot be changed during the simulation run...

setting an output value as a threshold value for finding local maxima block in simulink

Hi Ramon, The Peak Finder block in Simulink accepts threshold as a property. So, it cannot be changed during the simulation run...

3 månader ago | 1

Answered

Stop data plotting in Matlab App Designer

Hi Ashleigh, I understand that the issue is regarding the integration of stop button with the uiaxes. You could look at the att...

Stop data plotting in Matlab App Designer

Hi Ashleigh, I understand that the issue is regarding the integration of stop button with the uiaxes. You could look at the att...

3 månader ago | 0

Answered

How can I use a customized figure-function to show over UIAxes in app designer?

Hi Mohammad, You could look at the following code snippet: SeqLogoFig(sequence,'AXES_HANDLE',app.UIAxes,'alphabet','aa','cutof...

How can I use a customized figure-function to show over UIAxes in app designer?

Hi Mohammad, You could look at the following code snippet: SeqLogoFig(sequence,'AXES_HANDLE',app.UIAxes,'alphabet','aa','cutof...

3 månader ago | 0

| accepted

Answered

Need help calculating BPM from ECG

Hi Usama, I understand that the issue is related to the Heart rate computation in BPM. As per the code attached, the 'Heartrate...

Need help calculating BPM from ECG

Hi Usama, I understand that the issue is related to the Heart rate computation in BPM. As per the code attached, the 'Heartrate...

3 månader ago | 0

Answered

Read table data from url

Hi Ashley, Please go through the below MATLAB answer and File Exchange posts: http://blogs.mathworks.com/pick/2010/08/20/get-h...

Read table data from url

Hi Ashley, Please go through the below MATLAB answer and File Exchange posts: http://blogs.mathworks.com/pick/2010/08/20/get-h...

3 månader ago | 0

Answered

How to use array data for successive operations

Hi Laura, You could leverage vectorization techniques to solve the problem. Have a look at the following code: A = [4.6; 9.3; ...

How to use array data for successive operations

Hi Laura, You could leverage vectorization techniques to solve the problem. Have a look at the following code: A = [4.6; 9.3; ...

3 månader ago | 0

| accepted

Answered

How can I plot my figures like attached plots?

Hi Nisar, (1) You could use axes to add multiple axes to the same figure & then alter their properties as per your requirements...

How can I plot my figures like attached plots?

Hi Nisar, (1) You could use axes to add multiple axes to the same figure & then alter their properties as per your requirements...

3 månader ago | 0

| accepted

Answered

How to plot arbitrary line slice against x or y axis in a table?

Hi Biswajit, You could use the VariableNames property of the table to get the column names which are actually the x axis data a...

How to plot arbitrary line slice against x or y axis in a table?

Hi Biswajit, You could use the VariableNames property of the table to get the column names which are actually the x axis data a...

7 månader ago | 0

| accepted

Answered

How to sum according to specific ranges within same table?

Hi Hedi, You could load the excel file as a table. You could refer to this documentation page link for more details. The follow...

How to sum according to specific ranges within same table?

Hi Hedi, You could load the excel file as a table. You could refer to this documentation page link for more details. The follow...

7 månader ago | 1

| accepted

Answered

Gauss-Seidel Method in Matlab

Hi Zhukun, You could use another vector y to store the values in the vector x and compare the updated x vector to the vector y ...

Gauss-Seidel Method in Matlab

Hi Zhukun, You could use another vector y to store the values in the vector x and compare the updated x vector to the vector y ...

7 månader ago | 0

Answered

Add cartesian axes to polarscatter?

Hi Maximilian, You could try the following workaround: 1) You could make use of axes and polaraxes commands and their properti...

Add cartesian axes to polarscatter?

Hi Maximilian, You could try the following workaround: 1) You could make use of axes and polaraxes commands and their properti...

7 månader ago | 0

| accepted

Answered

How can I plot 2 data in 1 graph and find common peak

Hi Phudit, You can refer to documentation of hold function to plot 2 different plots on same figure. To calculate the common pe...

How can I plot 2 data in 1 graph and find common peak

Hi Phudit, You can refer to documentation of hold function to plot 2 different plots on same figure. To calculate the common pe...

7 månader ago | 0

| accepted

Answered

Simulink execution for plant transfer function

Hi Ketan, You can refer to the documentations of LTI system and Transfer Fcn blocks to generate the transfer functions. For t...

Simulink execution for plant transfer function

Hi Ketan, You can refer to the documentations of LTI system and Transfer Fcn blocks to generate the transfer functions. For t...

7 månader ago | 0

Answered

How can I prevent update of x(i) at each step of the loop? Essentially, this is a code for Gauss Seidel. How do I modify it to make it Jacobi iterative method?

Hi Avinash, You could try assigning the values stored in x into another variable y at the start of the loop and use the y value...

How can I prevent update of x(i) at each step of the loop? Essentially, this is a code for Gauss Seidel. How do I modify it to make it Jacobi iterative method?

Hi Avinash, You could try assigning the values stored in x into another variable y at the start of the loop and use the y value...

7 månader ago | 0

| accepted

Answered

Solve dispersion equation (8). I know h, d, ua and u. How can I solve such equation in matlab

Hi Vishal, You can declare beta as a symbolic variable and use solve function to solve the dispersion equation. You can refer t...

Solve dispersion equation (8). I know h, d, ua and u. How can I solve such equation in matlab

Hi Vishal, You can declare beta as a symbolic variable and use solve function to solve the dispersion equation. You can refer t...

7 månader ago | 0

Answered

How to identify exact coordinates of a circle on geoshow?

Hi Eitvydas, A possible workaround is to use scxsc function to calculate the intersection of 2 circles of interest whose center...

How to identify exact coordinates of a circle on geoshow?

Hi Eitvydas, A possible workaround is to use scxsc function to calculate the intersection of 2 circles of interest whose center...

7 månader ago | 0

Answered

Loop imagesc together for traffic simulation

Hi Anthony, You could look at the following code: rw = 11; rl = 40; road = zeros(rw,rl); xpos1 = 1; ypos1 = 3; xpos2 = ...

Loop imagesc together for traffic simulation

Hi Anthony, You could look at the following code: rw = 11; rl = 40; road = zeros(rw,rl); xpos1 = 1; ypos1 = 3; xpos2 = ...

7 månader ago | 0

Answered

How do I create and square polynomial equations

Hi Karan, You could generate the equation of transfer function in MATLAB using tf command. You could also use feedback function...

How do I create and square polynomial equations

Hi Karan, You could generate the equation of transfer function in MATLAB using tf command. You could also use feedback function...

7 månader ago | 0

Answered

How to read each value of a column and replace it with another value when a rule is met?

Hi Rebeca, You could use for loops and if conditions with proper boundary conditions as required to solve the problem. To speed...

How to read each value of a column and replace it with another value when a rule is met?

Hi Rebeca, You could use for loops and if conditions with proper boundary conditions as required to solve the problem. To speed...

7 månader ago | 0

Answered

How to plot Mhz signal in simulink

Hi Bhavish, The possible issue might be the simulation time. Since the signal frequency is in the MHz range, you can reduce the...

How to plot Mhz signal in simulink

Hi Bhavish, The possible issue might be the simulation time. Since the signal frequency is in the MHz range, you can reduce the...

7 månader ago | 0

Answered

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-2.

Hi Shaan, The error is due to the line 15 of the function Basic_Euler: w1i(1:neqn1,i+1) = x1; The size of x1 is getting chang...

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-2.

Hi Shaan, The error is due to the line 15 of the function Basic_Euler: w1i(1:neqn1,i+1) = x1; The size of x1 is getting chang...

7 månader ago | 1

Answered

Simulink with AWGN channel

Hi Jozef, You can refer to the documentation of sine wave block in Simulink. It supports the parameters like amplitude, frequen...

Simulink with AWGN channel

Hi Jozef, You can refer to the documentation of sine wave block in Simulink. It supports the parameters like amplitude, frequen...

7 månader ago | 0

Answered

How to solve SIR model with ode45?

You can refer to the following code: [t,dYdt] = odeOut; function [t,dYdt] = odeOut % time dependent window tRange = linsp...

How to solve SIR model with ode45?

You can refer to the following code: [t,dYdt] = odeOut; function [t,dYdt] = odeOut % time dependent window tRange = linsp...

7 månader ago | 0