Rank: Newbie
Groups: Registered
Joined: 10/12/2018(UTC) Posts: 7
|
Does anyone know how to solve this error?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,356 Was thanked: 815 time(s) in 516 post(s)
|
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)). If not, you can try to modify the code with a loop for each element in the time1, like in this example: Best regards. Alvaro.
|
1 user thanked Razonar for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/12/2018(UTC) Posts: 7
|
Thanks. First one didn't work. Will try to add a loop as you suggested.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: Eugene Thanks. First one didn't work. Will try to add a loop as you suggested. From a complex vector.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Also, you might use vectorize(rel(time1)) to apply the scalar function at each time1 value. |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.