Curve fitting tool is saying '' Cannot fit Power functions to data where X has nonpositive values"

I have changed the axes limits of my data to non values of x axes greater than zero; still it's responding with the same message.

8 Comments

Hi,
Can you please post your code? What function are you using in the curve fitting toolbox? What is your data?
Best Regards,
Vaidyanathan
Hi there, I'm having the same problem as well. Any suggestions?
I have ensured that all the data values I entered are positive values
Kind regards
The followup question is still the same: provide the code you're using. If possible, also attach your data in a mat file so we can reproduce your issue.
The followup question is still the same: provide the code you're using. If possible, also attach your data in a mat file so we can reproduce your issue.
Changing axes limits does not change the data that is being sent to the curve fitting function.
I also have same problem.
my x data=
0
1
2
5
10
15
20
30
40
50
60
70
80
100
110
120
130
140
150
my y data:
1,01976047904192
0,996524761077324
1,04058192955590
1,20573378839590
1,23195488721805
1,22976629766298
1,22400990099010
1,26178428761651
1,25282758620690
1,25967976710335
1,26270022883295
1,25734824281150
1,25659109991604
1,26810506566604
1,26653465346535
1,25684647302905
1,27933333333333
1,26566125290023
1,27722772277228
I try to fit my curve by using Curve fitting tool with power function but not work.
Best regards,
Esil

Sign in to comment.

Answers (0)

Asked:

on 27 Oct 2017

Commented:

on 2 Jun 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!