Type conversion error

Type conversion error - Messaggi

#1 Pubblicato: 13/05/2020 08:30:08
Eugene

Eugene

0 apprezzamenti in 7 post.

Gruppo: User

Does anyone know how to solve this error?

Capture.PNG
#2 Pubblicato: 13/05/2020 11:18:01
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 utenti hanno apprezzato questo post
frapuano 13/05/2020 13:56:00
#3 Pubblicato: 14/05/2020 03:33:37
Eugene

Eugene

0 apprezzamenti in 7 post.

Gruppo: User

Thanks. First one didn't work. Will try to add a loop as you suggested.
#4 Pubblicato: 14/05/2020 06:55:34
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 14/05/2020 07:43:21
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 14/05/2020 15:22:11
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

More in there as cumulative.

Vector Cumulative.sm (24,17 KiB) scaricato 1098 volta(e).
  • Nuovi post
  • Nessun nuovo post