Type conversion error

Type conversion error - Messages

#1 Posted: 5/13/2020 8:30:08 AM
Eugene

Eugene

0 likes in 7 posts.

Group: User

Does anyone know how to solve this error?

Capture.PNG
#2 Posted: 5/13/2020 11:18:01 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 users liked this post
frapuano 5/13/2020 1:56:00 PM
#3 Posted: 5/14/2020 3:33:37 AM
Eugene

Eugene

0 likes in 7 posts.

Group: User

Thanks. First one didn't work. Will try to add a loop as you suggested.
#4 Posted: 5/14/2020 6:55:34 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 5/14/2020 7:43:21 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: 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 Posted: 5/14/2020 3:22:11 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

More in there as cumulative.

Vector Cumulative.sm (24 KiB) downloaded 35 time(s).
  • New Posts New Posts
  • No New Posts No New Posts