Minerr (MathCAD) Function Equivalent for MatLab?
11 次查看(过去 30 天)
显示 更早的评论
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 个评论
Steven Lord
2023-1-9
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.
回答(1 个)
Raghav
2023-3-7
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!