답변 있음
How do you plot a circular colour map for just one variable?
Z = randi(20,25) ; [m,n] = size(Z) ; r = linspace(0,1,n) ; th = linspace(0,2*pi,m) ; [R,T] = meshgrid(r,th) ; X = R.*co...

거의 4년 전 | 0

답변 있음
Matlab filter max value every 60 elements
A = rand(24*60*60,1); B = reshape(A,[],60) ; iwant = max(B,[],2) ;

거의 4년 전 | 0

| 수락됨

답변 있음
'find' returning empty vector
tol = 10^-3 ; index=find(abs(A(:,2)-37.7)<tol); Read about comparing floating point numbers.

거의 4년 전 | 0

| 수락됨

답변 있음
How to find intersection points in a graph?
The best you can use is this: https://in.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections

거의 4년 전 | 0

| 수락됨

답변 있음
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...

거의 4년 전 | 1

| 수락됨

답변 있음
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) ...

거의 4년 전 | 0

| 수락됨

답변 있음
How to select specific rows in a table ?
Let T be you table. idx = 0:5:200 ; idx(1) = 1 ; iwant = T(idx,:) ;

거의 4년 전 | 0

| 수락됨

답변 있음
Error using sym, too many input arguments
Replace sym with syms. Instead of i (complex number) 1i is preferred.

거의 4년 전 | 1

| 수락됨

답변 있음
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...

거의 4년 전 | 0

| 수락됨

답변 있음
How to find the indices of the closest value in two non-equal sized matrices?
Read about knnsearch

거의 4년 전 | 0

답변 있음
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 =...

거의 4년 전 | 1

| 수락됨

답변 있음
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 = ...

거의 4년 전 | 0

| 수락됨

답변 있음
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...

거의 4년 전 | 1

| 수락됨

답변 있음
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 ...

거의 4년 전 | 0

| 수락됨

답변 있음
I am new to MATLAB
Read about readtable, importdata, load

거의 4년 전 | 0

답변 있음
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...

거의 4년 전 | 0

답변 있음
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...

거의 4년 전 | 0

| 수락됨

답변 있음
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...

거의 4년 전 | 0

| 수락됨

답변 있음
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...

거의 4년 전 | 1

답변 있음
Sort elements from multidimensional array into 2D array?
S = rand(115, 90, 64) ; B = squeeze(S(:,1,:)) ; whos B

거의 4년 전 | 0

| 수락됨

답변 있음
Merging the Cell Arrays with Different Dimensions
iwant = [cell1 cell2] ;

거의 4년 전 | 0

| 수락됨

답변 있음
Assigning the Values to an Element Without e representation
Read about vpa, format x = 123129312383 vpa(x)

거의 4년 전 | 0

| 수락됨

답변 있음
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);

거의 4년 전 | 1

답변 있음
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 ...

거의 4년 전 | 0

| 수락됨

답변 있음
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...

거의 4년 전 | 0

답변 있음
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...

거의 4년 전 | 0

답변 있음
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)

거의 4년 전 | 1

답변 있음
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...

거의 4년 전 | 1

| 수락됨

답변 있음
how to convert 1x68 array into 68x68 weighted matrix.
A = rand(1,68); W = A'*A ;

거의 4년 전 | 0

| 수락됨

답변 있음
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,:)

거의 4년 전 | 1

| 수락됨

더 보기