Answered
How can I loop an array from the end to the beginning, with a while loop?
ii = length(array); while (ii>0) disp(array{ii}); ii = ii-1; end

13 years ago | 0

Answered
finding duplicate number and adjacent row value
[~,iv] = unique(v(:,1),'stable'); vnew = v(iv,:);

13 years ago | 0

Answered
Plotting multiple line on Matlab but only last plot showed
Hold the plot on: Ia = 1.5; Ib = 1; C = 2; R = 10; tau = R*C; tstop = 200; % ms V_inf = Ia*R; h = 5; V1 = 0;...

13 years ago | 0

Answered
how to calculate time lag in two signal using cross correlation
You have to keep in mind: 1.) xcorr is returning negative lags as well as positive, but for real-valued inputs the cross-corr...

13 years ago | 1

Answered
Finding more than one solution for Matrix Multiplication (Ax = b)
For example: A = [1 2; 1 2]; b = [3 3]'; x = pinv(A)*b; % one solution A*x % the nullspace of A has dimension 1. So ...

13 years ago | 2

| accepted

Answered
Finding more than one solution for Matrix Multiplication (Ax = b)
Yes, you can use null() to find a vector from the null space

13 years ago | 0

Answered
Surface of a equation
I think you meant to square r in your equation, and you cannot have a value between -1.5 and 1.5 if the radius is 1. The radius ...

13 years ago | 1

| accepted

Answered
How can I remove the discontinuity in concatenation of wav arrays?
How big is the discontinuity? I'm assuming the two waveforms are both essentially zero-mean waveforms. If not, you'll want to sh...

13 years ago | 0

| accepted

Answered
why my cdf does not match cumsum(pdf)
It does not appear to me that you are approximating the Riemann sum of the integral of the PDF correctly here. x = 0:0.01:1...

13 years ago | 1

| accepted

Answered
How can i MakeNoise to the dataset dataset
Do you have the Image Processing Toolbox? If so, see the help for imnoise

13 years ago | 1

Answered
Problem Using User Input with Function Handle
One thing you can use is str2func g = input('Request a Function of (x): ','s'); % assume user inputs cos f = str2f...

13 years ago | 0

Answered
How can i MakeNoise to the dataset dataset
MakeNoise.m is not a MathWorks' function, but there are many ways to add noise to a signal or image using MathWorks' functions. ...

13 years ago | 0

| accepted

Answered
Obtaining same values at avery simulation using rand function
I think you should use the newer rng rng default; x = randn(100,1); rng default y = randn(100,1); max...

13 years ago | 0

| accepted

Answered
3D graph F(x y z)
Hi Lex, you haven't told us what L2 or L3 is here, but you have a few issues. First L = (3/2).*(1E-10); 0:L/50 Wh...

13 years ago | 0

Answered
Setting different values to properties in subplots generated by a function in a plot
Why can't you use handles or calls to the plot functions to do that?

13 years ago | 0

Answered
UndefindedFunction error in compiled Console Application regarding Wavelet
Do you get the same problem if you use cwt() instead of cwtext() cwd = cwt(sig,3,'mexh');

13 years ago | 0

Answered
Change dimension of a matrix
You cannot because the number of elements will change. 131072 is not equal to 256^2 so what are you going to do with all the lef...

13 years ago | 0

Answered
Magic and Trace Function
That's because the functional form you are using when you enter >>trace A is executing >>trace('A') and in this ...

13 years ago | 2

| accepted

Answered
How to coup with matrix dimension?
a = randn(200,2); c = a'*a; You can just use cov() a = randn(200,2); y = cov(a); The equivalence can be made ...

13 years ago | 0

Answered
Convolution of two independent normally distributed random variables
Hi, you are confusing things here a bit. You don't want to consider the mean and standard deviations of the PDFs. You want to co...

13 years ago | 2

Answered
Error using rtwintgt-setup
I'm guessing you just need a space between rtwintgt and -setup rtwintgt -setup

13 years ago | 1

Answered
Could someone explain below code
Without more context it's hard to say exactly what it's for, but it is simply replacing the jj-th row of mnn with the jj-1 row a...

13 years ago | 0

Answered
does arrayfun support named functions on GPU?
<http://www.mathworks.com/help/distcomp/using-gpuarray.html#bsloua3-1> I can't test this at the moment, but I'm guessing yo...

13 years ago | 0

Answered
this should be easy I have a while loop that is infinite
If want you create a vector with a while loop (again not sure why you want to do that), there are many ways to code it. c...

13 years ago | 0

Answered
this should be easy I have a while loop that is infinite
Why do you need a while loop here? If you just want a vector running from 1 to 99 in increments of 2, the following does the job...

13 years ago | 0

Answered
DWT lossless or lossy compression??
Just by itself, the DWT is lossless, because you can simply invert the transform. However, if you are really going to compress t...

13 years ago | 0

Answered
Did you ever see '~' symbol at return value of function?
~ means to suppress an output argument. so [~,zz] = func_add_minus(1,2); means that you only want to return the 2nd ...

13 years ago | 2

Answered
Is this the correct way to write the filter equation of a df2sos filter ?
You can use sos2tf to obtain the numerator and denominator coefficients from the second-order section matrix and the vector of g...

13 years ago | 1

| accepted

Answered
Encoding the signal with 16 bits
Have you tried using the 'native' option when you read the data. [f,Fs] = wavread('wolf.wav','native'); class(f) ...

13 years ago | 0

Answered
How do I import toolboxes into my library?
When you say toolbox, how complicated is the structure of the toolbox? Is it just a single folder with a number of M-files, or a...

13 years ago | 0

Load more