Réponse apportée
Error using vertcat Dimensions of arrays being concatenated are not consistent.
In the RRTSS1 script, "dist" is defined inside an "if" statement without any "else" for "dist" value. So if Reach=0, then ans =...

environ 6 ans il y a | 0

Réponse apportée
How to divide data into train/valid/test sets such that one sample from every class is selected?
Set 'Stratify' option to 'True'. cv = cvpartition(data(:,1),'KFold',5,'Stratify',true);

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Determine first and second derivatives, without using builtin diff function, using forward differencing with 0 dx error
dfdx = zeros(size(f)); d2fdx2 = zeros(size(f)); dfdx(2:end) = f(2:end)-f(1:end-1); d2fdx2(2:end) = dfdx(2:end) - dfdx(1:e...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
How to calculate the optimal thickness
Assuming, optimal thickness yields maximum refraction, m = find(R==max(R)) optimal_thickness = d(m) % ans = % 1.9192e-07...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Problem with the TreeBagger Command
The Training_Output variable has to be a vector of size 6768X1 instead of a matrix.

environ 6 ans il y a | 0

Réponse apportée
how i can use confusion_matrix for result of image classification using knn?
yhat = predict(model,x); C = confusionmat(y,yhat)

environ 6 ans il y a | 0

Réponse apportée
How do I improve my result of KNN classification using confusion matrix?
yhat = predict(model,x); [C,order] = confusionmat(y,yhat); Use this help file to understand how to use C and order: https://w...

environ 6 ans il y a | 0

Réponse apportée
Convolution of two piecewise signals returning zero (exercise 2 in attachment)
t = -10:1/10:10; x = zeros(1,length(t)); h = zeros(1,length(t)); for i=1:numel(t) if t(i)<0 || t(i)>2 x(i) = 0;...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
transform column and row data of logical matrix to vector(N X 2)
logical_matrix = [0 0 0 0; 0 1 0 0; 0 0 0 0; 0 0 1 0; 0 1 0 1]; [i,j] = find(logical_matrix); vector_matrix = [...

environ 6 ans il y a | 0

| A accepté