답변 있음

I need to convert comma ',' to dot '.'

One option in detectImportOptions (introduced in R2016b and updated in later releases) in Parameters for Text Files Only allows ...

I need to convert comma ',' to dot '.'

One option in detectImportOptions (introduced in R2016b and updated in later releases) in Parameters for Text Files Only allows ...

8일 전 | 0

답변 있음

Date stamp on plot

The only way I can devise to delete the date is to create new y-tick labels and use them instead — F = openfig('untitled.fig')...

Date stamp on plot

The only way I can devise to delete the date is to create new y-tick labels and use them instead — F = openfig('untitled.fig')...

8일 전 | 0

| 수락됨

답변 있음

Using trapz just for positive areas

I would just use interp1 to interpolate the data, then use trapz to integrate it. The resolution of ‘xi’ determines the precisi...

Using trapz just for positive areas

I would just use interp1 to interpolate the data, then use trapz to integrate it. The resolution of ‘xi’ determines the precisi...

9일 전 | 1

| 수락됨

답변 있음

How do I edit this bar graph? Y-axis thickness and ticks

See if the YAxisLocation and other Axis Properties and Numeric Ruler properties will do what you want.

How do I edit this bar graph? Y-axis thickness and ticks

See if the YAxisLocation and other Axis Properties and Numeric Ruler properties will do what you want.

9일 전 | 0

| 수락됨

답변 있음

Plotting an amplitude spectrum of a .txt file

Try this — D1 = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/647750/spec.txt'); signal = D1; L...

Plotting an amplitude spectrum of a .txt file

Try this — D1 = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/647750/spec.txt'); signal = D1; L...

9일 전 | 1

| 수락됨

답변 있음

Draw arc with specified angle difference

Try this — LD = load('Data.mat'); Data1 = LD.Data1; A1 = Data1(:,1); R1 = Data1(:,2); D1 = Data1(:,3); Data2 = LD.Data2...

Draw arc with specified angle difference

Try this — LD = load('Data.mat'); Data1 = LD.Data1; A1 = Data1(:,1); R1 = Data1(:,2); D1 = Data1(:,3); Data2 = LD.Data2...

9일 전 | 0

| 수락됨

답변 있음

Plotting sine wave for voltage with variation of frequency

I am not certain what the desired result is. If the frequencies and amplitudes are fixed with respect to time, try this — t...

Plotting sine wave for voltage with variation of frequency

I am not certain what the desired result is. If the frequencies and amplitudes are fixed with respect to time, try this — t...

9일 전 | 0

| 수락됨

답변 있음

3D matrix surface plot animation

Try this — M = rand(10,10,5); % Create Test Matrix figure for k = 1:size(M,3) surf(M(:,:...

3D matrix surface plot animation

Try this — M = rand(10,10,5); % Create Test Matrix figure for k = 1:size(M,3) surf(M(:,:...

9일 전 | 0

| 수락됨

답변 있음

Trimming data with for loop

I am not certain what you want to do. Try this — acq2.data = randi([0 5], 10, 5) % Create Matrix i...

Trimming data with for loop

I am not certain what you want to do. Try this — acq2.data = randi([0 5], 10, 5) % Create Matrix i...

10일 전 | 0

| 수락됨

답변 있음

How do i insert seconds in a timeseries data when the frequency of the data is inconsistent?

Try this — Input_data = ['9/5/2021 11:30:00' '9/5/2021 11:30:00' '9/5/2021 11:30:00' ...

How do i insert seconds in a timeseries data when the frequency of the data is inconsistent?

Try this — Input_data = ['9/5/2021 11:30:00' '9/5/2021 11:30:00' '9/5/2021 11:30:00' ...

10일 전 | 0

답변 있음

4 unknown 4 equetions

syms a b c d eq1=a+b+c+d==-9.3; eq2=(b*a+2)+(2+d*c)+(c+d)*(b+a)==+7; eq3=(b+a)+(d+c)*(b*a+2)+(a+b)*(2+d*c)+(c+d)==-4.507;...

4 unknown 4 equetions

syms a b c d eq1=a+b+c+d==-9.3; eq2=(b*a+2)+(2+d*c)+(c+d)*(b+a)==+7; eq3=(b+a)+(d+c)*(b*a+2)+(a+b)*(2+d*c)+(c+d)==-4.507;...

10일 전 | 0

| 수락됨

답변 있음

Mann-Kendall test

See if the File Exchange contributions Mann-Kendall Test or Cumulative Mann-Kendall trend test will do what you want.

Mann-Kendall test

See if the File Exchange contributions Mann-Kendall Test or Cumulative Mann-Kendall trend test will do what you want.

10일 전 | 0

답변 있음

How do I plot points on a contour?

I am not certain what result you want. I plotted it with scatter3, however if the intent os to have lines connecting the poin...

How do I plot points on a contour?

I am not certain what result you want. I plotted it with scatter3, however if the intent os to have lines connecting the poin...

11일 전 | 0

| 수락됨

답변 있음

Filter function in MATLAB

The instability is generally not a problem with second-order-section realisation of IIR filters. The filtfilt function can oc...

Filter function in MATLAB

The instability is generally not a problem with second-order-section realisation of IIR filters. The filtfilt function can oc...

11일 전 | 0

답변 있음

frequently used function for table variable

I am not certain what ‘T’ looks like. Something like this would work — T = table(randi([-40 40],5,1),'VariableNames',{'OldV...

frequently used function for table variable

I am not certain what ‘T’ looks like. Something like this would work — T = table(randi([-40 40],5,1),'VariableNames',{'OldV...

11일 전 | 0

| 수락됨

답변 있음

How to select a specific column in matrices?

Concatenate them, then select the second column of the concatenated matrix — A = randi(9,4) B = randi(9,4) C = randi(9,4) D...

How to select a specific column in matrices?

Concatenate them, then select the second column of the concatenated matrix — A = randi(9,4) B = randi(9,4) C = randi(9,4) D...

11일 전 | 1

| 수락됨

답변 있음

how to edit the axes tick labels?

Some of that can be done by setting the xlim property, the rest by decreasing the width of the axes ysiung the 'Position' proper...

how to edit the axes tick labels?

Some of that can be done by setting the xlim property, the rest by decreasing the width of the axes ysiung the 'Position' proper...

11일 전 | 1

| 수락됨

답변 있음

How do I solve two ode (dct/dt and dR/dt) simultaneously with ODE45 and optimize two parameters using global optimization ?

See for one example: Parameter Estimation for a System of Differential Equations and How to properly model a kinetic reaction ...

How do I solve two ode (dct/dt and dR/dt) simultaneously with ODE45 and optimize two parameters using global optimization ?

See for one example: Parameter Estimation for a System of Differential Equations and How to properly model a kinetic reaction ...

11일 전 | 0

답변 있음

Filling the empty array

The code does not assign ‘crave’, ‘dcrave’ or ‘rest’ to anything. What do you want the code to do with those values? In ...

Filling the empty array

The code does not assign ‘crave’, ‘dcrave’ or ‘rest’ to anything. What do you want the code to do with those values? In ...

11일 전 | 0

| 수락됨

답변 있음

How to retrend data, after detrending it?

There are three different ddetrend funcitons. The one you want is: detrend however it does not return the function it used to d...

How to retrend data, after detrending it?

There are three different ddetrend funcitons. The one you want is: detrend however it does not return the function it used to d...

11일 전 | 0

답변 있음

Genetic algorithm options in MATLAB R2013

I do not have access to the R2013x documentation, since it is no longer available online. Are you certain those options are f...

Genetic algorithm options in MATLAB R2013

I do not have access to the R2013x documentation, since it is no longer available online. Are you certain those options are f...

12일 전 | 0

답변 있음

I can't put the degrees symbol on my chart.

See TickLabelFormat in NumericRuler Properties for a specific example.

I can't put the degrees symbol on my chart.

See TickLabelFormat in NumericRuler Properties for a specific example.

12일 전 | 0

답변 있음

intersection of plane and surface

Use fsurf (or fmesh) and then use the view function to rotate it for best results — pos1 = [1721.983459 6743...

intersection of plane and surface

Use fsurf (or fmesh) and then use the view function to rotate it for best results — pos1 = [1721.983459 6743...

12일 전 | 0

답변 있음

How can we create poll-like plots with confidence intervals like the example attached?

That would appear to be a scatter plot with mean or median values plotted on it as well (likely using movmean or movmedian), wit...

How can we create poll-like plots with confidence intervals like the example attached?

That would appear to be a scatter plot with mean or median values plotted on it as well (likely using movmean or movmedian), wit...

12일 전 | 0

| 수락됨

답변 있음

how to make FIR filter

The documentation on fir1 will demonstrate how to construct it. If you need to check its performance, use the freqz function....

how to make FIR filter

The documentation on fir1 will demonstrate how to construct it. If you need to check its performance, use the freqz function....

12일 전 | 0

답변 있음

How to convert encoded digital audio signal to analog form

Everything in a computer is in discrete form. To convert a digital sound file to analog, use the sound or similar functions to ...

How to convert encoded digital audio signal to analog form

Everything in a computer is in discrete form. To convert a digital sound file to analog, use the sound or similar functions to ...

13일 전 | 0

답변 있음

Plot contours using discrete data points

‘Let say i have 100 points so my matrices(X,Y & Z) are 100 x1’ They could be gridded already. If they are, then simply using...

Plot contours using discrete data points

‘Let say i have 100 points so my matrices(X,Y & Z) are 100 x1’ They could be gridded already. If they are, then simply using...

13일 전 | 0

답변 있음

How do I change the position of the axes permanently?

This is a bit ambiguous. One option is to use the axis function. Another are to set the Axes Properties, specifically XAxi...

How do I change the position of the axes permanently?

This is a bit ambiguous. One option is to use the axis function. Another are to set the Axes Properties, specifically XAxi...

13일 전 | 0

답변 있음

splitting periodic data using cellarray

The actual result depends on the signal (that may need to be filtered if it is noisy), however the code would be something like ...

splitting periodic data using cellarray

The actual result depends on the signal (that may need to be filtered if it is noisy), however the code would be something like ...

14일 전 | 0

| 수락됨