답변 있음

how does double integration work

x = -100: 1/10:100; f = 6*x; first_integral_plot = cumtrapz(x, f); % Integration second_integral_plot = cumtrapz(x, first_int...

how does double integration work

x = -100: 1/10:100; f = 6*x; first_integral_plot = cumtrapz(x, f); % Integration second_integral_plot = cumtrapz(x, first_int...

약 4시간 전 | 1

| 수락됨

답변 있음

Readability of matlab code

AVOID GLOBAL VARIABLES. They will not improve your code. Intead they will make it difficult as hell to debug your code when ther...

Readability of matlab code

AVOID GLOBAL VARIABLES. They will not improve your code. Intead they will make it difficult as hell to debug your code when ther...

약 8시간 전 | 1

답변 있음

I want to create normally distributed random variables, and refer to them as my independent variables

The answer is, DON'T. https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamic...

I want to create normally distributed random variables, and refer to them as my independent variables

The answer is, DON'T. https://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamic...

5일 전 | 0

답변 있음

sum of elements of an array

B = cumsum(A); You could have learned about this function by reading the help for sum. At the bottom of the help, you would see...

sum of elements of an array

B = cumsum(A); You could have learned about this function by reading the help for sum. At the bottom of the help, you would see...

7일 전 | 1

답변 있음

results in the form of integral

Just wanting a result from some computation to have an analytical solution is not enough. Sometimes it requires additional mathe...

results in the form of integral

Just wanting a result from some computation to have an analytical solution is not enough. Sometimes it requires additional mathe...

7일 전 | 0

답변 있음

Symbolic Math is reordering my subtraction

syms x_k(t) y_k(t) L x_kD = diff(x_k,t) y_kD = diff(y_k,t) rRk = sqrt(x_k^2 + y_k^2) rTk = sqrt(x_k^2 + (y_k-L)^2) rRkD = ...

Symbolic Math is reordering my subtraction

syms x_k(t) y_k(t) L x_kD = diff(x_k,t) y_kD = diff(y_k,t) rRk = sqrt(x_k^2 + y_k^2) rTk = sqrt(x_k^2 + (y_k-L)^2) rRkD = ...

8일 전 | 0

답변 있음

How to reduce computation time of (sparse) matrix multiplication in Matlab?

The answer is easy. It depends! What does it depend on? How sparse are your matrices? A lot of people think if half the entries...

How to reduce computation time of (sparse) matrix multiplication in Matlab?

The answer is easy. It depends! What does it depend on? How sparse are your matrices? A lot of people think if half the entries...

9일 전 | 1

| 수락됨

답변 있음

How to plot only the real solutions of an implicit function ?

First, look at what you have. R = 0.35; L = 0.25; H = 0.4; syms x y F = sqrt(L^2-(R*(cosd(x)-sind(x).*sind(y))-H).^2) The ...

How to plot only the real solutions of an implicit function ?

First, look at what you have. R = 0.35; L = 0.25; H = 0.4; syms x y F = sqrt(L^2-(R*(cosd(x)-sind(x).*sind(y))-H).^2) The ...

10일 전 | 1

답변 있음

Two equations of two unknown angles

First, I would recognize that you PROBABLY intended 200 to be a number in DEGREES, not radians. (200 radians would seem to make ...

Two equations of two unknown angles

First, I would recognize that you PROBABLY intended 200 to be a number in DEGREES, not radians. (200 radians would seem to make ...

10일 전 | 0

| 수락됨

답변 있음

Producing a NaN only where there is a NaN, zero otherwise

I'm always amazed at how many ways there are to accomplish anything in MATLAB. Here was my effort. It took me some time to think...

Producing a NaN only where there is a NaN, zero otherwise

I'm always amazed at how many ways there are to accomplish anything in MATLAB. Here was my effort. It took me some time to think...

11일 전 | 1

질문

Producing a NaN only where there is a NaN, zero otherwise

This interesting question came up for me today. I was looking for a simple expression that can be used in a function handle, one...

11일 전 | 답변 수: 4 | 2

답변 있음

how to solve this question in Matlab

This is now, what, the third or 4th time you asked this question? The first few times, it was explicitly about your homework ass...

how to solve this question in Matlab

This is now, what, the third or 4th time you asked this question? The first few times, it was explicitly about your homework ass...

13일 전 | 0

| 수락됨

답변 있음

Reverse geometric progression algorithm

Since you want a symmetric set of points around 0, first generate a set on the positive side of the origin, then just flip them ...

Reverse geometric progression algorithm

Since you want a symmetric set of points around 0, first generate a set on the positive side of the origin, then just flip them ...

13일 전 | 0

| 수락됨

답변 있음

Matlab: Divide and Average Method

Its that new math. The supreme court redefined sqrt(4) as 1.68 just recently. So your code is correct. Now all we need to do is ...

Matlab: Divide and Average Method

Its that new math. The supreme court redefined sqrt(4) as 1.68 just recently. So your code is correct. Now all we need to do is ...

16일 전 | 0

답변 있음

How to tell if a function was called from within Matlab or from system?

Perhaps you might try what are essentially different calls, where you pass information about WHERE your call is coming from. So ...

How to tell if a function was called from within Matlab or from system?

Perhaps you might try what are essentially different calls, where you pass information about WHERE your call is coming from. So ...

16일 전 | 0

답변 있음

How can I slove the maxtric

You want to slove a matrix? Sorry. Valentines day was 3 days ago. Too late for s"love". A is a column vector, composed of the e...

How can I slove the maxtric

You want to slove a matrix? Sorry. Valentines day was 3 days ago. Too late for s"love". A is a column vector, composed of the e...

16일 전 | 0

답변 있음

Find an orthogonal vector

Never call a variable O. Consider how difficult it will be to find the bug one day, when you see or write a zero, instead of O. ...

Find an orthogonal vector

Never call a variable O. Consider how difficult it will be to find the bug one day, when you see or write a zero, instead of O. ...

17일 전 | 0

| 수락됨

답변 있음

Matlab does not show the curve equation in basic fitting

You misunderstand splines. A spline does not have a simple equation you can write down. And while in theory, you could write dow...

Matlab does not show the curve equation in basic fitting

You misunderstand splines. A spline does not have a simple equation you can write down. And while in theory, you could write dow...

18일 전 | 0

답변 있음

How do I determine the linear part of a force-displacement curve?

You have already accepted Star's answer, so you may not even see this answer. But in fact, there is no linear part of such a cur...

How do I determine the linear part of a force-displacement curve?

You have already accepted Star's answer, so you may not even see this answer. But in fact, there is no linear part of such a cur...

18일 전 | 0

답변 있음

Fitting data to a polar equation

@Omar Ashour It seems from this last comment that you re making some progress. There are some points I should make. First, wh...

Fitting data to a polar equation

@Omar Ashour It seems from this last comment that you re making some progress. There are some points I should make. First, wh...

20일 전 | 0

| 수락됨

답변 있음

why isn't determinant function working?

I think your problem may be due to the imaginary part of this rather nasty function. F = matlabFunction(DET1); F(1) ans = ...

why isn't determinant function working?

I think your problem may be due to the imaginary part of this rather nasty function. F = matlabFunction(DET1); F(1) ans = ...

20일 전 | 0

답변 있음

Fitting the data to power law using least square method

Let me look more carefully at your data, as there are some thigns that REALLY bother me about the approach you wish to use, as w...

Fitting the data to power law using least square method

Let me look more carefully at your data, as there are some thigns that REALLY bother me about the approach you wish to use, as w...

21일 전 | 0

답변 있음

Correspondence between optimization outputs and symbolic variables

The problem lies in your code. First, you have an obvious error in the code you show. I'll guess you just used too many or too f...

Correspondence between optimization outputs and symbolic variables

The problem lies in your code. First, you have an obvious error in the code you show. I'll guess you just used too many or too f...

21일 전 | 0

답변 있음

Which equation does Matlab use to fit a Normal distribution?

I think you misunderstand, as there are several things happening here. A normal distribution fit, that is, finding the paramete...

Which equation does Matlab use to fit a Normal distribution?

I think you misunderstand, as there are several things happening here. A normal distribution fit, that is, finding the paramete...

22일 전 | 1

답변 있음

How to search functions for mat use

You can use my mgrep function, downloadable form the file exchange. In your case, if you want to search for use of that file in...

How to search functions for mat use

You can use my mgrep function, downloadable form the file exchange. In your case, if you want to search for use of that file in...

22일 전 | 1

| 수락됨

답변 있음

Sparse of symbolic matrix

Sorry, but NO. Sparse storage does not applly to symbolic matrices. Even if it did, this would virtually not help you to speed ...

Sparse of symbolic matrix

Sorry, but NO. Sparse storage does not applly to symbolic matrices. Even if it did, this would virtually not help you to speed ...

22일 전 | 1

| 수락됨

답변 있음

Please explain how this matlab code works works and what it does

It can be almost impossible to figure out what undocumented code does, especially if we are not even told what it might be desig...

Please explain how this matlab code works works and what it does

It can be almost impossible to figure out what undocumented code does, especially if we are not even told what it might be desig...

23일 전 | 1

답변 있음

Confidence interval of regression line

If the line has KNOWN coefficients, then a confidence interval is meaningless. If you want to compute confidence intervals arou...

Confidence interval of regression line

If the line has KNOWN coefficients, then a confidence interval is meaningless. If you want to compute confidence intervals arou...

23일 전 | 0

| 수락됨

답변 있음

matrix retrieving given certain determinant

You want to generate a random matrix with a known determinant? n = 7; % The size of the matrix Dtarget = 12; % My target deter...

matrix retrieving given certain determinant

You want to generate a random matrix with a known determinant? n = 7; % The size of the matrix Dtarget = 12; % My target deter...

24일 전 | 0

답변 있음

Matrices with unknown elements multiplication

Define the eements of the matrices in terms of symbolic unknowns. Then use solve to determine the unknown elements. Note that un...

Matrices with unknown elements multiplication

Define the eements of the matrices in terms of symbolic unknowns. Then use solve to determine the unknown elements. Note that un...

24일 전 | 0

| 수락됨