Answered

extract audio features from music

The spectralCentroid function was introduced in R2019a. You need to have that or a later release to be able to use it.

extract audio features from music

The spectralCentroid function was introduced in R2019a. You need to have that or a later release to be able to use it.

7 dagar ago | 0

Answered

MATLAB R2023a unusable on brand new desktop computer

Use Windows Task Manager and Resource Monitor to see what else is running and what resources are being used. Also R2023b is c...

MATLAB R2023a unusable on brand new desktop computer

Use Windows Task Manager and Resource Monitor to see what else is running and what resources are being used. Also R2023b is c...

8 dagar ago | 0

Answered

How can I replace random elements of a matrix with some definite respective values in a single line command?

You are using ‘’inear indexing, and that will definitely work, although I am not certain what you want to do. For a full expl...

How can I replace random elements of a matrix with some definite respective values in a single line command?

You are using ‘’inear indexing, and that will definitely work, although I am not certain what you want to do. For a full expl...

8 dagar ago | 0

Answered

Getting Matrix Dimensions Error from Using "/", help with understanding problem?

Without knowing the sizes of the two arrays, one problem could be due to: totalbyhour = sum(count, 1); totalbyintersection = ...

Getting Matrix Dimensions Error from Using "/", help with understanding problem?

Without knowing the sizes of the two arrays, one problem could be due to: totalbyhour = sum(count, 1); totalbyintersection = ...

8 dagar ago | 0

Answered

Combine a signal with AM noise

The array sizes are not compatible, and the signals must be sampled at the same rate. That is the problem, because that would r...

Combine a signal with AM noise

The array sizes are not compatible, and the signals must be sampled at the same rate. That is the problem, because that would r...

8 dagar ago | 0

| accepted

Answered

Problems in using map

You are seeing floating-point approximation error. Changing the first loop slightly to check that: kount = 0; format long ...

Problems in using map

You are seeing floating-point approximation error. Changing the first loop slightly to check that: kount = 0; format long ...

8 dagar ago | 0

| accepted

Answered

Plotting 'HH:MM' format times against the X axis

I am not certain what ‘decimal times’ are, however it appears that they might be something like ‘HHMM’ where all are four-digit ...

Plotting 'HH:MM' format times against the X axis

I am not certain what ‘decimal times’ are, however it appears that they might be something like ‘HHMM’ where all are four-digit ...

9 dagar ago | 0

Answered

I want my line graph to Overlap

I believe what you want is to put the variable name at the end of each plotted line. If so, try this — x = linspace(0, 2*pi...

I want my line graph to Overlap

I believe what you want is to put the variable name at the end of each plotted line. If so, try this — x = linspace(0, 2*pi...

9 dagar ago | 0

Answered

I have a problem in performing a loop calculation

I cannot understand exactly what you want to do or what the logic vector ‘d’ does. If you simply want to get the RMS value of...

I have a problem in performing a loop calculation

I cannot understand exactly what you want to do or what the logic vector ‘d’ does. If you simply want to get the RMS value of...

9 dagar ago | 0

| accepted

Answered

Find Average Peaks Function

The mean value of the function between any two peaks would be — x = linspace(0, 10, 250).'; filt_RLE = 50 * sin(2*pi*x*1.5) ....

Find Average Peaks Function

The mean value of the function between any two peaks would be — x = linspace(0, 10, 250).'; filt_RLE = 50 * sin(2*pi*x*1.5) ....

9 dagar ago | 1

Answered

If statement for 2 different variables.

Try this — x = @(i,j) (10 / pi + j ./ sin(i-1)) .* cos(j .* (i-1) * pi); i = 2:6; j = 1:7; [I,J] = ndgrid(i,j); Iv = I(:...

If statement for 2 different variables.

Try this — x = @(i,j) (10 / pi + j ./ sin(i-1)) .* cos(j .* (i-1) * pi); i = 2:6; j = 1:7; [I,J] = ndgrid(i,j); Iv = I(:...

9 dagar ago | 0

Answered

Plotting HSP in Matlab

Use the hold function — [x,y,z] = sphere; radius = 7.1; x = x * radius; y = y * radius; z = z * radius...

Plotting HSP in Matlab

Use the hold function — [x,y,z] = sphere; radius = 7.1; x = x * radius; y = y * radius; z = z * radius...

9 dagar ago | 0

Answered

Efficient way to run code multiple times

I would use the ndgrid function to create matrices from the parameters that you want to vary, convert the output matrices to ve...

Efficient way to run code multiple times

I would use the ndgrid function to create matrices from the parameters that you want to vary, convert the output matrices to ve...

10 dagar ago | 0

Answered

How can I do a 3D plot after simulation.

Try this — LD = load('output_a_f_LL_bus5.mat'); Data = LD.Id_6.Data; t = LD.t.Time; figure plot3(Data(:,1), Data(:,2), t...

How can I do a 3D plot after simulation.

Try this — LD = load('output_a_f_LL_bus5.mat'); Data = LD.Id_6.Data; t = LD.t.Time; figure plot3(Data(:,1), Data(:,2), t...

10 dagar ago | 0

| accepted

Answered

Anonymous function of a series of nonlinear equations to accept vector input

Either: f= @(x1,x2,x3) [x1.^3;x2.^2;x3.^2]; x=[1;1.2;1.3]; f(x(1),x(2),x(3)) or: f= @(x) [x(1).^3;x(2).^2;x(3).^2]; x=[1...

Anonymous function of a series of nonlinear equations to accept vector input

Either: f= @(x1,x2,x3) [x1.^3;x2.^2;x3.^2]; x=[1;1.2;1.3]; f(x(1),x(2),x(3)) or: f= @(x) [x(1).^3;x(2).^2;x(3).^2]; x=[1...

10 dagar ago | 1

Answered

Why can't I edit y label and x labels in matlab subplot figures (.FIG)

I’m not certain what the problem is. You can get the handles to each subplot with: Axsp = subplot(3,2,4); ...

Why can't I edit y label and x labels in matlab subplot figures (.FIG)

I’m not certain what the problem is. You can get the handles to each subplot with: Axsp = subplot(3,2,4); ...

10 dagar ago | 0

| accepted

Answered

How to surface or mesh plot imported data?

‘... I need some commands that instructs MatLab that VarName1 and VarName2 are x and y respectively, while VarName3 is the z-coo...

How to surface or mesh plot imported data?

‘... I need some commands that instructs MatLab that VarName1 and VarName2 are x and y respectively, while VarName3 is the z-coo...

10 dagar ago | 0

| accepted

Answered

Not enough input arguments when using bar()

Use the categorical function — x = categorical(["Outdoor1" "Outdoor2" "Outdoor3" "Outdoor4"]); y = [540 524 515 424];...

Not enough input arguments when using bar()

Use the categorical function — x = categorical(["Outdoor1" "Outdoor2" "Outdoor3" "Outdoor4"]); y = [540 524 515 424];...

11 dagar ago | 0

| accepted

Answered

Ytick label is repeated and not alligend correclty

The tick labels are text objects, so it should be possible to change their alignments. (I cannot find that property documented ...

Ytick label is repeated and not alligend correclty

The tick labels are text objects, so it should be possible to change their alignments. (I cannot find that property documented ...

12 dagar ago | 0

Answered

How to plot multiple time series cell arrays as a shadowed area

Answer 1: See the colororder call. Answer 2: Yes, although it takes a bit of exploring to determine what those curves are. ...

How to plot multiple time series cell arrays as a shadowed area

Answer 1: See the colororder call. Answer 2: Yes, although it takes a bit of exploring to determine what those curves are. ...

12 dagar ago | 1

| accepted

Answered

Interpolating the indexes of values in a Vector

Use interp1 for this — a = [2 4 6 8 10 12 14 16]; k = 1:numel(a); interpc = @(b) interp1(a,k,b); bvector = [4.5 5 6 14.3]...

Interpolating the indexes of values in a Vector

Use interp1 for this — a = [2 4 6 8 10 12 14 16]; k = 1:numel(a); interpc = @(b) interp1(a,k,b); bvector = [4.5 5 6 14.3]...

12 dagar ago | 0

| accepted

Answered

how can we find the coordinates of more points besides the points automatically generated by Contour in MATLAB?

You can define specific isolines — [X,Y,Z] = peaks(50); figure contourf(X, Y, Z, 'ShowText',1) title('Default Behaviour')...

how can we find the coordinates of more points besides the points automatically generated by Contour in MATLAB?

You can define specific isolines — [X,Y,Z] = peaks(50); figure contourf(X, Y, Z, 'ShowText',1) title('Default Behaviour')...

13 dagar ago | 0

Answered

Changing numeric variables based on symbolic variables in a set of differential equations.

It can, actually, using the vpa function: test1 = vpa(subs(P_lv, V_lv, Y(end, 1)), 8) test2 = vpa(subs(P_C_vp, V_C_vp, Y...

Changing numeric variables based on symbolic variables in a set of differential equations.

It can, actually, using the vpa function: test1 = vpa(subs(P_lv, V_lv, Y(end, 1)), 8) test2 = vpa(subs(P_C_vp, V_C_vp, Y...

13 dagar ago | 0

| accepted

Answered

How to remove the year from a datetime table column

The ymd function may be worth exploring. EDIT — (18 Sep 2023 at 23:08) Here is an example that also includes a scatter plo...

How to remove the year from a datetime table column

The ymd function may be worth exploring. EDIT — (18 Sep 2023 at 23:08) Here is an example that also includes a scatter plo...

13 dagar ago | 0

| accepted

Answered

Frequency response from a transfer function?

I assume you intend a bode or bodeplot plot — s = tf('s'); G = exp(-s)/(2*s+1) figure bodeplot(G) grid See the docume...

Frequency response from a transfer function?

I assume you intend a bode or bodeplot plot — s = tf('s'); G = exp(-s)/(2*s+1) figure bodeplot(G) grid See the docume...

13 dagar ago | 1

Answered

Adding labels to plots with LaTeX syntax

In the text call, specify 'Interpreter','latex', however the more interesting part of this was (finally) figuring out how to cor...

Adding labels to plots with LaTeX syntax

In the text call, specify 'Interpreter','latex', however the more interesting part of this was (finally) figuring out how to cor...

13 dagar ago | 0

Answered

i want to draw this DOP figure with these specific parametres

This probably represents a multi-exponential decay, because a single exponential doesn’t faithfully reproduce it. I would nee...

i want to draw this DOP figure with these specific parametres

This probably represents a multi-exponential decay, because a single exponential doesn’t faithfully reproduce it. I would nee...

14 dagar ago | 1

| accepted

Answered

Resolving errors with Raphson method

My pleasure! The ‘y’ assignment needs to be an anonymous function, if I understand correctly what you want to do. That cha...

Resolving errors with Raphson method

My pleasure! The ‘y’ assignment needs to be an anonymous function, if I understand correctly what you want to do. That cha...

14 dagar ago | 0

| accepted

Answered

Is there a way to remove the units in my dataset

I have never encountered a dataset class array previously. (For whatever reason, the datasetfun function does not return a data...

Is there a way to remove the units in my dataset

I have never encountered a dataset class array previously. (For whatever reason, the datasetfun function does not return a data...

15 dagar ago | 0

| accepted

Answered

Double integration of MPU 6050 data

Without knowing more, one possibility is that the integration of the MPU6050 data includes a constant (possibly an offset from z...

Double integration of MPU 6050 data

Without knowing more, one possibility is that the integration of the MPU6050 data includes a constant (possibly an offset from z...

15 dagar ago | 0