Community Profile

photo

David Goodmanson


David Goodmanson

563 2012 年以降の合計貢献数

連絡する

David Goodmanson's バッジ

  • Guiding Light
  • 12 Month Streak
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer
  • Solver

詳細を表示...

貢献した分野
表示方法

回答済み
How does function std process complex numbers
Hi JFz, First of all, for a matrix the std is calculated independently for each column, as is true of many Matlab functions. F...

5日 前 | 1

| 採用済み

回答済み
Simple squaring of expression
HI Wesley, syms a syms b syms c syms d syms e f = expand((1*a+2*b+3*c+4*d+5*e-8)*(1*a+2*b+3*c+4*d+5*e-8))

6日 前 | 0

| 採用済み

回答済み
How to solve this equation which contains complex number, bessel equation and its derivative?
Hi bohan shen, The first six roots are shown below. First, since J1 is odd and J0,J2 are even, if z is a root then so is -z. ...

7日 前 | 1

| 採用済み

回答済み
How do I assign matrix of strings to matrix of numbers?
Hi [A,B,C,D,E,F] = deal(5,8,2,9,2,1) although for a large number of variables, giving each its own name is not a winning strate...

7日 前 | 0

回答済み
Finding and plotting radial component in vector field
Hi djr, nc = 14; nr = 14; % Create grid [x,y] = meshgrid(0:dx:(nc-1)*dx,0:dy:(nr-1)*dy); % Plot vectors (rows and colomns ne...

9日 前 | 0

| 採用済み

回答済み
How to solve first-order nonlinear differential equation where the solution is coupled with an integral?
Hi Califfo; This may be in line with what you want. At least it's changing size It's based on the idea that you know not onl...

14日 前 | 2

| 採用済み

回答済み
Errors when solving equation numerically with a Heaviside Theta
Hi A7, The code below finds a solution. Instead of looking for phi0 directly it uses the variable beta = 1/(lambda*phi0) Sin...

15日 前 | 0

回答済み
Randomly select an element from a vector satisfying a condition
Relative speeds are going to depend on the length of X and the value N that the elements have to be greater than, (2 in the exam...

16日 前 | 0

回答済み
Matrix grouping result of combinations
Hello Joao, Maybe I need to write better blurbs. Here is a general solution for even n, with a verification check that shows t...

18日 前 | 0

回答済み
Mesh doesn't work for cone shape?
Hello TY, I don't know if you need a fancier triangular mesh, but here is a way to a 'square' one. r = 0:.05:1; th = linspace...

18日 前 | 0

| 採用済み

回答済み
Standard deviation of decimal numbers
Hi Jill, This is just the usual numerical 'error' due to the limitations of floating point arithmetic. std(.1*(ones(1,1e5)))...

22日 前 | 1

| 採用済み

回答済み
Create block sparse matrix
HI ks, Here is one way. MODIFIED (see comment thread below) showing two possible methods to fill the matrix by means of a ...

22日 前 | 1

回答済み
Flatten Matrix in Row Major Order in Arbitrary Dimensions
Hello Lucas-Raphael, I'm not sure this is what you are looking for, but B = permute(A,[6 5 4 3 2 1]); % (however many dim...

約1ヶ月 前 | 0

回答済み
Looking for a function f(x,y,z) based on 3 points to calculate interpolated/extrapolated values with a linear relation
HI Appli, This is something Matlab does really well. I assume by 'linear relation' you mean that each point has a value c = a...

約1ヶ月 前 | 1

| 採用済み

回答済み
Cannot plot Fourier Transform
Hi Reza, If you take a look at X, the result is X = -((pi*w*sign(w))/2 + fourier(cos(4*t)/t^2, t, w)/2)/pi^2 which shows tha...

約1ヶ月 前 | 0

回答済み
IFFT integration doesn't match cumtrapz integration
Hi NIk, This is an Interesting problem. Let g be the function and G its integral. If you just want to key in on an improved r...

約1ヶ月 前 | 0

回答済み
Obtain eigenvalue from matrix and known eigenvector
Hi Henry, you can find the indices where x = 0 and cast those entries out of both x and the corresponding rows and columns of A...

約1ヶ月 前 | 0

回答済み
fftshift with even and odd number of data points (scaling the positive and negative frequency axis)
Hi Farooq, [1] For N odd, the frequencies before and after using fftshift (or ifftshift) are as you say: N = 9 example: fo...

約1ヶ月 前 | 1

| 採用済み

回答済み
Getting a smooth curve instead of two linear functions
Hi Arber, This can be done reasonably well by a hyperola whose asymptotes are the two lines in question. The hyperbola of cour...

約2ヶ月 前 | 2

| 採用済み

回答済み
eigs bug for 0 as lowest eigenvalue in parts of the matlab versions
Hi pl, 2018b does not list 'sa' as an option for eigs, so I am speculating that that 'sa' is legacy. However, compariing 'sa' t...

2ヶ月 前 | 0

回答済み
Reduce the computional time to calculate the mutilplying two matrixes
Hi Thu, try % N = 1000; % M = 200; Q00 = reshape(Q0,N,N*M); ff = reshape(w'*Q00,N,M)'; This is approximately four times f...

2ヶ月 前 | 1

回答済み
sine fit in matlab vs closed-form expressions (linear least squares)
Hi Thales, Before doing the least squares calculation it makes sense to try the less ambitious result of finding the right ampl...

2ヶ月 前 | 2

| 採用済み

回答済み
Replace vector of idexes with values from another vector corresponding to those indexes
Hi Nate, c = b(a) gets it done. a becomes an index vector into the elements of b.

2ヶ月 前 | 1

| 採用済み

回答済み
Division problems wiht matrix, calculation error
Hi Eduardo, It's quite likely that two of the displayed values for LineInf and LineSup are not what you think they are. The va...

2ヶ月 前 | 0

| 採用済み

回答済み
Audio fft shape is too strange.
Hi eunbae, The code is pretty close. The fft of a real signal has positive and negative frequencies, and what you are seeing a...

2ヶ月 前 | 1

| 採用済み

回答済み
Is It possible create a function that, given an equation, finds the value of the (x) so the two members are equal?
Hi Gianmarco, the two equations aren't coupled, and using fzero on Mp^2 seems to work. In the first equation I multiplied by b...

2ヶ月 前 | 0

回答済み
Defining derivatives in ode45
Hello sina, If you turn the diagram around by 180 degrees and then let Ca <--> Cb, you get exactly the same diagram that you st...

2ヶ月 前 | 1

| 採用済み

回答済み
3d Hemisphere transformation Problem from A to 90 degrees in Z axis to B direction
Hi Musa, In the figure you don't say which axis is which, but I will assume +x axis out of the page toward the viewer, +y axis ...

2ヶ月 前 | 1

| 採用済み

回答済み
Binomial simulation decreasing error
Hello LD Using M in place of your i, the binornd(M,p*ones(1,N)) creates N draws from a particular binomial distribution. Thi...

3ヶ月 前 | 1

回答済み
power of blackbody radiation
HI rabindra, The expression has a problem at the first point, lambda = 0. But I1 is so tiny near the origin that you can safel...

3ヶ月 前 | 0

Load more