Risposto
How would you filter this data?
Your 'noise' seems systematic in the sense that it is appears to always be approximately the same amplitude and is not random. I...

circa 13 anni fa | 0

Risposto
derivation using command diff
velocity = diff(x); acceleration = diff(velocity); You can verify it yourself with an example such as x=cos(t), v=sin(...

circa 13 anni fa | 0

Risposto
plot kalman smoother output vectors with confidence interval!!!!
upper = theta*1.05; lower = theta*0.95; plot(t,lower,t,theta,t,upper);

circa 13 anni fa | 0

Risposto
problem with jet colormap
Have you tried, imagesc(......,'Parent',handles.axes14)

circa 13 anni fa | 0

Risposto
Searching a Matrix for Specific Values
For matrix A thisrow = A(row,:); result1 = (any(thisrow,1) && any(thisrow,2) && any(thisrow,3) && any(thisrow,4) && any(...

circa 13 anni fa | 0

Risposto
how load a different sessions files from the same subject
One way to do this is to filter the directory of files by some user input. A GUI would be a nice user friendly way, but if you d...

circa 13 anni fa | 0

Risposto
angle and radius of a curve
It would help if you gave some definitions, but I'll do that, hopefully correctly interpreting your question. Define the cur...

circa 13 anni fa | 0

| accettato

Risposto
change filename from different folder
The first filename in a directory is the "." file which is just specifying the path to this directory... not really a file at al...

circa 13 anni fa | 0

Risposto
i want to store the result of 191 iterations in one variable and then i want to find the slope of those values.
gradient(y) will give you the slope at every point of the variable y.

circa 13 anni fa | 0

Risposto
evaluate a cubic polynomial in an interval
If you mean you want to evaluate v1 at x values between the kth and (k+1)th values of x, then define x as the interval of intere...

circa 13 anni fa | 0

Risposto
Easy way to clean up a plot?
Here are two ideas that should work. 1. Try a standard moving average with lead and lag data points. 2. Take small sample se...

circa 13 anni fa | 0

Domanda


Specifying colors for a plot of a multidimensional array
I have a multidimensional array that I want to plot, but want to use a different color scheme than the default. I've tried ...

circa 13 anni fa | 1 risposta | 0

1

risposta

Risposto
how to see previous results while tabulating?
Change where you put your print statements to see running total. fprintf('\n\n%18s%18s%18s\n','it_no','x','f(x)'); while...

circa 13 anni fa | 0

| accettato

Risposto
How can I show how much time is left for a script to complete?
One thing you can do is determine where the bulk of the computation time resides. Hopefully this is in a loop. You could then t...

circa 13 anni fa | 0

Risposto
Timing a train on a loop
toc measures the elapsed time since tic was executed. You probably want something like if a.analogRead(approach) > 300 &...

circa 13 anni fa | 0

Risposto
FFT of a signal
A non-zero mean will give you a large value at 0Hz in the frequency domain. If you zoom in at 20Hz, you will still see your sign...

circa 13 anni fa | 0

Risposto
Converting decimal to binary, help!!
See <http://kipirvine.com/asm/workbook/floating_tut.htm> for a good tutorial.

circa 13 anni fa | 0

Risposto
Problem when assigning vectors
the value of k must be positive and less than the size of f.

circa 13 anni fa | 1

Risposto
index exceeds matrix dimension
First of all, it's probably not a good idea to use reserved words for variable names, such as max and min. These are standard f...

circa 13 anni fa | 0

Risposto
Calling a function from within a GUI (GUIDE)
The functions in your program created by guide can be called like any other function. You just have to input the arguments it ne...

circa 13 anni fa | 1

Risposto
how to find a local minima for a continuous waveform ?
min(min(X))

oltre 13 anni fa | 0

Risposto
figure text cut off when saved
Is it cutoff because the title is too long? If so, make your figure larger so that the title fits. Or change to a smaller font.

oltre 13 anni fa | 0

Risposto
how can I read a text file line by line containing titles of the research papers?
The format of the file is important. The following code assumes each line is a title. fileid = fopen(filename); ind = 0...

oltre 13 anni fa | 0

Domanda


Mesh plot in GUI works, but in separate figure won't plot
I have a GUI with axes defined with a Tag 'axes1' When I plot mesh(handles.axes1,x,y,z) where x and y are column vec...

oltre 13 anni fa | 2 risposte | 0

2

risposte

Risposto
Return the final x for different t
Matlab defaults to rows. So when creating a vector on the fly like you have, specify both row and column. These lines should ...

oltre 13 anni fa | 0

| accettato

Risposto
Binning elements between limits
histc gives you the number of elements in the bins. Below code should give variance of the elements in the bins: % X i...

oltre 13 anni fa | 0

Risposto
function created for transform grayscale to binary doesn't work
If you're interested, this should be faster code if your image is very large or you're doing many of them. function BW = co...

oltre 13 anni fa | 0

Risposto
how to store data in a matrix
Try this: m=1; for i=1:72; for j=2:5; p1 = i+j; n=[j+1:6]; p2 = i + n; for k=1:leng...

oltre 13 anni fa | 0

| accettato

Risposto
How do I put all values from for loop into one vector
Y = 0:.1:1.8; n = length(Y); u = zeros(n,1); for k=1:n; u(k)=umax/M*log(1+(exp(M)-1)*(y(k)/D)*exp(1-y(k)/D)) ...

oltre 13 anni fa | 3

| accettato

Risposto
Read certain range of csv file
Try file = csvread('file.csv', 251, 0, [251 0 5351 5351+n]); where n is the number of columns you want to read

oltre 13 anni fa | 0

Carica altro