Answered

Matlab矩阵处理。

data = [1 2 2;1 0 2;2 1 4;2 3 6;2 5 6;3 2 1;3 6 5;3 7 8;3 6 4] data(data(:, 1)<3, :) =[]

Matlab矩阵处理。

data = [1 2 2;1 0 2;2 1 4;2 3 6;2 5 6;3 2 1;3 6 5;3 7 8;3 6 4] data(data(:, 1)<3, :) =[]

5 maanden ago | 0

Answered

error in line1and 4

Those are comments which shoud start with % % Calculate the response function using the equation of motion: omega_n = sqrt(k /...

error in line1and 4

Those are comments which shoud start with % % Calculate the response function using the equation of motion: omega_n = sqrt(k /...

5 maanden ago | 0

Answered

'poly1' unrecognized

x = (0:0.2:5)'; y = 2*exp(-.2*x) + 0.5 * randn(size(x)); f = fit(x, y, 'poly1'); % check the path of fit which fit plot(f...

'poly1' unrecognized

x = (0:0.2:5)'; y = 2*exp(-.2*x) + 0.5 * randn(size(x)); f = fit(x, y, 'poly1'); % check the path of fit which fit plot(f...

5 maanden ago | 0

Answered

Creating a time series signal from a known PSD

f = [0,0.0732422000000000,0.146484000000000,0.219727000000000,0.292969000000000,0.366211000000000,0.439453000000000,0.5126950000...

Creating a time series signal from a known PSD

f = [0,0.0732422000000000,0.146484000000000,0.219727000000000,0.292969000000000,0.366211000000000,0.439453000000000,0.5126950000...

5 maanden ago | 0

Answered

Need values for the Astroid generated in MATLAB

syms x(t) y(t) z(t) x(t) = sin(t); y(t) = cos(t); z(t) = cos(2*t); % specify the t interval fplot3(x,y,z, [-pi pi])

Need values for the Astroid generated in MATLAB

syms x(t) y(t) z(t) x(t) = sin(t); y(t) = cos(t); z(t) = cos(2*t); % specify the t interval fplot3(x,y,z, [-pi pi])

5 maanden ago | 0

Answered

How to format notation to use "... x 10^-5..." instead of "...e..." in this figure

websave("Fig.fig", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1380189/Fig.fig") h = openfig("Fig.fig", "vi...

How to format notation to use "... x 10^-5..." instead of "...e..." in this figure

websave("Fig.fig", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1380189/Fig.fig") h = openfig("Fig.fig", "vi...

5 maanden ago | 1

| accepted

Answered

Dot indexing is not supported for variables of this type.

% avoid use variable such as o and O x = rand(256, 236); y = fft2(x,256,256); % assume that you are computing the power p =...

Dot indexing is not supported for variables of this type.

% avoid use variable such as o and O x = rand(256, 236); y = fft2(x,256,256); % assume that you are computing the power p =...

5 maanden ago | 0

Answered

Error: Z must be a matrix, not a scalar or vector and error in solution (line 12): surf(x,y,z);

Change the value of b: %Set the Domain of both x and y by setting the lower limit a = 0 %Enter the l...

Error: Z must be a matrix, not a scalar or vector and error in solution (line 12): surf(x,y,z);

Change the value of b: %Set the Domain of both x and y by setting the lower limit a = 0 %Enter the l...

5 maanden ago | 0

Answered

Related to Graph ?

sr = [1,2,2,2,3,3,3,4,5]; ta = [2,3,6,8,6,4,7,6,6]; % Use graph weight for SNR snr = randn(size(sr)); % gaussian dist...

Related to Graph ?

sr = [1,2,2,2,3,3,3,4,5]; ta = [2,3,6,8,6,4,7,6,6]; % Use graph weight for SNR snr = randn(size(sr)); % gaussian dist...

5 maanden ago | 0

Answered

How do I go about coding a matrix with entries being the outcome on an equation. for example 5 x 10 with Akj= ksin(kj)+jcos(kj)

k = (1:5)'; j = (1:10); A= k.*sin(k*j)+j.*cos(k*j)

How do I go about coding a matrix with entries being the outcome on an equation. for example 5 x 10 with Akj= ksin(kj)+jcos(kj)

k = (1:5)'; j = (1:10); A= k.*sin(k*j)+j.*cos(k*j)

5 maanden ago | 0

Answered

Can't see quiver plot

figure, hold on; axis([0 100 0 100]), axis square, box on; xlabel('x'), ylabel('y'); obslist = [60 60 15; 20 40 7...

Can't see quiver plot

figure, hold on; axis([0 100 0 100]), axis square, box on; xlabel('x'), ylabel('y'); obslist = [60 60 15; 20 40 7...

5 maanden ago | 0

Answered

help draw curved line between two points

Pos=[ 10009.6827000000 49968.6391000000 618.340200000000 10019.7800000000 49979.0046000000 622.162400000000 10027.3819000...

help draw curved line between two points

Pos=[ 10009.6827000000 49968.6391000000 618.340200000000 10019.7800000000 49979.0046000000 622.162400000000 10027.3819000...

5 maanden ago | 0

| accepted

Answered

my arrow is not going directly underneath my subplot. please help to adjust position its driving me not happy tried for 4 hours

% Plot the circle subplot(3, 4, 3); theta = linspace(0, 2*pi, 100); centerp = [0 0]; radiusp=1; x = centerp(1) + radiusp*cos...

my arrow is not going directly underneath my subplot. please help to adjust position its driving me not happy tried for 4 hours

% Plot the circle subplot(3, 4, 3); theta = linspace(0, 2*pi, 100); centerp = [0 0]; radiusp=1; x = centerp(1) + radiusp*cos...

5 maanden ago | 1

| accepted

Answered

How to Correct Signal Waveform (may use some filter)

You can try to use a low pass filter. websave("data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/13728...

How to Correct Signal Waveform (may use some filter)

You can try to use a low pass filter. websave("data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/13728...

5 maanden ago | 0

| accepted

Answered

How I can continue vector if I know two points of vector and direction vector?

X0 = 1.5; Y0 = 1.5; Z0 = 3.0; Theta0 = 10; % azimuth Phi0 = -45; % elev XBar = cosd(Theta0) * cosd(Phi0); ...

How I can continue vector if I know two points of vector and direction vector?

X0 = 1.5; Y0 = 1.5; Z0 = 3.0; Theta0 = 10; % azimuth Phi0 = -45; % elev XBar = cosd(Theta0) * cosd(Phi0); ...

5 maanden ago | 0

| accepted

Answered

Calculate distance considering road network

lat1 = -22.8851078223344; lon1 = -48.4939312250395; lat2 = -22.8315940282463; lon2 = -48.4298167144681; % need mapping too...

Calculate distance considering road network

lat1 = -22.8851078223344; lon1 = -48.4939312250395; lat2 = -22.8315940282463; lon2 = -48.4298167144681; % need mapping too...

5 maanden ago | 0

Answered

How to detect overfitting in neural network?

It looks that the overfitting is not occuring in your case since the validation performance still keep improving. Overfitting o...

How to detect overfitting in neural network?

It looks that the overfitting is not occuring in your case since the validation performance still keep improving. Overfitting o...

5 maanden ago | 0

| accepted

Answered

How can I find each character's index within a matrix, from a vector of characters?

Letters =['ABC'; 'DEF'; 'GHI'] vec = 'ACHI' for i=1:length(vec) [r, c] = find(Letters == vec(i)); fprintf("%s: (%d,...

How can I find each character's index within a matrix, from a vector of characters?

Letters =['ABC'; 'DEF'; 'GHI'] vec = 'ACHI' for i=1:length(vec) [r, c] = find(Letters == vec(i)); fprintf("%s: (%d,...

5 maanden ago | 0

Answered

Not enough input agruments

Function should be placed at the end of script or separate file: % Set the circuit parameters and initial conditions res = 10 ...

Not enough input agruments

Function should be placed at the end of script or separate file: % Set the circuit parameters and initial conditions res = 10 ...

5 maanden ago | 0

Answered

Signal auto-correlation in matlab (xcorr function)

csd = randn(4, 100, 20); % dummy data % Calculate trial-averaged auto-correlation nchan = size(csd, 1); % channels ntr...

Signal auto-correlation in matlab (xcorr function)

csd = randn(4, 100, 20); % dummy data % Calculate trial-averaged auto-correlation nchan = size(csd, 1); % channels ntr...

5 maanden ago | 0

| accepted

Answered

Evaluating symbolic function with a vector

% take x1 and x2 as two variables syms x1 x2 f(x1,x2) = x1 + x2; x = [ 1 1]; f(x(1), x(2))

Evaluating symbolic function with a vector

% take x1 and x2 as two variables syms x1 x2 f(x1,x2) = x1 + x2; x = [ 1 1]; f(x(1), x(2))

5 maanden ago | 0

Answered

"griddata" results in much smaller values than original data

It is due to the duplicate points in data. Griddata is averaging over the duplicate points to have a smaller value than peak. ...

"griddata" results in much smaller values than original data

It is due to the duplicate points in data. Griddata is averaging over the duplicate points to have a smaller value than peak. ...

6 maanden ago | 1

| accepted

Answered

I am getting NaN value from ifft (please guide)

websave("data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1359493/data.mat"); load data % Your data ...

I am getting NaN value from ifft (please guide)

websave("data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1359493/data.mat"); load data % Your data ...

6 maanden ago | 0

| accepted

Answered

How do I fix this invalide expression error?

bessel0 = @(x) besselj(0, x);

How do I fix this invalide expression error?

bessel0 = @(x) besselj(0, x);

6 maanden ago | 0

Answered

I want to use all nested arrays inside each cell.

C = {'A', (1:3).', {["frodo"; "pippin"], {4} {[5;6]}}} b = celldisp(C)

I want to use all nested arrays inside each cell.

C = {'A', (1:3).', {["frodo"; "pippin"], {4} {[5;6]}}} b = celldisp(C)

6 maanden ago | 0

Answered

Acceleration to displacement data based on accelerometer

num=readtable("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1352749/Book5.csv"); head(num); % initialize t...

Acceleration to displacement data based on accelerometer

num=readtable("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1352749/Book5.csv"); head(num); % initialize t...

6 maanden ago | 0

Answered

How can I write a matlab code for this iterative function.

% initial value of x(0) x = 0; for n=1:10 x = (1/n)- (1-(1/n+1)) *x +5*exp(x); % check the formula. this one is dive...

How can I write a matlab code for this iterative function.

% initial value of x(0) x = 0; for n=1:10 x = (1/n)- (1-(1/n+1)) *x +5*exp(x); % check the formula. this one is dive...

6 maanden ago | 0

Answered

how to use solve

There is no close form solution when a and b are arbitrary constant for the equation. If you want to find the numerical solut...

how to use solve

There is no close form solution when a and b are arbitrary constant for the equation. If you want to find the numerical solut...

6 maanden ago | 0