Type conversion error

Type conversion error - Сообщения

#1 Опубликовано: 5 лет назад
Eugene

Eugene

0 сообщений из 7 понравились пользователям.

Группа: User

Does anyone know how to solve this error?

Capture.PNG
#2 Опубликовано: 5 лет назад
Alvaro Diaz Falconi

Alvaro Diaz Falconi

1 004 сообщений из 1 677 понравились пользователям.

Группа: User

Hi. The error came from try to compare the vector time1 with the scalar T(1,1) in the first if. Maybe with the vectorization operator you can solve the issue, evaluating vectorize(rel(time1)).

Clipboard01.jpg

If not, you can try to modify the code with a loop for each element in the time1, like in this example:

Clipboard01.jpg

Best regards.
Alvaro.
1 пользователям понравился этот пост
frapuano 5 лет назад
#3 Опубликовано: 5 лет назад
Eugene

Eugene

0 сообщений из 7 понравились пользователям.

Группа: User

Thanks. First one didn't work. Will try to add a loop as you suggested.
#4 Опубликовано: 5 лет назад
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

Wrote

Thanks. First one didn't work. Will try to add a loop as you suggested.


From a complex vector.

for_Vector.PNG
#5 Опубликовано: 5 лет назад
Davide Carpi

Davide Carpi

1 418 сообщений из 2 874 понравились пользователям.

Группа: Moderator

Also, you might use vectorize(rel(time1)) to apply the scalar function at each time1 value.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Опубликовано: 5 лет назад
Jean Giraud

Jean Giraud

983 сообщений из 6 866 понравились пользователям.

Группа: User

More in there as cumulative.

Vector Cumulative.sm (24 КиБ) скачан 86 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений