Réponse apportée
Reset button
You will have to hard-code this functionality. You will need to create a pushbutton and then under that new pushbutton function ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Multithreaded FILTER?
*I ran this on my 8-core machine using R2009a:* function myFilterTest x = rand(1e6, 8); x1 = x(:,1); x2 = x(:,2); x3 = x(:,...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Matrix Polynomial Equation solution
I ran this as a test, and it looked like the value I randomly chose for "T" below matched the "TT" predicted by "fsolve". It loo...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
how to find which bin the number goes to in histogram
If you have: X = rand(1,1000); nbins = 25; [n,xout] = hist(X,nbins); Then "xout" will give you the center of the bin l...

plus de 14 ans il y a | 3

Réponse apportée
How can I get MATLAB to open objects outside of MATLAB using the mouse?
There is some information: <http://www.mathworks.com/matlabcentral/newsreader/view_thread/156064/ Here> Other contributors migh...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
??? Index exceeds matrix dimensions.
You are not creating any x beyond x(1). In your inner "for" loop you have: c = F*(c(c+1)+c(c-1))+(1-2*F)*c; Which probably s...

plus de 14 ans il y a | 0

Réponse apportée
A problem in writing a code
The first line in your third "for" loop is: mat2 = y_d - ((h_minus * u_minus) - (Output - y_d)); which is basically: ...

plus de 14 ans il y a | 0

Réponse apportée
vectorization
If A is an NxN matrix: A(1:N+1:N*N) = 0;

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Non-Constant Frequency & FFT
You can always interpolate the data to regular spaced 90Hz data. This can be done upfront with the time domain data or you can k...

plus de 14 ans il y a | 0

Réponse apportée
ls unix command not working
You can use "dir" instead

plus de 14 ans il y a | 0

Réponse apportée
First and second derivative of the function using fft?
I have another example, <http://www.mathworks.com/matlabcentral/answers/17611-how-to-convert-a-accelerometer-data-to-displacemen...

plus de 14 ans il y a | 0

Réponse apportée
FORTRAN code in MATLAB
I am running on a unix machine. If I had Matlab code that depends on the output of Fortran code (and I didn't want to spend time...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
FORTRAN code in MATLAB
In my experience, Matlab will most likely be slower than its Fortran equivalent. Instead of trying to manipulate the original Fo...

plus de 14 ans il y a | 0

Question


Interpret string to form sequence of numbers
I want to see if something like this already has been discussed (so I am not reinventing the wheel). Basically, I will read in a...

plus de 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
indexing
Are you trying to create a row vector with all the different combinations of q1, q2, q3, and q4? If so: q1=11; q2=22; q3=33;...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Find end of line (EoL) in a text file using MATLAB code
It won't work if you read in each string one-by-one, you have to read in each character one-by-one for it to work. fid = fope...

plus de 14 ans il y a | 0

Réponse apportée
all possible permutations
Or... a = perms([1, -1, 2, -2, 3, -3, 0]); b = a(:,1:4); c = unique(b,'rows');

plus de 14 ans il y a | 2

Réponse apportée
simple operations
a = [0 0 1 2 2 2 7]; b = unique(a); b = [0 1 2 7]

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Pausing a for loop execution
Check out "doc uiwait". Basically, you will just change the above to: for idx = 1:length(missing_sigs) mis_sig_no_tok = s...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Cyclic colormap for visualizing angles
You can pick out your favorite colormap (doc colormap for examples) and then just wrap it around itself. So, for example, you ca...

plus de 14 ans il y a | 1

Réponse apportée
100 permutation
Stab in the dark: sizeX = [4,5]; permlimit = 100; X = reshape(1:prod(sizeX),fliplr(sizeX))'; Y = zeros([permlimit, sizeX(2...

plus de 14 ans il y a | 0

Réponse apportée
Stuck in a While loop...sometimes
The problem is with the population where "living" is equal to (0.8). There are cases where no combination of adding or subtracti...

plus de 14 ans il y a | 0

Réponse apportée
understand difference between analytic result of Fourier transform and result of fft() function
Since the "fft" has no idea what the time increment (i.e., Ts) of your data is, the result you are given basically assumes your ...

presque 15 ans il y a | 2

Réponse apportée
Critical points of a polynomial function
Does something like this work: x_range = [0,10]; p = [1,4,-2,1]; % the 3rd order polynomial coefficients for (x^3+4*x...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
How to see freq response of a wave file
None of the above works? Try: wave_file = 'name.wav'; [wave_data_time, sample_rate] = wavread(wave_file); N_temp = lengt...

presque 15 ans il y a | 2

Réponse apportée
Storing a Finite Difference History
It may be more time consuming, but if you could code something up to simply write out the results to a text file (or binary file...

presque 15 ans il y a | 0

Réponse apportée
I have written the equations to Proving Parseval's Relation but are giving me different answers Can you help?
Make sure the way you define things is consistent with the following definitions: If: - fs = sample rate (samples per secon...

presque 15 ans il y a | 0

Réponse apportée
finding sequences
Here is an example that will get you on your way: t = 0:0.1:10; f = sin(2*pi/3*t); p = zeros(size(t)); s = ones(size(t))...

presque 15 ans il y a | 0

Question


Dynamic context menus?
Is it possible to create a dynamic context menu in a Matlab GUI? For example, I would like to create a context menu with the sam...

presque 15 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
heatmap visualization of earthquake data
You may be able to use this as a solution to the interpolation problem (i.e., allow you to interpolate on an irregular grid): ...

presque 15 ans il y a | 0

Charger plus