Answered
How do i plot matrix in spectogram
You can use pcolor, imagesc. Read about pcolor.

6 years ago | 0

Answered
plot an arc between two points
First get the radius of sphere....I hope center is (0,0,0). To get radius use:

6 years ago | 1

| accepted

Answered
How to get ones out of matrix
a = [0 1 1 0] ; idx = find(a==1)

6 years ago | 0

| accepted

Answered
How to plot non equally spaced data in an equally spaced fashion and lable Xaxis with the data
Read about interp1. USe interpolation and make the data even. Let F, T be your column data. m = length(F) ; Fi = linspace(mi...

6 years ago | 0

Answered
Determining where y = 0
Try this: syms f(x) f(x) = x.*(cos(x.^2)) - exp(sqrt(x)) + x.^3 - 4*(x.^2); Df = diff(f,x); y = subs(Df,x,0:0.001:4) ; % th...

6 years ago | 0

| accepted

Answered
Plotting zero vectors in quiver3
%% set up mesh Xvc=(-5:2:5)'; Yvc=(-5:2:5)'; Zvc=(-5:2:5)'; [X,Y,Z]=meshgrid(Xvc, Yvc, Zvc); %% plot V Vx=-Y; % ...

6 years ago | 1

| accepted

Answered
Left-most root Bisection method
You can refer the math here: https://www.mathwarehouse.com/calculus/continuity/continuity-bisection-method.php https://www.you...

6 years ago | 0

Answered
interpolate a matrix to fill NaN values.
Read about fillmissing. Or use interp1 as shown: clc; clear all ; T = [13.5047428571429 13.2392558823529 NaN 14.0492333333333...

6 years ago | 0

| accepted

Answered
Separate row indices of a Matrix in two groups
pilot_loc= (1:N:256); % N is a variable. data_loc = setdiff(1:256,polot_loc) ;

6 years ago | 1

| accepted

Answered
How to use result from first iteration from one equation and use it on other equation?
Check the below. Check the code, I have not checked it thoroughly. But you can follow the methid like shown. I have used anonymo...

6 years ago | 0

| accepted

Answered
does plotting work on large no of values
Why it will not work? First try with less number of points. You ave taken a huge number of points. clc; clear all ; m = 100 ;...

6 years ago | 0

| accepted

Answered
Index exceeds the number of array elements (0).
As you are expecting the angle to be in degrees, you have to use sind, cosd. If you enter the angles in radians, then use sin, c...

6 years ago | 1

Answered
Find the mean value of a signal
If you have an array a, use mean(a). a = rand(1,100) ; plot(a) ; a_avg = mean(a)

6 years ago | 0

Answered
Adding matrix values into a string
a=[1 2 3 4 5 6 7 8 9] ; str = char(a+'0')

6 years ago | 0

| accepted

Answered
Figure but no plot
You have not defined f in your code...you need to define f and then call plot...something like this: diffmax=100 x=0:0.1:dif...

6 years ago | 0

Answered
correlation and visualisation of data
The corellation is a single number...to get it you can use xcorr. If you insist on plotting have a look on plotregression. If ...

6 years ago | 0

Answered
concatination rows of matrix for making a new matrix
% Data for demo A = [0 0 1 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 ...

6 years ago | 1

Answered
plotting percentage of a max value
You may get multiple values for this case. [val,idx] = max(y) ; y1 = val*5/100 ; % Increase the reoslution of (x,y) data ...

6 years ago | 0

Answered
Brace indexing is not supported for variables of this type.
% List all CSV files fnames = dir('*.csv'); % Pre-allocate output vector ranges = zeros(numel(fnames), 1); % Loop over file ...

6 years ago | 1

Answered
Too Many Input Arguments
The function takes 15 inputs and you are giving 16 inputs. Please check. I feel the first input ua(j,i) is extra.

6 years ago | 0

| accepted

Answered
How do I calculate distances between multiple points on a map using a loop.
If (x,y) are your column data. To get the distance between successive points use: dx = diff(x) ; dy = diff(y) ; d = sqrt(dx.^2...

6 years ago | 0

Answered
Finding different values of a matrix in a single loop
Read about ismember. A = [ 4 5 2 8 3 4 5 6 1 3 2 4 2 7] ; ...

6 years ago | 0

Answered
Selecting either 1) a range of values from a plot or 2) selecting values from column / row value range or 3) both
To select x-values lying in the range 0.1 and 10. use: idx = x > 0.1 & x < 10 ; xi = x(idx) ; To get the respective y va...

6 years ago | 0

Answered
How to plot number of frames of acoustic signal data vs RMS?
s = rand(1,13230000) ; x = reshape(s,30,[]) ; N = size(x,2) ; x_rms= sqrt(mean(x.^2,2)) ;;

6 years ago | 1

Answered
how can i solve these linear equation? I am just installed it and having difficulties using matlab
s = solve(eqn2, a ,b ,c) ; a = double(s.a) b = double(s.b) c = dpuble(s.c) s = double(s)

6 years ago | 0

Answered
Finding min and max of an element without using builtin function
https://in.mathworks.com/matlabcentral/answers/387435-how-to-find-max-and-min-using-for-loop-and-if-condition-without-using-the-...

6 years ago | 0

Answered
Dear All, I have this question and I already solved it manually, But I was asked to code it as a matlab function or script, I am new here in your community, can anybody please help me out?
The best book available and usefule for you: https://www.amazon.in/Finite-Element-Mechanical-Aerospace-Engineering/dp/0849300967...

6 years ago | 0

Answered
Detecting coordinates of line edges
A= [0 1 0 0;... 0 0 1 0; ... 0 0 0 1; ... 0 0 0 0] ; idx = find(A) ; [i,j] = ind2sub(size(A),idx) ; [i j]

6 years ago | 0

Answered
How to divide an image into regions or grids and then calculate the number of pixels in each grid or region?
https://in.mathworks.com/matlabcentral/answers/362262-i-have-a-32-32-matrix-i-want-to-take-mean-of-each-4-4-so-that-the-matrix-i...

6 years ago | 0

Answered
Extracting data from cell array
T = cell2table(C,... 'VariableNames',{'Name' 'SirName' 'Age' 'Id'}) ; T You have the data in Table T, you can extract wh...

6 years ago | 1

Load more