Respondida
Set vector direction to point away from a closed surface (or a point coordinate)?
Hi LMS, Say you set up a point B in the middle of the volume. Assuming the surface is not excessively curved, from B you sho...

más de 8 años hace | 1

Respondida
How to solve these mathematical equations simultaneously?
Hello Luqman Assuming N and n are set beforehand, there are four equations & five unknowns, so one of the unknowns gets to be...

más de 8 años hace | 0

| aceptada

Respondida
Strange scaling issue with derivative implementation
Hi Nimrod, probably a bit late for an answer, especially one that doesn't really change anything. I believe that your code i...

más de 8 años hace | 0

| aceptada

Respondida
Calculate elements in matrices
Hi Pei, To do multiply and divide operations element-by-element, put a dot in front of the mult or divide symbol. In this ca...

más de 8 años hace | 0

Respondida
for loop ode 45 changing parameter values
Hi gorilla3, Here is the simplest possible example of what ode45 is doing, that also inputs an extra parameter. To find th...

más de 8 años hace | 0

| aceptada

Respondida
E-plane and H-plane patterns of a rectangular microstrip patch
Hi Maximiliano, Before getting to the plot, there are a couple of things in the code that need to be changed. [1] In the mul...

más de 8 años hace | 1

| aceptada

Respondida
change bar color based on value
Hi Morgan, Unless you are trying to make a movie*, it's faster and more Matlablike to create A and B all at at once: N =...

más de 8 años hace | 1

Respondida
Finding the root of a function
Hi Lilach, After moving the syms x statement to the top so that the code runs, it is not so clear that it is going to get the...

más de 8 años hace | 0

| aceptada

Respondida
Getting an error : In an assignment A(:) = B, the number of elements in A and B must be the same.
Hi Arun, Have you checked the value of RBF? I think it's quite likely that since you have supplied the value of 'a', you are...

más de 8 años hace | 1

| aceptada

Respondida
Square wave function Mean Squared Error differing by a factor of 2?
Hi Jeff, It depends on how you want to look at it. For the entire square wave there are overshoots at the four locations bel...

más de 8 años hace | 0

| aceptada

Respondida
Can a controllable matrix become uncontrollable due to matrix transformations?
Hello Z, You don't say what kind of transformations you have in mind. but generally det(B*A) = det(B)*det(A) det(...

más de 8 años hace | 0

Respondida
How to speed up code with ppval and integral
Hi Martin, Here's some code to integrate a piecewise polynomial on the basis of its polynomial coefficients, no actual numeri...

más de 8 años hace | 0

Respondida
GIBBS phenomenon & sum of squared differences
Hi Jeff, No, it's not really about the zeroth order coefficient. At a discontinuity, a fourier series converges at value hal...

más de 8 años hace | 1

| aceptada

Respondida
Jacobi iteration code, not producing correct solution
Hi Arindam, Just before the while loop you need to reverse the two statements to make it x0=x; x=J*x+c; With the ord...

más de 8 años hace | 0

Respondida
Ask for creating new matrix from Odd-Indexed and Even-Indexed Elements
Hi Phat, you're close C = zeros(742,2); C(1:2:end,:) = A; C(2:2:end,:) = B;

más de 8 años hace | 0

| aceptada

Respondida
symmetric vs asymmetric Fourier series
Hi Jeff, Yes it's a bad idea, assuming that a Friedlander fourier series is just a particular way of obtaining the usual fourie...

más de 8 años hace | 0

Respondida
Normalisation of FFT not consistent.
Good question. I didn't take a course in DSP, so I don't have a textbook recommendation from experience. Rodriguez mentions th...

más de 8 años hace | 0

Respondida
How can I normalize a function solved numerically?
Hi david, A normalization integral that small shows that the scaling could be improved upon, but as a workaround is this what...

más de 8 años hace | 0

| aceptada

Respondida
How to standardize unstandardized beta coefficients
Hi Nuchto You forgot that you need to regress against the same y, otherwise it's apples and oranges. So the second regressio...

más de 8 años hace | 0

Respondida
Getting multiple roots of a function with infinite roots
Hi Sentient6, Here is a way that does them all in one go using Newton's method. It's good for either sign of C. x*tanx is a...

más de 8 años hace | 0

Respondida
Why am I unable to determine the number of iterations it takes to determine the solution vector? My number of iterations keeps equaling the maxIter
Hi Benjamin, In the third line of the Jacobian, try replacing 0, 0, (4*((5.67*10^-8)*(Tc^3)))+1.865, -1 with the corr...

más de 8 años hace | 0

| aceptada

Respondida
How do I find the impulse response function
Hi Jaques, I believe the problem is that you have a couple of small errors in the 'a' vector (they don't agree with the origi...

más de 8 años hace | 1

| aceptada

Respondida
Balance root-mean-square in audio clips
Hi Tahariet, You would like to normalize R and L so that the *sum* of R power and L power does not change from clip to clip. ...

más de 8 años hace | 0

| aceptada

Respondida
Array multiplication along certain dimension?
Hi Visa, This seems to work A1 = 2; A2 = 3; A3 = 4; N = 7; A = rand(A1, A2, A3, N); V = rand(1, N); ...

más de 8 años hace | 0

| aceptada

Respondida
interpolating curve with tangent ends
Hi Michal, depending on the data, the spline function could give good results. see help spline, where it says that if Y cont...

más de 8 años hace | 1

| aceptada

Respondida
Why does the following simple Harmonic oscillator (without damping) behave as a damped harmonic oscillator?
Hi Sameer, I believe this is a standard numerical accuracy issue. Here is some shortened code that is basically the same as ...

más de 8 años hace | 0

| aceptada

Respondida
Radiation pattern plotting.
Hi Yuval, I made a stylistic change to your code and defined theta at the very start with the factor of pi, rather than waiti...

más de 8 años hace | 2

Respondida
How do I only save my solution every x iterations in a for loop?
Hello J, If **numberoftimesIwantorecord** does not exactly divide **maxitimestep**, then there are two problems with this app...

más de 8 años hace | 1

| aceptada

Respondida
How can I find a intersection of four ponits?
Hello Yoon, lots of possible expressions for this. Here is one that is pretty symmetric in the points. Let a = [x(n),y(n...

más de 8 años hace | 0

Respondida
integral function doesn't work well!
Hi Joe, this is interesting and probably worth a second question on this website for the following reason. Here is a function ...

más de 8 años hace | 1

Cargar más