Solving for power of a non linear equation in matlab
I have been trying to solve for n in the equation given below in matlab. All the rest of the values are known :
H_obs = 1*61 vector, dhdx = 1*61 vector, a = 1*61 vector. All the values of all the vectors are known
a = (2*(10^-25)/(n+2))*((918*3.71)^n)*(H_obs.^(n+2))*(abs(dhdx).^(n-1))*dhdx;
Any tips on how to solve?
TIA
matlab equation-solving exponent
|
show 1 more comment
I have been trying to solve for n in the equation given below in matlab. All the rest of the values are known :
H_obs = 1*61 vector, dhdx = 1*61 vector, a = 1*61 vector. All the values of all the vectors are known
a = (2*(10^-25)/(n+2))*((918*3.71)^n)*(H_obs.^(n+2))*(abs(dhdx).^(n-1))*dhdx;
Any tips on how to solve?
TIA
matlab equation-solving exponent
First factor has (n+2) in denominator and rest have it in exponent?
– hazeiio
Nov 13 '18 at 9:34
1
Since you have 61 equations and 1 unknown, what you have is an overdetermined system - which means that you're not solving it, but rather finding an optimal solution in some sense. Take a look here.
– Dev-iL
Nov 13 '18 at 9:36
@hazeiio : Yep.
– Crossfit_Jesus
Nov 13 '18 at 11:18
@Dev-iL : Thanks. That's exactly what I'm doing.
– Crossfit_Jesus
Nov 13 '18 at 11:19
Since it is nonlinear equation, you can usefsolve
from Optimization Toolbox. You can find additional information on how to use it here: link
– hazeiio
Nov 13 '18 at 11:22
|
show 1 more comment
I have been trying to solve for n in the equation given below in matlab. All the rest of the values are known :
H_obs = 1*61 vector, dhdx = 1*61 vector, a = 1*61 vector. All the values of all the vectors are known
a = (2*(10^-25)/(n+2))*((918*3.71)^n)*(H_obs.^(n+2))*(abs(dhdx).^(n-1))*dhdx;
Any tips on how to solve?
TIA
matlab equation-solving exponent
I have been trying to solve for n in the equation given below in matlab. All the rest of the values are known :
H_obs = 1*61 vector, dhdx = 1*61 vector, a = 1*61 vector. All the values of all the vectors are known
a = (2*(10^-25)/(n+2))*((918*3.71)^n)*(H_obs.^(n+2))*(abs(dhdx).^(n-1))*dhdx;
Any tips on how to solve?
TIA
matlab equation-solving exponent
matlab equation-solving exponent
asked Nov 13 '18 at 8:40
Crossfit_JesusCrossfit_Jesus
32
32
First factor has (n+2) in denominator and rest have it in exponent?
– hazeiio
Nov 13 '18 at 9:34
1
Since you have 61 equations and 1 unknown, what you have is an overdetermined system - which means that you're not solving it, but rather finding an optimal solution in some sense. Take a look here.
– Dev-iL
Nov 13 '18 at 9:36
@hazeiio : Yep.
– Crossfit_Jesus
Nov 13 '18 at 11:18
@Dev-iL : Thanks. That's exactly what I'm doing.
– Crossfit_Jesus
Nov 13 '18 at 11:19
Since it is nonlinear equation, you can usefsolve
from Optimization Toolbox. You can find additional information on how to use it here: link
– hazeiio
Nov 13 '18 at 11:22
|
show 1 more comment
First factor has (n+2) in denominator and rest have it in exponent?
– hazeiio
Nov 13 '18 at 9:34
1
Since you have 61 equations and 1 unknown, what you have is an overdetermined system - which means that you're not solving it, but rather finding an optimal solution in some sense. Take a look here.
– Dev-iL
Nov 13 '18 at 9:36
@hazeiio : Yep.
– Crossfit_Jesus
Nov 13 '18 at 11:18
@Dev-iL : Thanks. That's exactly what I'm doing.
– Crossfit_Jesus
Nov 13 '18 at 11:19
Since it is nonlinear equation, you can usefsolve
from Optimization Toolbox. You can find additional information on how to use it here: link
– hazeiio
Nov 13 '18 at 11:22
First factor has (n+2) in denominator and rest have it in exponent?
– hazeiio
Nov 13 '18 at 9:34
First factor has (n+2) in denominator and rest have it in exponent?
– hazeiio
Nov 13 '18 at 9:34
1
1
Since you have 61 equations and 1 unknown, what you have is an overdetermined system - which means that you're not solving it, but rather finding an optimal solution in some sense. Take a look here.
– Dev-iL
Nov 13 '18 at 9:36
Since you have 61 equations and 1 unknown, what you have is an overdetermined system - which means that you're not solving it, but rather finding an optimal solution in some sense. Take a look here.
– Dev-iL
Nov 13 '18 at 9:36
@hazeiio : Yep.
– Crossfit_Jesus
Nov 13 '18 at 11:18
@hazeiio : Yep.
– Crossfit_Jesus
Nov 13 '18 at 11:18
@Dev-iL : Thanks. That's exactly what I'm doing.
– Crossfit_Jesus
Nov 13 '18 at 11:19
@Dev-iL : Thanks. That's exactly what I'm doing.
– Crossfit_Jesus
Nov 13 '18 at 11:19
Since it is nonlinear equation, you can use
fsolve
from Optimization Toolbox. You can find additional information on how to use it here: link– hazeiio
Nov 13 '18 at 11:22
Since it is nonlinear equation, you can use
fsolve
from Optimization Toolbox. You can find additional information on how to use it here: link– hazeiio
Nov 13 '18 at 11:22
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276935%2fsolving-for-power-of-a-non-linear-equation-in-matlab%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276935%2fsolving-for-power-of-a-non-linear-equation-in-matlab%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
First factor has (n+2) in denominator and rest have it in exponent?
– hazeiio
Nov 13 '18 at 9:34
1
Since you have 61 equations and 1 unknown, what you have is an overdetermined system - which means that you're not solving it, but rather finding an optimal solution in some sense. Take a look here.
– Dev-iL
Nov 13 '18 at 9:36
@hazeiio : Yep.
– Crossfit_Jesus
Nov 13 '18 at 11:18
@Dev-iL : Thanks. That's exactly what I'm doing.
– Crossfit_Jesus
Nov 13 '18 at 11:19
Since it is nonlinear equation, you can use
fsolve
from Optimization Toolbox. You can find additional information on how to use it here: link– hazeiio
Nov 13 '18 at 11:22