Answered
Converting a symbolic matrix to a normal matrix
Try this: syms x y z M = jacobian([x*y*z, y^2, x + z], [x, y, z]); M = subs(M, {x,y,z},{1,1,1}); dM = double(M); ...

9 years ago | 3

| accepted

Answered
How to find the Similarity between two Histograms??
One option is the chi-square test if you want to test the statistical hypothesis that the two are different. (See <https://stat...

9 years ago | 0

Answered
How can I find the index of a point in an array?
This is due to floating-point approximation error. You have to search within a range of tolerances. Try something like thi...

9 years ago | 0

| accepted

Answered
Finding Weighted Coefficients of Variables
It depends what your experiment is and if you have a mathematical model of the process that produced your data. If you do and t...

9 years ago | 1

Answered
Deleting specific colums in a matrix
You need to do the tests in the same statement, because the conditions have to occur simultaneously: *_Example_ —* M =...

9 years ago | 1

Answered
Getting an array from another function
You did not say how you are calling either *|‘read_tsf’|* or *|‘tsf_dbl’|*. Functions have their own workspaces that they do no...

9 years ago | 0

| accepted

Answered
Make the FIND more compact
Yes. You only need the first output from *|ismember|*, that is a logical vector. I believe this is the result you want: ...

9 years ago | 2

Answered
how to convert this structure in simple array???
Since I do not know what types of data are in your structure, I would create a *|table|* from it. Use the <https://www.mathwork...

9 years ago | 0

Answered
I want to randomly have numbers added to a matrix
Use the *|randi|* function: M = randi([0 1],300);

9 years ago | 0

Answered
how to find bode plot and phase,magnitude plot of 171 transfer function using for loop?
See <https://www.mathworks.com/matlabcentral/answers/348076-how-to-find-bode-plot-phase-magnitude-plot-and-template-in-control-s...

9 years ago | 1

| accepted

Answered
Prevent repeating number in a vector
I am not certain what you want. If you want a random matrix that prevents repeats, this works: M = perms(unique([2 4 ...

9 years ago | 1

| accepted

Answered
signal processing and fft
See the documentation for the <http://www.mathworks.com/help/releases/R2015a/matlab/ref/fft.html *|fft|*> (link) function. Part...

9 years ago | 0

Answered
how to find bode plot,phase magnitude plot and template in control system?
This works, although you will have to plot *|171|* figures to see each of them with any detail. (You would have to have a very ...

9 years ago | 0

| accepted

Answered
solving 5 nonlinear equations
If you have the Symbolic Math Toolbox, this will give you one set of solutions: syms a b c d e Eqns = [32.5 == 2*sqrt(...

9 years ago | 0

| accepted

Answered
Is it possible to view the demo files logo.m and vibes.m?
edit logo.m edit vibes.m

9 years ago | 1

Answered
How to use find here?
If you want to find the zero-crossings, this little utility function will return the *_indices_* of the approximate zero-crossin...

9 years ago | 1

| accepted

Answered
Spectral or peak alignment
One option is to use the Signal Processing Toolbox <http://www.mathworks.com/help/signal/ref/alignsignals.html *|alignsignals|*>...

9 years ago | 1

Answered
Difference between plotconfusion and Confusionmat function in MATLAB?
Your interpretation of the function outputs being transposes of each other is correct. From the *|confusionmat|* documentat...

9 years ago | 0

Answered
Obtaining uncertainty in parameters fitting discrete data points with component data, using "\" or "mldivide"
The statistics and Machine Learning Toolbox <https://www.mathworks.com/help/stats/regress.html *|regress|*> (link) function can ...

9 years ago | 1

| accepted

Answered
How to calculate fourier series coefficients for a sawtooth wave?
If you have the sampling frequency *|‘Fs’|*, you can use the fast Fourier transform <http://www.mathworks.com/help/releases/R201...

9 years ago | 0

Answered
How can i filter an EEG signal?
Three possibilities: *|1.|* You do not have the Signal Processing Toolbox (that has the *|designfilt|* function); *|2.|...

9 years ago | 1

| accepted

Answered
Select value with constant interval
See the documentation on <http://www.mathworks.com/help/matlab/math/matrix-indexing.html *Matrix Indexing*> (link) and the <http...

9 years ago | 1

Answered
How would you plot y=x^(2)e^(-x2)?
Try this: x = linspace(-5, 5); y = x.^2 .* exp(-(x.^2)); figure(1) plot(x, y) grid Experiment to get th...

9 years ago | 2

| accepted

Answered
Removing rows that are not unique from an array?
This works: A = [1 2; 1 3; 1 4; 1 2; 1 5]; [~,ia,ic] = unique(A, 'rows'); % Unique Elements v = accumarray(...

9 years ago | 4

| accepted

Answered
Remove NaN from doubles within a cell array
Try this: ab = {[1 2 NaN 3 4];[1 3 4 NaN 5 6 7 NaN]}; Output = cellfun(@(x) x(isfinite(x)), ab, 'UniformOutput',false);...

9 years ago | 0

| accepted

Answered
How can i add to an noise to signal?
This will add normally-distributed broadband random noise to your EEG signal vector: sd = 0.1; ...

9 years ago | 0

| accepted

Answered
How to calculate the filter order of given specification ??
There is a way to calculate the order necessary for *|IIR|* filters, since they have both numerator and denominator polynomials,...

9 years ago | 0

| accepted

Answered
Project vectors onto x=y plane
Use the *|quiver3|* function, and *|view([0 90])|*.

9 years ago | 0

Answered
How to effectively plot semi continuous graph
I cannot say this is better, but it _is_ different, and does the vector splitting on its own: Xaxis = [273.5 275.5 277.5 2...

9 years ago | 2

| accepted

Answered
Mean doesn't work
Try this: mean(All_measured ,2, 'omitnan') or: nanmean(All_measured ,2)

9 years ago | 1

| accepted

Load more