Minerr (MathCAD) Function Equivalent for MatLab?

9 Ansichten (letzte 30 Tage)
Nicholas Clark
Nicholas Clark am 9 Jan. 2023
Beantwortet: Raghav am 7 Mär. 2023
I have the following code from MathCAD that I want to translate to MatLab. Anyone know how to do this?
v1 = 0;
v2 = 8;
v3 = 12;
v4 = 20;
ID1 = 33.8e-9;
ID2 = 46.1e-9;
ID3 = 50.4e-9;
ID4 = 60e-9;
Rs = 0.01;
N = 1;
IS = 1e-8;
VTH = 0.0259;
v1 = Rs*ID1 + N*VTH*log(ID1/IS);
v2 = Rs*ID2 + N*VTH*log(ID2/IS);
v3 = Rs*ID3 + N*VTH*log(ID3/IS);
v4 = Rs*ID4 + N*VTH*log(ID4/IS);
Minerr(Rs,N,IS)
  2 Kommentare
Steven Lord
Steven Lord am 9 Jan. 2023
For those of us who haven't worked with MathCAD, can you explain a bit about the purpose of the Minerr function (what does it do?) and/or link to some documentation for the function? That may help us suggest an appropriate equivalent or near-equivalent in MathWorks products.
Nicholas Clark
Nicholas Clark am 9 Jan. 2023
So from what I read online, it is a function that solves a system of equations for particular variables (in this case RS, N, IS) by using an approximation method with an initial guess.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Raghav
Raghav am 7 Mär. 2023
Hi,
Based on the question, it can be understood that you need to know about a similar method as ‘Minerr” of MathCAD in MATLAB.
I am not aware of any built-in function similar to ‘Minerr’ in MATLAB as of now.
However, you can check ‘minres’ function of MATLAB which is used to solve system of linear equations with minimum residual method. You can refer to the below mentioned link for more details:
Hope it helps.
Thanks,
Raghav Bansal

Kategorien

Mehr zu Signal Processing finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by