Noya Linder
Followers: 0 Following: 0
Feeds
提问
triple nested integral with error "Arrays have incompatible sizes for this operation."
Hi! I have a code in which there are three integrals, nested inside one another. These are the functions: function integral_z =...
7 months 前 | 2 个回答 | 0
2
个回答提问
How to vectorize function on vectors stored in 3D tensor
Hi everyone. I have a function that sums the 3rd dimension as presented here. This is the code: function sumeol = sum_over_li...
1 year 前 | 1 个回答 | 0
1
个回答提问
vectorization in tensors, how to add vector and matrix
Hi, say I have a 3X4 matrix M and a 1X100 row vector V. I want to add them (M+V) to create a 3D tensor T of 100X3X4. Meaning, I ...
1 year 前 | 1 个回答 | 0
1
个回答提问
How to properly compare tensors?
Hi! I have the following function: function toint = toint(p, r, R, dRdt, mu) c = 29979245800; %cm/s gamma = 1/sqrt(2*(1 - (dR...
1 year 前 | 1 个回答 | 0
1
个回答提问
adding vector to matrix to create tensor
Hi. I have a 10176X10176 matrix and a 10176X1 vector that I want to add to the matrix in order to create a 10176X10176X10176 ten...
1 year 前 | 1 个回答 | 0
1
个回答提问
How to multiply vectors not the same size to create 3d tensor?
Hi! I have a function that receives a few scalars along with a few vectors that calculates a certain value. I use the following ...
1 year 前 | 1 个回答 | 0
1
个回答已回答
Why is my matrix a scalar?
Hi, the problem was I needed to convert my arrays to row vectors which I did by: R = R.'; T = T.'; I don't know if this was t...
Why is my matrix a scalar?
Hi, the problem was I needed to convert my arrays to row vectors which I did by: R = R.'; T = T.'; I don't know if this was t...
1 year 前 | 0
| 已接受
提问
Why is my matrix a scalar?
Hi, so I've been trying to create a Z matrix to plot using "surf": Z = []; x = 0; for tt = T x = x+1; y = 0; f...
1 year 前 | 1 个回答 | 0
1
个回答提问
How to solve for the derivative using ode solver
I have the following differential equation function dRdt = odefun(t,R) c = 29979245800; Estart = 10^52; ni = 10^(-2); mp = ...
1 year 前 | 1 个回答 | 0
1
个回答提问
how can I condition my ode solver
I use an ode solver here [t, R] = ode78(@odefun, tspan, r0); but I don't want it to run until the final t, I want it to run un...
1 year 前 | 1 个回答 | 0
1
个回答提问
Why do I get the error "too many output arguments"?
I call this function: function nvec = removeByGamma(tR) t = tR(1); R = tR(2); line = linespace(1, length(R), 1); for i = li...
1 year 前 | 1 个回答 | 0
1
个回答提问
Why am I getting the error "not enough input arguments"?
I have this code. Even though I entered all 4 input arguments necessary, I'm still getting the error "not enough input arguments...
2 years 前 | 2 个回答 | 0