Answered
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...

mer än 11 år ago | 0

Answered
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(...

mer än 11 år ago | 0

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

mer än 11 år ago | 0

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

mer än 11 år ago | 0

Answered
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(...

mer än 11 år ago | 0

Answered
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...

mer än 11 år ago | 0

Answered
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...

mer än 11 år ago | 0

| accepted

Answered
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...

mer än 11 år ago | 0

Answered
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.

mer än 11 år ago | 0

Answered
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...

mer än 11 år ago | 0

Answered
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...

mer än 11 år ago | 0

Question


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 ...

mer än 11 år ago | 1 answer | 0

1

answer

Answered
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...

mer än 11 år ago | 0

| accepted

Answered
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...

mer än 11 år ago | 0

Answered
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 &...

mer än 11 år ago | 0

Answered
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...

mer än 11 år ago | 0

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

mer än 11 år ago | 0

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

mer än 11 år ago | 1

Answered
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...

mer än 11 år ago | 0

Answered
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...

mer än 11 år ago | 1

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

nästan 12 år ago | 0

Answered
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.

nästan 12 år ago | 0

Answered
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...

nästan 12 år ago | 0

Question


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...

nästan 12 år ago | 2 answers | 0

2

answers

Answered
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 ...

nästan 12 år ago | 0

| accepted

Answered
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...

nästan 12 år ago | 0

Answered
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...

nästan 12 år ago | 0

Answered
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...

nästan 12 år ago | 0

| accepted

Answered
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)) ...

nästan 12 år ago | 3

| accepted

Answered
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

nästan 12 år ago | 0

Load more