Minerr (MathCAD) Function Equivalent for MatLab?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
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.
Antworten (1)
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
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!