Risposto
Ripples in Fourier Transform
Hi Aman, You don't say what your x array was, but I believe the effect occurs because that array has finite width and cuts of...

oltre 9 anni fa | 0

| accettato

Risposto
Recursive loops in MATLAB
Hi Ricardo, here is a method using a function I created recently that is related to the adjustable-dimension issue. This is th...

oltre 9 anni fa | 0

| accettato

Risposto
fsolve Finite difference - Problem: "indices must either be real positive integers or logicals"
Hi Max, You did not mention where in the code the error occurred, but certainly you will get such an error with for j=1:N-...

oltre 9 anni fa | 0

| accettato

Risposto
Problem with multiple values on plot
Hello Catherine, The last line will probably work if changed to text(L_val,L_pks,num2str(L_val'),'fontsize',12); this i...

oltre 9 anni fa | 0

| accettato

Risposto
error when using min function
Hi Andrew, this is a hypothetical answer but it may be that you have, somewhere else, defined 'min' to be a variable .e.g min ...

oltre 9 anni fa | 2

| accettato

Risposto
Is there a simpler way to produce an rgb image from a grayscale matrix based on custom thresholds?
Hello Andrew, Red = zeros(size(B)); Green = zeros(size(B)); Blue = zeros(size(B)); Red(B<=120) = 255; Blue(...

oltre 9 anni fa | 0

| accettato

Risposto
3D interpolation question
Hello S, You are close on this. Right now you are making a finer 81x81 matrix and looking at its 1,1 element, which is off in ...

oltre 9 anni fa | 0

Risposto
Using MATLAB i want to find a polynomial q(s) such that s5 + 7s4 + 20s3 + 30s2 +24s + 8 = p(s)q(s) . where as p(s) = s3 + 3s2 + 4s + 2.
Hi Husain, go to 'help deconv' and take a look at that function, keeping in mind that in Matlab a vector of polynomial coeffici...

oltre 9 anni fa | 1

| accettato

Risposto
inverse power method for smallest eigenvector calculation
Hello Turker, There is nothing wrong here. The eigenvalue equation is A*v = lambda*v and so for the eigenvector, both ...

oltre 9 anni fa | 1

Risposto
Duration & Calendar Duration. What is the difference?
Hello vc, Calyears and years are two different quantities. Calyears add a year, taking into account leap years, and gives th...

oltre 9 anni fa | 2

| accettato

Risposto
How does if(0) work within a function?
Hello Padma, if(0) always comes up false, so the operations after the 'else' statement will always be performed. It's a low-re...

oltre 9 anni fa | 3

Risposto
Please help, the value of a function is changing with the domain.
Hello Joshua, For each variable, try this with extra dots in the locations shown. This is because it appears that you want ter...

oltre 9 anni fa | 0

| accettato

Risposto
Normalization of the eigenvectors in eig(A) vs. eig(A,eye(length(A)); Orthonormality relationship
Hello Jerome, It's an interesting question why Mathworks chose not to normalize the column vectors in V2 and W2 when they did s...

oltre 9 anni fa | 0

Risposto
define associated legendre by hypergeometric functions
Hi Kurt, Probably the easiest thing to do is look up associated legendre polynomials on wikipedia, where they provide the expre...

oltre 9 anni fa | 0

Risposto
FFT in dB scale
hi Alexander I assume you are looking for a couple of peaks at -6 dB. Otherwise this answer will not be of help. But to get -...

quasi 10 anni fa | 1

| accettato

Risposto
Plotting plane through point arrays midpoint
Hi Chaosante, The basic problem here is that the equation for the plane is (in free notation) [(x,y,z)-(xmean,ymean,zmean)...

quasi 10 anni fa | 0

| accettato

Risposto
How the implement a 3-fold sum?
Hello Stephen, Here is one way, although you do make three arrays of the same size as M: [xx yy zz] = ndgrid(x,y,z); S ...

quasi 10 anni fa | 0

| accettato

Risposto
How can I solve y''+yy'=0, y(0)=1, y'(0)=-1 in matlab?
Hello Grace, y = -tan(x/2 - pi/4)

quasi 10 anni fa | 0

Risposto
Show that a larger number is bigger than another large number
Hello Delia, If what you need to know is which is larger, then John has certainly addressed that. However, I was thinking that ...

quasi 10 anni fa | 0

Risposto
Definite integral with complex number
Hello Diana, symbolic variables are a great thing, but if you are looking for a numerical result and are happy with 15 or so si...

quasi 10 anni fa | 0

Risposto
Energy calculated from an image doesn't match with the energy calculated from its Fourier transform
Hello IPN, I assume you mean sum(sum(...)) rather than sum(...). It appears that you are assuming a constant of proportionality...

quasi 10 anni fa | 0

Risposto
Polyfit on semilogy. Straight line equations and intercept point
Hello Emanuele, when you are looking at a semilogy plot you are interested in log(y) vs. x. So you need to go into log-land an...

quasi 10 anni fa | 1

| accettato

Risposto
How can I test if a number is irrational?
Hello Alexandre, although your interest is along conceptual lines, still it's fun to look at practical consequences. Supposing...

quasi 10 anni fa | 0

Risposto
How do I make this 2 dimensional vector follow a formula
Hello Jesse, The standard way to do this is with the meshgrid function: x = 1:10; % or whatever size it is y = 1:10...

quasi 10 anni fa | 0

| accettato

Risposto
frequency domain linear regression
Hi Jan, You are correct that k is the index corresponding to frequency. In an fft, k = 6 always corresponds to 6 oscillations ...

quasi 10 anni fa | 0

Risposto
Integral gives wrong answer
Hello Frank, This might be more of an observation than an answer, but one point not in your favor is that since log10(x) = log(...

quasi 10 anni fa | 1

| accettato

Risposto
I want to convert the output of transient analysis of cantilever beam from time domain to frequency domain, so i used the fft function as below. But i am not getting the correct answer. Please anyone can help me to solve this problem
Hi Siddesha, please format your code by highlighting it, using the {}Code button and using ENTER if necessary to make individual...

quasi 10 anni fa | 0

| accettato

Risposto
Issue plotting maximum and minimum roots of polynomial
Hi Peter, I believe that the basic problem here is the three lines of code T(i) = 63.2 + i; Tre = T(i)/Tc; f = A...

quasi 10 anni fa | 0

Risposto
How to convert the x an y axis to frequency in plotting 2D FFT?
Hi Poorva, If what you are ffting is truly a 2d time array, then there will be a sampling frequency for each direction. In tha...

quasi 10 anni fa | 0

Carica altro