Respondida
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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 1

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

casi 14 años hace | 2

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 1

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

Respondida
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?

casi 14 años hace | 0

Respondida
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');

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 2

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 2

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

casi 14 años hace | 1

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 2

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

Cargar más