Beantwortet
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...

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
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) ...

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
How to find the indices of the closest value in two non-equal sized matrices?
Read about knnsearch

fast 4 Jahre vor | 0

Beantwortet
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 =...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
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 = ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
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 ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
I am new to MATLAB
Read about readtable, importdata, load

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 1

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

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Merging the Cell Arrays with Different Dimensions
iwant = [cell1 cell2] ;

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Assigning the Values to an Element Without e representation
Read about vpa, format x = 123129312383 vpa(x)

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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);

fast 4 Jahre vor | 1

Beantwortet
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 ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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...

fast 4 Jahre vor | 0

Beantwortet
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)

fast 4 Jahre vor | 1

Beantwortet
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...

fast 4 Jahre vor | 1

| akzeptiert

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

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
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,:)

fast 4 Jahre vor | 1

| akzeptiert

Mehr laden