Answered

how can I play an audio, and in the middle of it, play a voice. but when the voice is played, the audio sounds 50% more slowly?

vstart_at = 5000; vlength = size(Voice,1); slow_len = ceil(vlength/2); p1 = x(1:vstart_at-1,:); p2a = kron(x(vstart_at:vstar...

how can I play an audio, and in the middle of it, play a voice. but when the voice is played, the audio sounds 50% more slowly?

vstart_at = 5000; vlength = size(Voice,1); slow_len = ceil(vlength/2); p1 = x(1:vstart_at-1,:); p2a = kron(x(vstart_at:vstar...

5 days ago | 0

| accepted

Answered

How Can I Solve the imread Error?

Image_Files = dir( fullfile(Image_Folder,'*.jpeg') ); and fullname= fullfile(Image_Folder, Image_Files(n).name);

How Can I Solve the imread Error?

Image_Files = dir( fullfile(Image_Folder,'*.jpeg') ); and fullname= fullfile(Image_Folder, Image_Files(n).name);

5 days ago | 1

| accepted

Answered

help / panning efect in stereo audio

[x(:) .* p, x(:) .* (1-p)] for a p that varies between 0 and 1.

help / panning efect in stereo audio

[x(:) .* p, x(:) .* (1-p)] for a p that varies between 0 and 1.

5 days ago | 0

| accepted

Answered

the cpoy and paste of matrix will change the rank?

When you copy and paste - 14547186153589216317120976241525/50328715046552884871112366751744 - (1106737641261809794397711289798...

the cpoy and paste of matrix will change the rank?

When you copy and paste - 14547186153589216317120976241525/50328715046552884871112366751744 - (1106737641261809794397711289798...

5 days ago | 0

| accepted

Answered

Attempted to access i(3); index out of bounds because numel(i)=2

if length(i)> 3 so if is more than 3 long you execute this code for k=1:3 OrientationBif(ind,k)=Tabl...

Attempted to access i(3); index out of bounds because numel(i)=2

if length(i)> 3 so if is more than 3 long you execute this code for k=1:3 OrientationBif(ind,k)=Tabl...

5 days ago | 0

Answered

Unable to perform assignment because the left and right sides have a different number of elements.

H = [1 1]; [...] E_y = 1; so H is a vector and E_y is a scalar Z = H*Xtrue(k+1)+E_y; Xtrue(k+1) is a scalar, multiply it by...

Unable to perform assignment because the left and right sides have a different number of elements.

H = [1 1]; [...] E_y = 1; so H is a vector and E_y is a scalar Z = H*Xtrue(k+1)+E_y; Xtrue(k+1) is a scalar, multiply it by...

5 days ago | 0

Answered

because when I cut a stereo audio, this happens to be mono?

x2 = x(1:1000,:); %stereo

because when I cut a stereo audio, this happens to be mono?

x2 = x(1:1000,:); %stereo

5 days ago | 0

| accepted

Answered

plot a graph in intagrl2

I am going to guess: plot(x,subs([y1;y2]).')

plot a graph in intagrl2

I am going to guess: plot(x,subs([y1;y2]).')

5 days ago | 1

| accepted

Answered

UDP connection in two instances of Matlab

You are fwrite() of the data, which writes binary. You are fscanf() of the data, which expects text. fprintf(u, '%d\n', data);...

UDP connection in two instances of Matlab

You are fwrite() of the data, which writes binary. You are fscanf() of the data, which expects text. fprintf(u, '%d\n', data);...

6 days ago | 0

| accepted

Answered

Problem with fsurf (where is the controur?)

When I try in R2019a, the contour is there, but you need to rotate the plot to see it as it is underneath the surface.

Problem with fsurf (where is the controur?)

When I try in R2019a, the contour is there, but you need to rotate the plot to see it as it is underneath the surface.

6 days ago | 0

| accepted

Answered

User defined minimum Function

function mins = column_minima(input_array) while any(any(diff(input_array,1,1) < 0)) input_array = shuffle_array(input...

User defined minimum Function

function mins = column_minima(input_array) while any(any(diff(input_array,1,1) < 0)) input_array = shuffle_array(input...

6 days ago | 0

Answered

Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

[Left_V, Right_V] = deal( validate(picture2) );

Insufficient number of outputs from right hand side of equal sign to satisfy assignment.

[Left_V, Right_V] = deal( validate(picture2) );

6 days ago | 0

Answered

GUI editbox can't evoke a pushbotton?

Callback for uicontrol style edit do not get invoked until the user presses enter or the user moves focus elsewhere. If you need...

GUI editbox can't evoke a pushbotton?

Callback for uicontrol style edit do not get invoked until the user presses enter or the user moves focus elsewhere. If you need...

6 days ago | 0

| accepted

Answered

toggle and push button

Yes. if hObject.Value == 1 disp('something') else disp('other') end

toggle and push button

Yes. if hObject.Value == 1 disp('something') else disp('other') end

6 days ago | 0

Answered

Error using symengine. Unable to convert expression into double array.

The integral is not convergent enough within the default tolerances. >> vpaintegral(f4,w,0,inf,'abstol',1e-10,'reltol',1e-50) ...

Error using symengine. Unable to convert expression into double array.

The integral is not convergent enough within the default tolerances. >> vpaintegral(f4,w,0,inf,'abstol',1e-10,'reltol',1e-50) ...

6 days ago | 1

| accepted

Answered

combine 3x3D into 4D matrix

Easiest: permute(cat(4,M1, M2, M3), [1 4 2 3]) less memory perhaps: cat(2,reshape(M1, 5000, 1, 10, 100), reshape(M2, 5000, 1,...

combine 3x3D into 4D matrix

Easiest: permute(cat(4,M1, M2, M3), [1 4 2 3]) less memory perhaps: cat(2,reshape(M1, 5000, 1, 10, 100), reshape(M2, 5000, 1,...

6 days ago | 0

| accepted

Answered

grid structure in wsn..

One_grid_info = struct('UID', -inf, 'lat', -inf, 'long', -inf, 'Energy', 10000, 'InputBuffer', [], 'OutputBuffer', []); nrows =...

grid structure in wsn..

One_grid_info = struct('UID', -inf, 'lat', -inf, 'long', -inf, 'Energy', 10000, 'InputBuffer', [], 'OutputBuffer', []); nrows =...

6 days ago | 0

| accepted

Answered

accumulate in multiple array

[mean(temp(:,1:3),2), mean(temp(:,4:5)), mean(temp(:,6:8)), mean(temp(:,9:10)), temp(:,11)]

accumulate in multiple array

[mean(temp(:,1:3),2), mean(temp(:,4:5)), mean(temp(:,6:8)), mean(temp(:,9:10)), temp(:,11)]

7 days ago | 0

Answered

Problem reading a binary file in MATLAB

A = [808529968 825241905 825241632 808464433 808460337 808530225 807416112 808530224 540029233 825307184 808530224 82...

Problem reading a binary file in MATLAB

A = [808529968 825241905 825241632 808464433 808460337 808530225 807416112 808530224 540029233 825307184 808530224 82...

7 days ago | 1

Answered

How does "disp" formatting work exactly?

None of the disp() formats correspond to single fprintf() formats. They all examine the range and data type of what they are dis...

How does "disp" formatting work exactly?

None of the disp() formats correspond to single fprintf() formats. They all examine the range and data type of what they are dis...

7 days ago | 0

| accepted

Answered

How to remove invalid left hand side of assignment, invalid "=" usage might be invalid matlab syntax and invalid character(s) in my code? Because this is my final project so i need to submit this. Really need help please.my algorithm also attached.

With a whole bunch of speculation as to what the notation means: Mobile_device_set = 1..N; Transmission_prower_to_MBS = p_(1:N...

How to remove invalid left hand side of assignment, invalid "=" usage might be invalid matlab syntax and invalid character(s) in my code? Because this is my final project so i need to submit this. Really need help please.my algorithm also attached.

With a whole bunch of speculation as to what the notation means: Mobile_device_set = 1..N; Transmission_prower_to_MBS = p_(1:N...

7 days ago | 0

| accepted

Answered

Is it possible to set a function within one m file and use that function in matlab?

Yes. The function definition must be after the script calling it, and the name of the script cannot be the same as the name of t...

Is it possible to set a function within one m file and use that function in matlab?

Yes. The function definition must be after the script calling it, and the name of the script cannot be the same as the name of t...

7 days ago | 0

| accepted

Answered

I am reading a large text file in Matlab is there any way I can use the parallel processing toolbox to speed up the read times?

No, not generally. Reading a file like that has three important phases: # getting the raw information from disc to matlab ...

I am reading a large text file in Matlab is there any way I can use the parallel processing toolbox to speed up the read times?

No, not generally. Reading a file like that has three important phases: # getting the raw information from disc to matlab ...

7 days ago | 0

| accepted

Answered

Error using odearguments (line 93) PHASE_1 must return a column vector.

dydt(1,6) is column 6 of row 1. You are creating a row vector of output values. The ode* routines require that the function crea...

Error using odearguments (line 93) PHASE_1 must return a column vector.

dydt(1,6) is column 6 of row 1. You are creating a row vector of output values. The ode* routines require that the function crea...

7 days ago | 0

Answered

How can I write a random function with names?

First off, put together the data from https://blog.xkcd.com/2010/05/03/color-survey-results/ and https://en.wikipedia.org/wiki/L...

How can I write a random function with names?

First off, put together the data from https://blog.xkcd.com/2010/05/03/color-survey-results/ and https://en.wikipedia.org/wiki/L...

8 days ago | 0

| accepted

Answered

Carriage return not detected with fopen

Opening a file with 'wt' tells matlab to erase the content of the file and prepare to write it with cr nl termination. You need ...

Carriage return not detected with fopen

Opening a file with 'wt' tells matlab to erase the content of the file and prepare to write it with cr nl termination. You need ...

8 days ago | 0

Answered

Cannot use input value with 'numerictype' in MATLAB Fcn

Every signal in Simulink must be of specific type, and fixed point values of different length are considered different data type...

Cannot use input value with 'numerictype' in MATLAB Fcn

Every signal in Simulink must be of specific type, and fixed point values of different length are considered different data type...

8 days ago | 0

Answered

Error: Too many output arguments

disp is the name of a function that cannot have output. You should avoid using it as the name of a variable.

Error: Too many output arguments

disp is the name of a function that cannot have output. You should avoid using it as the name of a variable.

9 days ago | 0

| accepted

Answered

The difference between using and not using '' in the solve() function

In current versions of solve(), quoted strings are only permitted as name/value pairs. In your older version of MATLAB, quoted ...

The difference between using and not using '' in the solve() function

In current versions of solve(), quoted strings are only permitted as name/value pairs. In your older version of MATLAB, quoted ...

9 days ago | 0

| accepted

Answered

Matrix dimension must agree

Pc is 1 x 9 given as explicit values P is 1 x 60 given as colon list. Pc./P is attempting to divide 1 x 9, by 1 x 60. The oth...

Matrix dimension must agree

Pc is 1 x 9 given as explicit values P is 1 x 60 given as colon list. Pc./P is attempting to divide 1 x 9, by 1 x 60. The oth...

9 days ago | 0