Réponse apportée
Matlab filter max value every 60 elements
A = rand(24*60*60,1); B = reshape(A,[],60) ; iwant = max(B,[],2) ;

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
'find' returning empty vector
tol = 10^-3 ; index=find(abs(A(:,2)-37.7)<tol); Read about comparing floating point numbers.

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to find intersection points in a graph?
The best you can use is this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Plot bending moment diagram based on provided formula
This : put x=1:0.5:14 then M(1.5) Should be replaced with: x=1:0.5:14 ; for i = 1:length(x) M(i) = % some caclu...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
extracting 20% of the data from a table
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1031740/testProfile.txt') ; plot(T.NE,T.GDALT) ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to select specific rows in a table ?
Let T be you table. idx = 0:5:200 ; idx(1) = 1 ; iwant = T(idx,:) ;

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Error using sym, too many input arguments
Replace sym with syms. Instead of i (complex number) 1i is preferred.

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How can I get if some functions are intercepted? having the equation of the line
You can use this function InterX. https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections If you get int...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to find the indices of the closest value in two non-equal sized matrices?
Read about knnsearch

presque 4 ans il y a | 0

Réponse apportée
Want to see the results from the 79 csv files but only getting one result
P = 'F:\3-PIV_Experimental_Data\Calculations_TurbulentIntensity\line_Data\Elliptical_Side\Length\DesignPoint\110_outlet'; Q =...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Select samples from plot
Let f be your x-axis i.e. frequency values and s be your y-axis i.e. specturm values. idx = s > -140 ; x1 = x(idx) ; s1 = ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Not looping over all the files
close all; clear all; clc; P = 'F:\3-PIV_Experimental_Data\Calculations_TurbulentIntensity\line_Data\Elliptical_Side\Length\D...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Plots using for loops
Your code saves, only one value for error, which happens to be the last value of the loop. You need to save error into an array ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I am new to MATLAB
Read about readtable, importdata, load

presque 4 ans il y a | 0

Réponse apportée
Strings are converted to cells during readtable
You can convert cell into a string and then use join. data = table("string1", "string2"); writetable(data, "data.csv"); d...

presque 4 ans il y a | 0

Réponse apportée
How to smooth the data using the MATLAB?
T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1026350/data.txt'); x = T.Var2 ; y = T.Var1 ; yy...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Add cells into a square
ex = [0 1 1 0]; ey = [0 0 1 1]; m = 5 ; n = 5 ; A = [min(ex) min(ey)] ; B = [max(ex) max(ey)] ; x = linspace(A(1),B...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can I find all possible pairs within a range that result in the same average?
a = 0:10 ; b = permn(a,2) ; idx = mean(b,2)==2 ; iwant = b(idx,:) You can download the function permn from the file excha...

presque 4 ans il y a | 1

Réponse apportée
Sort elements from multidimensional array into 2D array?
S = rand(115, 90, 64) ; B = squeeze(S(:,1,:)) ; whos B

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Merging the Cell Arrays with Different Dimensions
iwant = [cell1 cell2] ;

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Assigning the Values to an Element Without e representation
Read about vpa, format x = 123129312383 vpa(x)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Invalid use of operator when trying to input function
Read about MATLAB element by element operations. t = linspace(0,0.001); v = 12-8*exp(-200000*t)+800000*t.*exp(-200000*t);

presque 4 ans il y a | 1

Réponse apportée
How to locate a collide segment of a post-smoothed path?
env = map; % J = im2uint8( map ); % env = imnoise( J ,'salt & pepper'); v = pathSmooth; iwant = zeros([],2) ; count = 0 ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Matlab and chemical enngineering
https://www.quora.com/What-is-the-use-of-MATLAB-in-chemical-engineering https://in.mathworks.com/academia/books/chemical-engin...

presque 4 ans il y a | 0

Réponse apportée
I am calculating impedance matrix getting error 'Index exceeds the number of array elements'. please help me fix it.
The problem is simple. You are trying to extract more number of elements than present in the array. Your nl, nr are of size 28...

presque 4 ans il y a | 0

Réponse apportée
Having trouble plotting function
t = linspace(0,0.001); F = 0.015+exp(-10000*t).*(-0.01*cos(20000*t)-0.0025*sin(20000*t)); %<-- you missed .* plot(t,F)

presque 4 ans il y a | 1

Réponse apportée
Compute performance measures from neural network
net = train(net,X,T); Yp = net(X); % predicted from Net and Let Yt be your true value R = regression(Yp,Yt) ; % Regressio...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
how to convert 1x68 array into 68x68 weighted matrix.
A = rand(1,68); W = A'*A ;

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Find identical rows in matrices
REad about ismember % Example A = [1 1 1; 2 3 4; 5 5 5; 8 9 10]; B = [1 1 1;5 5 5]; [c,ia] = ismember(A,B,'rows') ; A(c,:)

presque 4 ans il y a | 1

| A accepté

Réponse apportée
What to do after getting predicted Yfit from regression learner?
You have the TrainedModel with you.....if you feel the accuracy is satisfactory, validate it. If the validation (for unseen data...

presque 4 ans il y a | 0

Charger plus