Minerr (MathCAD) Function Equivalent for MatLab?

9 次查看(过去 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
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.
Nicholas Clark
Nicholas Clark 2023-1-9
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.

请先登录,再进行评论。

回答(1 个)

Raghav
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

类别

Help CenterFile Exchange 中查找有关 Signal Processing 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by