1 страниц (5 вхождений)
How to use for-loop inside a function - Can't figure out the syntax - Сообщения
#1 Опубликовано: 19.03.2018 07:11:17
#2 Опубликовано: 19.03.2018 07:49:55
Hi Mikko
The loop syntax needs tweaking, and the output variable needs to be defined. The attached file works for me.
kertoimetTest.sm (4 КиБ) скачан 115 раз(а).
Hope this helps.
Brian
The loop syntax needs tweaking, and the output variable needs to be defined. The attached file works for me.
kertoimetTest.sm (4 КиБ) скачан 115 раз(а).
Hope this helps.
Brian
2 пользователям понравился этот пост
#3 Опубликовано: 19.03.2018 08:29:34
Thank you!!!

Mikko

Mikko
#4 Опубликовано: 19.03.2018 09:53:50
Greetings
I have not been able to understand the purpose for which the imagined algorithm is used. As the question arises, it is a case of express identification of a certain value in the "kertoimet" matrix. In this case in 99.99 (9 ...) of cases, the result will be an error. If so then you can avoid ambiguity using the first procedure (case identification) in the attached file. Looking at the problem in terms of practical use, in the first column of the "kertoimet" matrix there are some non-dimensional coefficients corresponding to circular x-ray surfaces with the area expressed in square millimeters. In this case, a linear interpolation of these coefficients would be useful depending on the radius of the circle, and the procedure is the one presented in the case of interpolation.
Imagination.sm (6 КиБ) скачан 51 раз(а).
I have not been able to understand the purpose for which the imagined algorithm is used. As the question arises, it is a case of express identification of a certain value in the "kertoimet" matrix. In this case in 99.99 (9 ...) of cases, the result will be an error. If so then you can avoid ambiguity using the first procedure (case identification) in the attached file. Looking at the problem in terms of practical use, in the first column of the "kertoimet" matrix there are some non-dimensional coefficients corresponding to circular x-ray surfaces with the area expressed in square millimeters. In this case, a linear interpolation of these coefficients would be useful depending on the radius of the circle, and the procedure is the one presented in the case of interpolation.
Imagination.sm (6 КиБ) скачан 51 раз(а).
#5 Опубликовано: 19.03.2018 18:16:29
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений