Answered

plot repeating x values

Hi Christopher Tran Rojas, you have to replace the xTickLabel-Strings. Otherwise an increasing value vector is expected. Plus, ...

plot repeating x values

Hi Christopher Tran Rojas, you have to replace the xTickLabel-Strings. Otherwise an increasing value vector is expected. Plus, ...

3 months ago | 0

Answered

Frequency domain and Shannon limit

Hi long le, Matlab documentation is quite nice since it provides several examples on key topics. One possibility to transform t...

Frequency domain and Shannon limit

Hi long le, Matlab documentation is quite nice since it provides several examples on key topics. One possibility to transform t...

4 months ago | 1

Answered

Catching a warning to avoid matrix singularity

Hi Mostafa Nakhaei, quite similar to what you describe is shown in the documentation: https://de.mathworks.com/help/matlab/ref/...

Catching a warning to avoid matrix singularity

Hi Mostafa Nakhaei, quite similar to what you describe is shown in the documentation: https://de.mathworks.com/help/matlab/ref/...

4 months ago | 1

| accepted

Answered

How can I get an upright mu in math with latex interpreter?

Hi Philipp Rehlaender, It seems, there is no straight-forward way to do that in matlab figures. Nonetheless, there are work-aro...

How can I get an upright mu in math with latex interpreter?

Hi Philipp Rehlaender, It seems, there is no straight-forward way to do that in matlab figures. Nonetheless, there are work-aro...

5 months ago | 0

Answered

Magnitude and Phase response of a Lowpass filter

Hi Suvvi Kuppur Narayana Swamy: The function angle() is calculating the phase angle of a complex number. Since all values are r...

Magnitude and Phase response of a Lowpass filter

Hi Suvvi Kuppur Narayana Swamy: The function angle() is calculating the phase angle of a complex number. Since all values are r...

5 months ago | 0

Answered

Interpolating at vertices of a mesh

Hi Sanwar Ahmad, for interpolation between meshes you can have a look at the built-in function scatteredinterpolant(). More in...

Interpolating at vertices of a mesh

Hi Sanwar Ahmad, for interpolation between meshes you can have a look at the built-in function scatteredinterpolant(). More in...

6 months ago | 0

| accepted

Answered

How to estimate the parameter in a customized transfer function

Hi Lihao Zheng, first of all you can convert the two forms from one to another. Second it is possible to define transfer functi...

How to estimate the parameter in a customized transfer function

Hi Lihao Zheng, first of all you can convert the two forms from one to another. Second it is possible to define transfer functi...

6 months ago | 0

Answered

filesep for window '\', which may cause sprintf doesn't work for some '\%d' string, how can i avoid ?

Hi Huang Chi-En, please refer to sprintf-documentation; special characters might need different syntax. Since backslash is an e...

filesep for window '\', which may cause sprintf doesn't work for some '\%d' string, how can i avoid ?

Hi Huang Chi-En, please refer to sprintf-documentation; special characters might need different syntax. Since backslash is an e...

7 months ago | 0

Answered

How do I add a class to a class

Hi Alok Virkar, another approch making use of object arrays which might be more convenient in use: rocket.m classdef rocket <...

How do I add a class to a class

Hi Alok Virkar, another approch making use of object arrays which might be more convenient in use: rocket.m classdef rocket <...

7 months ago | 0

Answered

How do I add a class to a class

Hi Alok Virkar, There are several possibilities to fullfill the described functionality. But first there are issues with your c...

How do I add a class to a class

Hi Alok Virkar, There are several possibilities to fullfill the described functionality. But first there are issues with your c...

7 months ago | 0

Answered

Program not calculating correct value in output file

Hi Joseph Edelman, it seems as if line 52 produces complex numbers for HF. In consequence the values of DELQ are complex as wel...

Program not calculating correct value in output file

Hi Joseph Edelman, it seems as if line 52 produces complex numbers for HF. In consequence the values of DELQ are complex as wel...

7 months ago | 1

Answered

Low pass filter design

Hi Toygar Ozel, have a look at the step response of your filter, e.g. using filter designer. You can determine easily that the ...

Low pass filter design

Hi Toygar Ozel, have a look at the step response of your filter, e.g. using filter designer. You can determine easily that the ...

7 months ago | 0

| accepted

Answered

Merge numeric values of 2 columns into 1

Hi Andrea Boa, probably your import function is not correct regarding either format or delimiter, or both. The following functi...

Merge numeric values of 2 columns into 1

Hi Andrea Boa, probably your import function is not correct regarding either format or delimiter, or both. The following functi...

7 months ago | 0

Answered

How to standardize the colormap of every figure created from different set of data

Hi NUR AMIRA ZULKIFLLI, you can supply own colormaps to several plots. You might want to look into imagesc() since it provides ...

How to standardize the colormap of every figure created from different set of data

Hi NUR AMIRA ZULKIFLLI, you can supply own colormaps to several plots. You might want to look into imagesc() since it provides ...

8 months ago | 0

Answered

How to graph multiple points onto one graph?

Hi Brian Len, you might have some troubles with syntax. Have a look at the very good documentation: https://de.mathworks.com/he...

How to graph multiple points onto one graph?

Hi Brian Len, you might have some troubles with syntax. Have a look at the very good documentation: https://de.mathworks.com/he...

8 months ago | 0

| accepted

Answered

how can i change the Color of the Row (uitable) when if==0? Die farbe der reihe im IUtable soll sich öndern wenn if ==0

Hi Torsion27, using uifigure and uitable there is an easy-to-apply solution on your data. WIthout going through your code I rec...

how can i change the Color of the Row (uitable) when if==0? Die farbe der reihe im IUtable soll sich öndern wenn if ==0

Hi Torsion27, using uifigure and uitable there is an easy-to-apply solution on your data. WIthout going through your code I rec...

8 months ago | 0

Answered

Replacing Values Between a 0 and a 1 in a Vector

Hi Daniel Steyer, this code snippet should provide the requested functionality. cIn = cellfun(@num2str,num2cell(A),'UniformOut...

Replacing Values Between a 0 and a 1 in a Vector

Hi Daniel Steyer, this code snippet should provide the requested functionality. cIn = cellfun(@num2str,num2cell(A),'UniformOut...

8 months ago | 0

| accepted

Answered

setting a variable to the input

Hi Jian Chen, The functionality that you describe cannot be done. Using object oriented programming the functionality could be ...

setting a variable to the input

Hi Jian Chen, The functionality that you describe cannot be done. Using object oriented programming the functionality could be ...

9 months ago | 0

Answered

Hat on letter on x/ylabel WITHOUT using LaTeX?

Hi Minas Emiris, convert the circumflex from unicode to string via sprintf (see here, unicode table for combining characters fo...

Hat on letter on x/ylabel WITHOUT using LaTeX?

Hi Minas Emiris, convert the circumflex from unicode to string via sprintf (see here, unicode table for combining characters fo...

9 months ago | 2

Answered

Using Levenberg-Marquardt algorithm in the optimization

Hi RAPHAEL OWENS, there are several solvers and methods available. One of the available functions in Matlab is lsqcurvefit(). B...

Using Levenberg-Marquardt algorithm in the optimization

Hi RAPHAEL OWENS, there are several solvers and methods available. One of the available functions in Matlab is lsqcurvefit(). B...

9 months ago | 0

| accepted

Answered

for loop - Array indexing problem

Hi Arnar Þór Ólafsson, you can use any vector to run for-loops. You can assign the values in the order as you wish. It might be...

for loop - Array indexing problem

Hi Arnar Þór Ólafsson, you can use any vector to run for-loops. You can assign the values in the order as you wish. It might be...

9 months ago | 0

Answered

plotting a natural cubic spline

Hi Justin Howard, I guess there is a mistake concerning the second derivative at the start and end points of the requested spli...

plotting a natural cubic spline

Hi Justin Howard, I guess there is a mistake concerning the second derivative at the start and end points of the requested spli...

10 months ago | 0

Answered

How to find values from a bode plot in matlab

Hi Uzair Akhtar, According to controller theory you - probably - have to extract the following values: w_crit: probably, the a...

How to find values from a bode plot in matlab

Hi Uzair Akhtar, According to controller theory you - probably - have to extract the following values: w_crit: probably, the a...

10 months ago | 0

Answered

How to numbered title plot in looping?

Hi Eddy Iswardi, The following minimal example show how to include numbers into axes titles: for na = 1:3 fh{na} = figure...

How to numbered title plot in looping?

Hi Eddy Iswardi, The following minimal example show how to include numbers into axes titles: for na = 1:3 fh{na} = figure...

10 months ago | 0

| accepted

Answered

How do I run a loop through multiple subjects?

Hi Troy Tyszkowski, loop through your subject list (replace the disp()-command by your 'roast'): subject_list = {'subject1','s...

How do I run a loop through multiple subjects?

Hi Troy Tyszkowski, loop through your subject list (replace the disp()-command by your 'roast'): subject_list = {'subject1','s...

10 months ago | 1

| accepted

Answered

How to display cell format or table format in GUI table?

Hi Siti Khadijah Norzafri, apparently uitable() accepts table data: fh = uifigure; th = uitable(fh,'Data',Data3); You can us...

How to display cell format or table format in GUI table?

Hi Siti Khadijah Norzafri, apparently uitable() accepts table data: fh = uifigure; th = uitable(fh,'Data',Data3); You can us...

10 months ago | 1

| accepted

Answered

How to shade and calculate area above a reference line in a plot?

Hi Bhaskar Ravishankar, You can use area and logical indexing in order to shade the curve: resX = 0.1; xlim = [-pi,pi]; x ...

How to shade and calculate area above a reference line in a plot?

Hi Bhaskar Ravishankar, You can use area and logical indexing in order to shade the curve: resX = 0.1; xlim = [-pi,pi]; x ...

11 months ago | 0

Answered

How does lsim work?

Hi shahzer rahman, your question is answered within Matlab documentation: lsim(), linking to ltitr() (which unfortunately does ...

How does lsim work?

Hi shahzer rahman, your question is answered within Matlab documentation: lsim(), linking to ltitr() (which unfortunately does ...

11 months ago | 0

| accepted

Answered

Convert the for loop into while loop without using the break statement

Hi Kimberley Pereira, If you want to translate your for-loop into a while-loop, you have to think about, when exactly the loop ...

Convert the for loop into while loop without using the break statement

Hi Kimberley Pereira, If you want to translate your for-loop into a while-loop, you have to think about, when exactly the loop ...

11 months ago | 0

| accepted

Answered

Clear persisent variable in for loop

Hello Deepa Maheshvare, According to documentation persistent variables can be cleared by clearing the function from memory. If...

Clear persisent variable in for loop

Hello Deepa Maheshvare, According to documentation persistent variables can be cleared by clearing the function from memory. If...

11 months ago | 0