필터 지우기
필터 지우기

Minerr (MathCAD) Function Equivalent for MatLab?

조회 수: 11 (최근 30일)
Nicholas Clark
Nicholas Clark 2023년 1월 9일
답변: Raghav 2023년 3월 7일
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에서 Chemistry에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by