Non Linear Regression: Error: Symbolic parameters are expected. [stats::reg::checkParameters]
1 view (last 30 days)
Show older comments
I want to find the ideality factor from the experimental data of a diode. I have obtained 10 I(sampleY) and V(sampleX) values, and used matlab `stats::reg` function to apply Univariate Nonlinear Regression.
I typed the following, however the matlab keeps on giving error message: `Error: Symbolic parameters are expected. [stats::reg::checkParameters]`.
sampleX := [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]:
sampleY := [0, 0, 0, 0, 0, 0, 0, 0.07, 0.92, 12.02, 158.29]:
plot1 := plot::Scatterplot(x, y, LinesVisible = FALSE):
plot(plot1)
fit := stats::reg(sampleX, sampleY, ((10^-9)*(exp(38.68/n)-1)), [n], [0,0])
Can anyone please suggest any improvements for my code. I am using the mupad on matlab. I am new to this website and I am unsure whether this is the right place to ask this.
I think the problem is the [0,0] - I am unsure what I should input here.
0 Comments
Answers (0)
See Also
Categories
Find more on Financial Data in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!