답변 있음
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...

대략 13년 전 | 0

답변 있음
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(...

대략 13년 전 | 0

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

대략 13년 전 | 0

답변 있음
problem with jet colormap
Have you tried, imagesc(......,'Parent',handles.axes14)

대략 13년 전 | 0

답변 있음
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(...

대략 13년 전 | 0

답변 있음
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...

대략 13년 전 | 0

답변 있음
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...

대략 13년 전 | 0

| 수락됨

답변 있음
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...

대략 13년 전 | 0

답변 있음
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.

대략 13년 전 | 0

답변 있음
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...

대략 13년 전 | 0

답변 있음
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...

대략 13년 전 | 0

질문


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

대략 13년 전 | 답변 수: 1 | 0

1

답변

답변 있음
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...

대략 13년 전 | 0

| 수락됨

답변 있음
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...

13년 초과 전 | 0

답변 있음
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 &...

13년 초과 전 | 0

답변 있음
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...

13년 초과 전 | 0

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

13년 초과 전 | 0

답변 있음
Problem when assigning vectors
the value of k must be positive and less than the size of f.

13년 초과 전 | 1

답변 있음
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...

13년 초과 전 | 0

답변 있음
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...

13년 초과 전 | 1

답변 있음
how to find a local minima for a continuous waveform ?
min(min(X))

13년 초과 전 | 0

답변 있음
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.

13년 초과 전 | 0

답변 있음
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...

13년 초과 전 | 0

질문


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

13년 초과 전 | 답변 수: 2 | 0

2

답변

답변 있음
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 ...

13년 초과 전 | 0

| 수락됨

답변 있음
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...

13년 초과 전 | 0

답변 있음
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...

13년 초과 전 | 0

답변 있음
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...

13년 초과 전 | 0

| 수락됨

답변 있음
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)) ...

13년 초과 전 | 3

| 수락됨

답변 있음
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

13년 초과 전 | 0

더 보기