Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Math Topics » alt.algebra.help.independent

Topic: Matlab
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 1
Registered: 10/7/11
Posted: Oct 7, 2011 1:48 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hey guys,
I'm trying to perform a program using matlab, but I got some trouble.
The program should plot a surface this way.
clear all;
ylabel('Current Density(A/cm²)');
zlabel('Membrane Resistivity');

But I have a different model that makes this same surface(that's not exactly the same, but it looks like).
In the program above the different is at 'pho_m'.
but to perform this equation I need to find the coefficients p1,p2,p3,p4.
And this would be found by using the least square method.

x=inv(A'*A)*A'*b. The problem is when I use this equation to find the values of p1,p2,p3,p4. Matlab gives me this answer:"Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 1.309963e-026."
and gives me the answer, but I think it's not right because when I plot it, the surface is different from the one I found using the first problem I put above.

Message was edited by: danilo

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.