Answered

Break a while loop in a GUI Pushbutton

Hi MINKYUNG KIM, below you find an example for breaking a while loop within a pushbutton controlled GUI. The data exchange is d...

Break a while loop in a GUI Pushbutton

Hi MINKYUNG KIM, below you find an example for breaking a while loop within a pushbutton controlled GUI. The data exchange is d...

14 hours ago | 0

Answered

Separating and reprinting a big string

Hi bws1007: The string to write needs to be scalar. The command fwrite() is used to write into binary format, thus it does not ...

Separating and reprinting a big string

Hi bws1007: The string to write needs to be scalar. The command fwrite() is used to write into binary format, thus it does not ...

19 days ago | 0

Answered

Linear scale to Log scale in CWT

Hi Raviteja, the command cwt() allows to use the output matrix of the wavelet transform to produce your own plots. One possibil...

Linear scale to Log scale in CWT

Hi Raviteja, the command cwt() allows to use the output matrix of the wavelet transform to produce your own plots. One possibil...

20 days ago | 0

Answered

Get frequency value from the Continuous Wavelet Transform

Hi Angus Joyce: You did not provide any data, thus I could not work on your example. The mathworks example files for wavelet tr...

Get frequency value from the Continuous Wavelet Transform

Hi Angus Joyce: You did not provide any data, thus I could not work on your example. The mathworks example files for wavelet tr...

20 days ago | 1

| accepted

Answered

Integrate for a specific period of time

Hi Allison, you can use one of Matlab's integrated ODE solvers to solve your differential equation. The code below makes use of...

Integrate for a specific period of time

Hi Allison, you can use one of Matlab's integrated ODE solvers to solve your differential equation. The code below makes use of...

1 month ago | 0

Answered

This how i want the plot to be

Hi idowu Abdul-Semiu, There are several plot-commands that support the image you are showing. Have a look for the following com...

This how i want the plot to be

Hi idowu Abdul-Semiu, There are several plot-commands that support the image you are showing. Have a look for the following com...

1 month ago | 0

Answered

Find rows in matrix based on columns value

Hi Steward Tan, in the given matrix there is no single column that contains the values 10 AND 11. If you want to find the rows ...

Find rows in matrix based on columns value

Hi Steward Tan, in the given matrix there is no single column that contains the values 10 AND 11. If you want to find the rows ...

1 month ago | 1

| accepted

Answered

Eliminate algebraic loop without using memory block

Hi Boru Wang, there is an article about "Remove Algebraic Loops" in the Matlab documentation: https://de.mathworks.com/help/sim...

Eliminate algebraic loop without using memory block

Hi Boru Wang, there is an article about "Remove Algebraic Loops" in the Matlab documentation: https://de.mathworks.com/help/sim...

2 months ago | 0

Answered

How to filter a signal?

Hi Bandw W, if you would like to simulate the output you can use lsim(): %% filter signal % create system myFilter = tf(num1...

How to filter a signal?

Hi Bandw W, if you would like to simulate the output you can use lsim(): %% filter signal % create system myFilter = tf(num1...

2 months ago | 0

Answered

Find the minimum of a function and use it to plot a graph.

Hi JACINTA ONWUKA, I do not know what you expect as output. The graph you are trying to plot is produced with every iteration. ...

Find the minimum of a function and use it to plot a graph.

Hi JACINTA ONWUKA, I do not know what you expect as output. The graph you are trying to plot is produced with every iteration. ...

3 months ago | 0

Answered

How to get different colours for different regions for this problem

Hi pallav pal, one example patch as requested. All others can be drawn accordingly. x1=0:.00001:1; x2=0:.00001:.334; y1=x1...

How to get different colours for different regions for this problem

Hi pallav pal, one example patch as requested. All others can be drawn accordingly. x1=0:.00001:1; x2=0:.00001:.334; y1=x1...

4 months ago | 0

| accepted

Answered

How to implement an adder without using adder block in Simulink

Hello Gowtham Gowda, my suggestion would be to use the implementation of a full adder which performs bitwise logical operations...

How to implement an adder without using adder block in Simulink

Hello Gowtham Gowda, my suggestion would be to use the implementation of a full adder which performs bitwise logical operations...

5 months ago | 0

Answered

Weird answer for function when dividing two fractions

Hi Katy Soto, type the following to command line to prevent Matlab from shortening output: format long g Then output of your ...

Weird answer for function when dividing two fractions

Hi Katy Soto, type the following to command line to prevent Matlab from shortening output: format long g Then output of your ...

6 months ago | 0

| accepted

Answered

Adjust the phase offset when using data from 'bode'

Hi Romain Liechti, if you want - as you write - stick to the bode output you should correct the phase by a reference phase shif...

Adjust the phase offset when using data from 'bode'

Hi Romain Liechti, if you want - as you write - stick to the bode output you should correct the phase by a reference phase shif...

6 months ago | 0

| accepted

Answered

Adjust the phase offset when using data from 'bode'

Hi Romain Liechti, in order to customize the frequency response plot you could use bodeplot() instead of bode(). There, you can...

Adjust the phase offset when using data from 'bode'

Hi Romain Liechti, in order to customize the frequency response plot you could use bodeplot() instead of bode(). There, you can...

6 months ago | 0

Answered

How to use the Levenberg-Marquardt algorithm to fitting data and get the first derivative?

Hi Nelson Saraiva, The Levenberg-Marquardt algorithm is already ready-to-use implemented into optimization toolbox: https://de....

How to use the Levenberg-Marquardt algorithm to fitting data and get the first derivative?

Hi Nelson Saraiva, The Levenberg-Marquardt algorithm is already ready-to-use implemented into optimization toolbox: https://de....

8 months ago | 0

Answered

How do I analyze the response of a curve as it passes through a filter?

Hi Karthik Mahesh, have a look into function lsim(). This function provides response of linear systems in time domain. Kind re...

How do I analyze the response of a curve as it passes through a filter?

Hi Karthik Mahesh, have a look into function lsim(). This function provides response of linear systems in time domain. Kind re...

9 months ago | 0

Answered

Shade area under curve between two x values

Hi pvtstaticvoid: You may define different intervals with area()-function. Using hold you can plot into the same axes as the fu...

Shade area under curve between two x values

Hi pvtstaticvoid: You may define different intervals with area()-function. Using hold you can plot into the same axes as the fu...

9 months ago | 1

| accepted

Answered

Systems Transfer Functions (tf.m)

Hi Andrew Kay, here is an example to show you one possible workflow to tackle the described task: % create transfer function w...

Systems Transfer Functions (tf.m)

Hi Andrew Kay, here is an example to show you one possible workflow to tackle the described task: % create transfer function w...

9 months ago | 1

Answered

Why properties of class is not initialized ?

Hi Hafiz Luqman The class definition you posted is errornous. The property "H_laser_" is not defined. So the constructor return...

Why properties of class is not initialized ?

Hi Hafiz Luqman The class definition you posted is errornous. The property "H_laser_" is not defined. So the constructor return...

10 months ago | 1

Answered

How to fprintf directory name?

Hi Alon Rozen, There are some syntax issues in your example: Dir_Name = uigetdir; Log_File = fopen('My_Log_File.txt','a');...

How to fprintf directory name?

Hi Alon Rozen, There are some syntax issues in your example: Dir_Name = uigetdir; Log_File = fopen('My_Log_File.txt','a');...

10 months ago | 1

| accepted

Answered

How can I implement this algorithm in matlab?

Hi Mark N There are some issues with the your matlab syntax. function [v,x] = semi_implicit(k,m,dt,T,x0,v0) % check input...

How can I implement this algorithm in matlab?

Hi Mark N There are some issues with the your matlab syntax. function [v,x] = semi_implicit(k,m,dt,T,x0,v0) % check input...

11 months ago | 1

Answered

Pre-amplification, filtering and amplification

Hello Ricardo Whitaker: I assume the CH1 signal is a vector of doubles. * The desired filter causes errors since frequenc...

Pre-amplification, filtering and amplification

Hello Ricardo Whitaker: I assume the CH1 signal is a vector of doubles. * The desired filter causes errors since frequenc...

11 months ago | 0

Answered

How to import text file and sort it into arrays

Hi Behzad Parvin, please have a look if this piece of code serves your needs: fileID = fopen('SE Sample.txt'); PlainT...

How to import text file and sort it into arrays

Hi Behzad Parvin, please have a look if this piece of code serves your needs: fileID = fopen('SE Sample.txt'); PlainT...

1 year ago | 0

Answered

Unable to close GUI figures

Hi Valerie Cayol, I had a similar problem while closing figures. I started to use the _pause()_-command after _close()_-comma...

Unable to close GUI figures

Hi Valerie Cayol, I had a similar problem while closing figures. I started to use the _pause()_-command after _close()_-comma...

1 year ago | 0

Answered

Spliting Cell Into Multiple Columns

Hello Quang Phung, for your data "Primary_Chain" you could use the following code fragment in order to * seperate the colu...

Spliting Cell Into Multiple Columns

Hello Quang Phung, for your data "Primary_Chain" you could use the following code fragment in order to * seperate the colu...

1 year ago | 0

| accepted

Answered

How to find a particular string in a stuct which has multiple fields?

Hi Kish1794, you can write a function that utilizes strfind on the structure array: *main.m* %% Create TestData ...

How to find a particular string in a stuct which has multiple fields?

Hi Kish1794, you can write a function that utilizes strfind on the structure array: *main.m* %% Create TestData ...

1 year ago | 0

Answered

Plot resolution and size

Hello Adam Cervenka, since Matlab is saving figures according to "PaperPosition", "PaperPositionMode" and "resolution", these...

Plot resolution and size

Hello Adam Cervenka, since Matlab is saving figures according to "PaperPosition", "PaperPositionMode" and "resolution", these...

1 year ago | 0

Answered

How to move the position of a block name to the top through matlab command?

Hello Suzuki Kota, There indeed is a command to perform that name plate alternation: % Name plate bottom set_param(bloc...

How to move the position of a block name to the top through matlab command?

Hello Suzuki Kota, There indeed is a command to perform that name plate alternation: % Name plate bottom set_param(bloc...

1 year ago | 0

| accepted

Answered

how to change the scale of an colour bar?

Hi Puspa patra, I <http://lmgtfy.com/?q=matlab+color+bar+log+scale google'd> it for you and found: * <https://de.mathworks...

how to change the scale of an colour bar?

Hi Puspa patra, I <http://lmgtfy.com/?q=matlab+color+bar+log+scale google'd> it for you and found: * <https://de.mathworks...

1 year ago | 0