已回答
how MATLAB find the ratios for training NN results (test, train and validation )?
In your fig, I believe R is representing the coefficient of determination or the correlation coeeficient (https://www.mathworks....

5 years 前 | 0

| 已接受

已回答
Does anyone know how to fix this?
y(10) referes to the 10th element of the array y; not necessarily the value of y when x=10 or the last array element. to assign ...

5 years 前 | 0

已回答
How to only consider data after a series of time points
If I understood it right, you have threshold values T0(=0?),T1,T2,T3: F0 = find(F(2:end)<T0 & F(1:end-1)>=T0) +1; % indices of ...

5 years 前 | 0

已回答
Im trying to extract the frequency peaks of an FFT in order to synthesis the original using additive synthesis.
findpeaks() returns the indices of the input signal where the peaks were found. you have to use the frequency range to convert t...

5 years 前 | 0

| 已接受

已回答
Fourier transformation of a function solved by ODEs?
Not sure why you squared the fft, but the frequency range needs to be as follows: N = length(X(:,3)); T = 0.01; Fs = 1/T; ...

5 years 前 | 0

已回答
Loop to edit cell values
Assuming your table is named 'myTable' with size 99312x2, you can get the new column from the first column directly by dividing ...

5 years 前 | 0

| 已接受

已回答
How to extract values from structure as array and assign numeric values to them?
% assuming your 200 'data' structs are named as data001, data002, ... varnames = whos('data*'); % since both 'age' and 'gend...

5 years 前 | 0

| 已接受

已回答
changing frequency range of sound
Sampling is performed on the time domain, not the frequency domain. So, what you are asking for can't be achieved by subsampling...

5 years 前 | 0

已回答
How can I fix Errors when predicting values in trained LSBoost model?
T = readtable("Forecast.xlsx"); T.HoursEnding = categorical(T.HoursEnding); T.Month = categorical(T.Month); yfit = trainedMod...

5 years 前 | 1

| 已接受

已回答
How can I use the Xcorr function for two matrix operation! I want to use this for gpuArray.
The operation (xcorr) inside the for loop is not a matrix operation, rather an operation between two vectors (corresponding rows...

5 years 前 | 0

已回答
Can not get row vector to be 1,5
Because a=89:0.5:91.5 gives you a vector of length 6 n=0; V = []; for a=89:0.5:91 n=n+1; V(n)=2*rand+a end

5 years 前 | 1

已回答
How to terminate the loop
b18 = 3+0+0+7+6+0+4+9; % b18 = 29 b58 = 6+0+4+9; % b58 = 19 n = 10000000; % No of samples = 10,000,000 rng default beam_leng...

5 years 前 | 0

已回答
Find set of values that are unique to the values in first two columns in a table
I believe what you are looking for is the unique() function, specially the z in the example below: >> mytable mytable = ...

5 years 前 | 1

| 已接受

已回答
How to calculate cumulative average of every n values in a matrix?
B = (A(1:3:end,:)+A(2:3:end,:)+A(3:3:end,:))/3

5 years 前 | 0

| 已接受

已回答
How to overlap time vectors and plot in multiple axis ?
Hope this helps: fig=figure(1); yyaxis left plot(dt,Sat,'b--','Linewidth',2); % hold on; % plot(temptime(3470:3578),RHout(3...

5 years 前 | 0

| 已接受

已回答
Resave a Matlab file with v7.3 option
The version option goes at the end on save(): save('mod.mat','temp','-v7.3'); While loading, temp2 = load('mod.mat'); temp2...

5 years 前 | 2

| 已接受

已回答
How to calculate the volume of a 3D triangular mesh?
Not quite sure I understood the problem. Yet, a hunch: vertices = [-4 0 5; 1 -5 5; 1 0 1; 1 5 5; 1 0 0]...

5 years 前 | 1

| 已接受

已回答
count string in a cell array
cell = {1234, 9456, 9457 } strong = 945 count = sum(contains(string(cell),string(strong)))

5 years 前 | 0

已回答
How to export predictions?
On the Classification Learner app, there is "export model" button. After you have the model exported to your workspace, you ca...

5 years 前 | 0

| 已接受

已回答
How to know if PCA worked?
Finally, you want to make sure that your principal component analysis worked and it really transformed the correlated explanator...

5 years 前 | 0

| 已接受

已回答
error: Reference to non-existent field 'opts'.
Updated Solution: inside im2mcg.m, (line 52) sf_model = loadvar(fullfile(mcg_root, 'datasets', 'models', 'sf_modelFinal.mat'),...

5 years 前 | 2

| 已接受

已回答
Trying to pause the code until my button is pressed and will continue the code
You can use a while loop to wait: while(readDigitalPin(a,'D4')!=0) % wait here end

5 years 前 | 0

已回答
need help on a simple code, for, while
Just to be consistent with your question: function [A,B,C]=task5(x) A = []; for k=1:x A=[A,k]; end ...

5 years 前 | 0

| 已接受

已回答
How to find cell position in a column based on sum of column.
A = rand(365,500); B = zeros(3,500); B(1,:) = sum(A); B(2,:) = sum(A)/2; B(3,:) = sum((B(2,:)-cumsum(A))>0);

5 years 前 | 1

已回答
How do I compare to matrices with each other?
box1=cut2d(:,2:4); box2=rombohedral(:,1:3); [index1,index2] = ismember(box1,box2,'rows'); % index2 holds the indices of the...

5 years 前 | 1

| 已接受

已回答
How to label ground truth automatically for images
Automated data labeling is still an active research field. Not sure if this would be helpful in the meantime: https://www.math...

5 years 前 | 0

| 已接受

已回答
Matrix division does not work because of matrix dimensions
B\A gives a warning, but not an error. B\A means inv(B)*A. But your B is not square, so inv(B) won't work. And, you are not lo...

5 years 前 | 0

| 已接受

已回答
How to find strings in a very large array of data?
Given, the list of noise is {'a', 'b', 'ee'}: C = cell2mat(textscan(fileID,'%f %f','Delimiter',',','TreatAsEmpty',{'a','b','ee'...

5 years 前 | 1

已回答
How to compare betwen two cells?
T1{1} = [1 2 3]; T1{2} = [1 2 4]; T1{4} = [1 2 3 5]; S{1} = [1 2]; S{2} = [2 3]; % % setdiff(cell2mat(T1),cell2mat(S)...

5 years 前 | 0

| 已接受

已回答
How to calculate the difference between two Areas?
If you just want to align those two profiles using angle values, then I would use findpeaks() on both and look at their differen...

5 years 前 | 0

加载更多