Answered

How to converting cell to matrix for image based classification?

Hi Nikhat Ali, Please have a look into documentation fitcecoc(). The way you call the function is not working since data format...

How to converting cell to matrix for image based classification?

Hi Nikhat Ali, Please have a look into documentation fitcecoc(). The way you call the function is not working since data format...

alrededor de 1 año ago | 0

| accepted

Answered

Matrix of transfer functions

Hi Davood Raoofsheibani, you can define arrays of transfer functions similar to numeric arrays by using tf(): % define array ...

Matrix of transfer functions

Hi Davood Raoofsheibani, you can define arrays of transfer functions similar to numeric arrays by using tf(): % define array ...

alrededor de 1 año ago | 0

Answered

Convert a Complex Number to exponential real

Hi Jogger, have a look at Euler's formula (https://en.wikipedia.org/wiki/Euler's_formula). x = 2 + 1j * 5; r = sqrt(real(x)^2...

Convert a Complex Number to exponential real

Hi Jogger, have a look at Euler's formula (https://en.wikipedia.org/wiki/Euler's_formula). x = 2 + 1j * 5; r = sqrt(real(x)^2...

más de 1 año ago | 1

| accepted

Answered

Different rotations of XLabels

Hi Julie, One way to rotate single XTickLabel Strings is to replace them by text(). Advantage over annotation() is that the tex...

Different rotations of XLabels

Hi Julie, One way to rotate single XTickLabel Strings is to replace them by text(). Advantage over annotation() is that the tex...

más de 1 año ago | 0

| accepted

Answered

How to shift entries in a vector by the value of the number in that entry?

Hi Tim David, you can apply circshift() to the data. T = [0, 0, 4, 0, 7, 0, 0, 5, 0, 9]; shiftme = @(A,nShift) circshift(A,...

How to shift entries in a vector by the value of the number in that entry?

Hi Tim David, you can apply circshift() to the data. T = [0, 0, 4, 0, 7, 0, 0, 5, 0, 9]; shiftme = @(A,nShift) circshift(A,...

más de 1 año ago | 0

Answered

use vector as input

Hi Vincent Degonda, Your for-loop call is not providing what you expected. Your input variable is a vector already. dpb tried t...

use vector as input

Hi Vincent Degonda, Your for-loop call is not providing what you expected. Your input variable is a vector already. dpb tried t...

más de 1 año ago | 0

Answered

Pass a structure to a function

Hi George Bashkatov, First of all: Do not use global variables if not absolutely necessary. There are hundreds of threads argui...

Pass a structure to a function

Hi George Bashkatov, First of all: Do not use global variables if not absolutely necessary. There are hundreds of threads argui...

más de 1 año ago | 0

Answered

Does Matlab solver allow integration?

Hi Craig Dekker, please, have a look at the documentation symbolic int(): syms t L R Vo WR = R*((Vo/R)*exp(-t/(L/R)))^2 iWR ...

Does Matlab solver allow integration?

Hi Craig Dekker, please, have a look at the documentation symbolic int(): syms t L R Vo WR = R*((Vo/R)*exp(-t/(L/R)))^2 iWR ...

más de 1 año ago | 0

| accepted

Answered

How to keep decimal float point only

If it is just for display you can specify the output format in fprintf. a = 323.153; fprintf('<< a = %.0f.\n',a) output: << ...

How to keep decimal float point only

If it is just for display you can specify the output format in fprintf. a = 323.153; fprintf('<< a = %.0f.\n',a) output: << ...

más de 1 año ago | 0

| accepted

Answered

How to join a double variable and a strucure variable to plot a heat map ?

Dear Niraj Bal Tamang, According to documentation heatmap() supports tables among others. Working with tables is very convenien...

How to join a double variable and a strucure variable to plot a heat map ?

Dear Niraj Bal Tamang, According to documentation heatmap() supports tables among others. Working with tables is very convenien...

más de 1 año ago | 0

| accepted

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, ...

casi 2 años 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...

casi 2 años 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/...

casi 2 años 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...

alrededor de 2 años 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...

alrededor de 2 años 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...

alrededor de 2 años 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...

alrededor de 2 años 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...

más de 2 años 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 <...

más de 2 años 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...

más de 2 años 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...

más de 2 años 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 ...

más de 2 años 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...

más de 2 años 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 ...

más de 2 años 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...

más de 2 años 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...

más de 2 años 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...

más de 2 años 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 ...

más de 2 años 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...

más de 2 años 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...

más de 2 años ago | 0

| accepted