Content Feed
답변 있음
HELP! How can i solve this array incompatible size issue
Make the change: N = length(t); If you need larger N, thant T in your code to a larger value. % Parameters fs = 1000; ...
HELP! How can i solve this array incompatible size issue
Make the change: N = length(t); If you need larger N, thant T in your code to a larger value. % Parameters fs = 1000; ...
2일 전 | 1
| 수락됨
답변 있음
Vertically Concatenating Tables in a Loop
TableAll = []; for m = 1:10 Trial = [COPData(m).data,OPALData(m).data]; %Original Table COPTv_y = diff(Trial.COPy)./d...
Vertically Concatenating Tables in a Loop
TableAll = []; for m = 1:10 Trial = [COPData(m).data,OPALData(m).data]; %Original Table COPTv_y = diff(Trial.COPy)./d...
3일 전 | 0
| 수락됨
답변 있음
Is there a way to identify which dataset a value belongs to for overlapping datasets?
websave("dataset.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1650591/dataset.mat") load("dataset.mat"...
Is there a way to identify which dataset a value belongs to for overlapping datasets?
websave("dataset.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1650591/dataset.mat") load("dataset.mat"...
4일 전 | 0
| 수락됨
답변 있음
Choosing the role of NaN elements in the sum environment of matrices
aa=[1 2; 3 NaN]; bb=[NaN 1; 2 NaN]; cc = mean(cat(3, aa, bb), 3)
Choosing the role of NaN elements in the sum environment of matrices
aa=[1 2; 3 NaN]; bb=[NaN 1; 2 NaN]; cc = mean(cat(3, aa, bb), 3)
4일 전 | 0
답변 있음
Shift Filter outputs to align peaks
You can compute the group delay around the fc to align the output (approximately). fs = 20e3; numFilts = 32; % filter_numbe...
Shift Filter outputs to align peaks
You can compute the group delay around the fc to align the output (approximately). fs = 20e3; numFilts = 32; % filter_numbe...
4일 전 | 1
답변 있음
How to create biphasic pulses?
N = 4; %400; % number of pulses Tp = 1; % pulse width; d1 = 1; % interphase delay d2 = 1; % in...
How to create biphasic pulses?
N = 4; %400; % number of pulses Tp = 1; % pulse width; d1 = 1; % interphase delay d2 = 1; % in...
7일 전 | 0
| 수락됨
답변 있음
what does this mean , how and for what is it used ?
The following will produce a 5-dimensional array of 2x3x5x5x8. You can access the element by specifying 5-d index x=ones(2,3,4...
what does this mean , how and for what is it used ?
The following will produce a 5-dimensional array of 2x3x5x5x8. You can access the element by specifying 5-d index x=ones(2,3,4...
8일 전 | 0
답변 있음
How to generate multiple tiff files into my file path?
thresholdarray = [0.01, 0.1, 0.001]; medfiltarray = [2, 8, 10, 16]; for i = 1:3 thresholdvalue = thresholdarray(1,i); ...
How to generate multiple tiff files into my file path?
thresholdarray = [0.01, 0.1, 0.001]; medfiltarray = [2, 8, 10, 16]; for i = 1:3 thresholdvalue = thresholdarray(1,i); ...
8일 전 | 0
답변 있음
How to create a series of separate tiff files?
It works here (in a unix environment). You may want to change ":" in file names into "_" for windows. thresholdarray = [0.01, ...
How to create a series of separate tiff files?
It works here (in a unix environment). You may want to change ":" in file names into "_" for windows. thresholdarray = [0.01, ...
8일 전 | 0
답변 있음
How to fine numerical gradient
clear; clc; xs = linspace(1,2,100); ys = linspace(1,3,100)'; % transpose here fun_values = zeros(100,100); %{ for ix...
How to fine numerical gradient
clear; clc; xs = linspace(1,2,100); ys = linspace(1,3,100)'; % transpose here fun_values = zeros(100,100); %{ for ix...
8일 전 | 1
| 수락됨
답변 있음
Why does the fft function cut in half the amplitude of my signal?
Note that a sinosoidal signal can be expressed as: FFT of (normalized by N) will have a peak at f0 with amplitude of 1 (si...
Why does the fft function cut in half the amplitude of my signal?
Note that a sinosoidal signal can be expressed as: FFT of (normalized by N) will have a peak at f0 with amplitude of 1 (si...
9일 전 | 0
답변 있음
meaning of f in fprintf function
In old days, the command \f is used to make a printer to move to beginning of next pages. fprintf or print or printf are used b...
meaning of f in fprintf function
In old days, the command \f is used to make a printer to move to beginning of next pages. fprintf or print or printf are used b...
9일 전 | 1
| 수락됨
답변 있음
Sig figs on the rand function
==> Just another general question here, is there a reason the rand function has 6 sig figs? i.e. 12.3456 rand function (by defa...
Sig figs on the rand function
==> Just another general question here, is there a reason the rand function has 6 sig figs? i.e. 12.3456 rand function (by defa...
9일 전 | 0
| 수락됨
답변 있음
Keep elements of an array that only fall within a given closed shape
space_a=linspace(0,168.3934962848858,50); % nm space_b=linspace(0,250,50); % nm z = peaks(50); % generate some test dat...
Keep elements of an array that only fall within a given closed shape
space_a=linspace(0,168.3934962848858,50); % nm space_b=linspace(0,250,50); % nm z = peaks(50); % generate some test dat...
9일 전 | 1
| 수락됨
답변 있음
How to extend a curve until x-axis and y-axis?
Use "axis tight" r=0.03; T=10; t=2; lambda1=0.28:0.28:3.08; thai=0.43; alpha=7.2; delta=0.0609; s=100:100:1100; sigma=2...
How to extend a curve until x-axis and y-axis?
Use "axis tight" r=0.03; T=10; t=2; lambda1=0.28:0.28:3.08; thai=0.43; alpha=7.2; delta=0.0609; s=100:100:1100; sigma=2...
11일 전 | 1
| 수락됨
답변 있음
I keep getting an error on my correlation coefficient on line 20
There is no error running here(see below). Can you show your error message? % Given data x = [0, 2, 4, 6, 9, 11, 12, 15, 17, 1...
I keep getting an error on my correlation coefficient on line 20
There is no error running here(see below). Can you show your error message? % Given data x = [0, 2, 4, 6, 9, 11, 12, 15, 17, 1...
14일 전 | 0
| 수락됨
답변 있음
How to up-sample both signals and labels together?
%websave("upsamp.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1642771/upsamp.mat"); websave("upsamp_R....
How to up-sample both signals and labels together?
%websave("upsamp.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1642771/upsamp.mat"); websave("upsamp_R....
14일 전 | 0
| 수락됨
답변 있음
connecting each data points in a bar graph with an error bar
Saline1 = [41 55]; Saline2 = [34 26]; bar(1,mean(Saline1), 0.6, 'FaceColor',[0.7 0.7 0.7]) hold on bar(2,mean(Saline2), 0.6,...
connecting each data points in a bar graph with an error bar
Saline1 = [41 55]; Saline2 = [34 26]; bar(1,mean(Saline1), 0.6, 'FaceColor',[0.7 0.7 0.7]) hold on bar(2,mean(Saline2), 0.6,...
14일 전 | 0
답변 있음
Which function used to use in M-Script to remove the variables
a = 3; b = 4; % use clear to remove variables clear a whos a
Which function used to use in M-Script to remove the variables
a = 3; b = 4; % use clear to remove variables clear a whos a
15일 전 | 0
답변 있음
How to put different size vectors to one matrix or mat file?
d1=[1 2 3 4 5 6 7 8]; d2=[1 2 3 4 5]; d3=[1 2 3]; d4=1; % Use cell array d5 ={d1; d2; d3; d4} % you can save d5 as a mat f...
How to put different size vectors to one matrix or mat file?
d1=[1 2 3 4 5 6 7 8]; d2=[1 2 3 4 5]; d3=[1 2 3]; d4=1; % Use cell array d5 ={d1; d2; d3; d4} % you can save d5 as a mat f...
15일 전 | 2
답변 있음
How to filter out multiple outliers from a gradually changing dataset?
Adjust the threshold: websave("a_data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1641186/a_data.mat"...
How to filter out multiple outliers from a gradually changing dataset?
Adjust the threshold: websave("a_data.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1641186/a_data.mat"...
16일 전 | 0
| 수락됨
답변 있음
how to solve if interpolated data also contains NaN values
a = readmatrix("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1641181/V2_small.txt"); a(a>9999.8) = nan b...
how to solve if interpolated data also contains NaN values
a = readmatrix("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1641181/V2_small.txt"); a(a>9999.8) = nan b...
16일 전 | 0
| 수락됨
답변 있음
How to plot data from an external MAT file against a time domain?
If you want to plot whole time series: ns = length(icpcomposite); t = (0:ns-1)/fs; plot(t, icpcomposite); If you want to plo...
How to plot data from an external MAT file against a time domain?
If you want to plot whole time series: ns = length(icpcomposite); t = (0:ns-1)/fs; plot(t, icpcomposite); If you want to plo...
16일 전 | 1
답변 있음
what is the meaning of int16>=int16
The following will read data from the file pointed by fid, assuming that the data in the file is of the format int16 and convert...
what is the meaning of int16>=int16
The following will read data from the file pointed by fid, assuming that the data in the file is of the format int16 and convert...
22일 전 | 0
답변 있음
transfer numerical data end with 'M' and 'B'
You can define your own function. Here is an example: sprintfkmb(12345678) sprintfkmb(-12345678) sprintfkmb(-1238) sprintfk...
transfer numerical data end with 'M' and 'B'
You can define your own function. Here is an example: sprintfkmb(12345678) sprintfkmb(-12345678) sprintfkmb(-1238) sprintfk...
22일 전 | 0
답변 있음
Unable to perform assignment because the left and right sides have a different number of elements.
The following line is problematic: back_to_zero_indices = find(g1(t_values(nonzero_indices)) == 0, 1, 'last'); First, the func...
Unable to perform assignment because the left and right sides have a different number of elements.
The following line is problematic: back_to_zero_indices = find(g1(t_values(nonzero_indices)) == 0, 1, 'last'); First, the func...
22일 전 | 0
답변 있음
How can I set zlabel log scale on 3d plot
[X,Y,Z] = peaks(50); X = X - min(X(:)) + 1; % make it +ve for log Y = Y - min(Y(:)) + 1; Z = Z - min(Z(:)) + 1; surf(X, Y...
How can I set zlabel log scale on 3d plot
[X,Y,Z] = peaks(50); X = X - min(X(:)) + 1; % make it +ve for log Y = Y - min(Y(:)) + 1; Z = Z - min(Z(:)) + 1; surf(X, Y...
23일 전 | 3
답변 있음
Finding the mean values of peak values using "findpeaks" function and displaying it
% load a1.mat % data = a1(:,2) % sample data x = linspace(0,1,1000); Pos = [1 2 3 5 7 8]/10; Hgt = [3 4 4 2 2 3]; Wdt ...
Finding the mean values of peak values using "findpeaks" function and displaying it
% load a1.mat % data = a1(:,2) % sample data x = linspace(0,1,1000); Pos = [1 2 3 5 7 8]/10; Hgt = [3 4 4 2 2 3]; Wdt ...
23일 전 | 0