Answered
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 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Answered
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 years ago | 0

| accepted

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

4 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 1

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

Answered
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 years ago | 1

Answered
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 years ago | 0

| accepted

Answered
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 years ago | 0

Answered
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 years ago | 0

Answered
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 years ago | 1

Answered
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 years ago | 1

| accepted

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

4 years ago | 0

| accepted

Answered
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 years ago | 1

| accepted

Load more