I want to use lookup table(LUT) with two entries i.e. m and error (with respect to m). Later, I want to fetch stored error from LUT by m values. Any one please suggest me ?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sanjay Gupta
am 5 Feb. 2023
Beantwortet: Seth Furman
am 7 Mär. 2023
Two entries for lookup table are:

m = [0.01 0.1 0.2 0.5 1 2 5 10 100];
error = [0.1229 1.2106 2.3099 4.0651 0 -4.0651 -2.3099 -1.2106 -0.1229];
Later, i want to fetch error value with respect to m.
For example: for m=0.1, error(m)=1.2106.
Anyone please suggest me some idea??
0 Kommentare
Akzeptierte Antwort
Seth Furman
am 7 Mär. 2023
Consider dictionary.
m = [0.01 0.1 0.2 0.5 1 2 5 10 100];
err = [0.1229 1.2106 2.3099 4.0651 0 -4.0651 -2.3099 -1.2106 -0.1229];
d = dictionary(m,err)
d(.1)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!