Answered
How to part a Matrix into submatrices based on the data
If you have *|R2015b|* or later, use the <https://www.mathworks.com/help/matlab/ref/splitapply.html *|splitapply|*> (link) funct...

9 years ago | 0

Answered
plz help me in this question
My guess would be sloppy coding. That would evaluate to *|5e-7|*.

9 years ago | 0

| accepted

Answered
i have a problem regarding curve fitting function
Try this: xdata = [2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19...

9 years ago | 0

Answered
Whats wrong with this operator?
Without seeing more of your code, it is likely that this test: (x < 0.5*x0) is not a logical _scalar_ value. If yo...

9 years ago | 0

Answered
how to create functions to use with OPTIMIZATION toolbox
The Optimization Toolbox functions (except for *|lsqcurvefit|*) require a function with an input argument that is a vector of pa...

9 years ago | 0

Answered
How to generate colored gaussian noise of a certain length?
It depends on what ‘color’ you want the noise to have. There are several ways to do it. To create ‘1/f’ noise for example,...

9 years ago | 0

| accepted

Answered
How to label different lines in a loglog plot
See the documentation on the <https://www.mathworks.com/help/matlab/ref/legend.html *|legend|*> (link) function.

9 years ago | 0

Answered
How to export and save values in a cell?
Call the *|save|* function without any output arguments. The function does not support them. To save the cell in row *|1|*...

9 years ago | 0

| accepted

Answered
Does the matlab ranksum function work for larger sample sizes?
The Wilcoxon *|ranksum|* (and *|signrank|*) tests are generally used for small samples because they are distribution-free, that ...

9 years ago | 0

| accepted

Answered
Help with understanding the magnitude of a Goertzel function output
I haven’t used *|goertzel|* in a while, and at the time I was interested in the relative amplitudes, not the ‘correct’ amplitude...

9 years ago | 0

| accepted

Answered
Is there a way to get a completion measurement for a long nlinfit calculation?
One option is to create an ‘options’ structure with the <https://www.mathworks.com/help/stats/statset.html *|statset|*> (link) f...

9 years ago | 1

Answered
how do i edit my matlab file
Type: edit YourAlgorithm.m (replace *|‘YourAlgorithm.m’|* with the name of your file) in the Command Window to open it ...

9 years ago | 0

| accepted

Answered
area under a pdf not 1?
It has approximately unity area: fun1 = @(x)exppdf(x,10); fun2 = @(x)exppdf(x,20); y = @(x) conv(fun1(x),fun2(x)); ...

9 years ago | 0

| accepted

Answered
Plot of discrete data
Try this: Gain_10m=[24 27 28 34]; Gain_20m=[28 29 31 35]; Gain_30m=[30 34 35 38]; GainMtx = [Gain_10m; Gain_20m; ...

9 years ago | 0

Answered
[q,nd] = max(10*log10(P)); - this is used in spectrogarm . but can anyone tell me what is this ? and how length of q and nd is calculated?
It transforms an argument of power *|‘P’|* to decibels, and returns in *|‘q’|* the _first_ instance of the maximum power in deci...

9 years ago | 0

| accepted

Answered
How to create an array
Use the *|repmat|* function: A = repmat(0:4, 4, 1)'; A = 0 0 0 0 1 1 1 1 ...

9 years ago | 0

| accepted

Answered
Given a Taylor series of a function f, how do you find the Taylor series of its inverse function f^{-1}?
I would begin by using the <https://www.mathworks.com/help/symbolic/finverse.html *|finverse|*> (link) function, then create a n...

9 years ago | 0

Answered
Trouble with plotting pressure against height based on lapse rate.
I see no reason for a loop. You only have two conditions, and are using logical indexing correctly. Your code runs for me ...

9 years ago | 0

Answered
Why won't my code work in R2015b?
See the documentation that discusses <https://www.mathworks.com/help/matlab/graphics-changes-in-r2014b.html *Graphics Changes in...

9 years ago | 0

| accepted

Answered
plotting a mean response curve
*_‘assuming Ys are column vectors and defines mean of the response vectors’_* They are not, at least in the code that you p...

9 years ago | 0

| accepted

Answered
Can I zoom an area in Bode magnitude diagram?
The *|bode|* function has some restrictions. However you can use the GUI zoom, pan, data cursor, and other functions as you wou...

9 years ago | 0

| accepted

Answered
How to write the following expression in Matlab
Having the symbolic original expression would help. Either: y = 1./(1+sinh(4*t)) + 3*log(t).^2; or: y = 1./(1...

9 years ago | 1

Answered
How can I create a min step for ode45?
*@Pablo —* I believe you have only one independent variable, *|‘t’|*. I would use it as your *|‘tspan’|* vector. Also...

9 years ago | 1

Answered
Matlab function that can calculate pvalues from z-scores rho-values in a connectivity matrix
Your *|z|*-scores imply that you are assuming your data are normally distributed. Use the Statistics and Machine Learning T...

9 years ago | 1

| accepted

Answered
How to label x-axis for multiple subplots with different names?
Create a cell array with the different y-axis labels, then index into it: y_label_names = {'Subplot 1', 'Subplot 2', 'Subp...

9 years ago | 1

| accepted

Answered
MSE=immse(J,Kmedian)
The *|immse|* function was introduced in *|R2014b|*. If you have *|R2014b|* or later: Type *|ver|* in the Command Windo...

9 years ago | 0

Answered
quantifying the similarity between data sets
I can’t find anything online that address your problem, and there may be no consensus. Some exploration of your data reveals th...

9 years ago | 0

Answered
Not sure why I am getting this error: Subscript indices must either be real positive integers or logicals.
I suspect the problem is the ordering and syntax of these statements: load i_diode; i_diode(v1,Is,V_T); i_diode ...

9 years ago | 0

Answered
Accelerometer Filtering Data - how to find the valid signals frequency?
I consider signal frequencies to be ‘significant’ if they account for most of the energy in the signal. In yours, they appear t...

9 years ago | 2

| accepted

Answered
Horizontally concatenate existing CSV columns
If you have *|R2013b|* or later, and if your *|‘.csv’|* files all have the same number of rows, I would read each of them in sep...

9 years ago | 0

| accepted

Load more