Problem with matrix calculation
2 views (last 30 days)
Show older comments
I have the following line of code that represents the inverse function of:
a+b*(100*10^-x)^c
this is the x:
x=double(gssq.(strcat(sheetNamesOECF{rgby2d},num2str(rgby2d2)))(:,:,1))/255
0.1098 0.1137 0.1137 0.1137 0.1137 0.1137 0.1098 0.1098 0.1137
0.1098 0.1176 0.1137 0.1098 0.1098 0.1098 0.1098 0.1098 0.1098
0.1137 0.1176 0.1137 0.1098 0.1137 0.1137 0.1176 0.1137 0.1137
0.1098 0.1137 0.1098 0.1098 0.1098 0.1098 0.1137 0.1098 0.1098
0.1137 0.1098 0.1059 0.1098 0.1137 0.1098 0.1098 0.1098 0.1098
this is the inverse function:
-log10(((coeffr(1,1)-double(x)/100^coeffr(1,3)/coeffr(1,2))^(1/coeffr(1,3))))
now, when I fill it in like this:
-log10(((coeffr(1,1)-double(0.1)/100^coeffr(1,3)/coeffr(1,2))^(1/coeffr(1,3))))
I get:
2.2059 + 0.7575i
but when I fill in the matrix instead of the constant I get values like this:
1.1654 + 0.7560i
these are way smaller than what they are supposed to be.
does anyone know why filling in the same value gives me different results?
Kind regards,
Thomas Koelen
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!