Rank: Newbie
Groups: Registered
Joined: 25/05/2013(UTC) Posts: 3 Location: 37
|
Hello, I have a question about Clear Fontion. For scalar Number there's no problem with Clear Function. But with Matrices and Vector Clear Function do not work. Indeed, after used Clear Function with matrices , I can't redefined the matrice variable wich is cleared like a matrice. I have to redefined the variable like a scalar end then like a matrice. Sebast3337 sebast3337 attached the following image(s):
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
- Clear does not work at all in my case ( running mono-build from windows, with the void file named "portable.version" ) - What's worst: I've noticed that if a plugin is disabled by the user, SMath ignores this action when recalculating the worksheet and the plugin still works. Besides the plugin is shown as enabled when the program is restarted. Please confirm this issue. Edited by user 19 June 2013 04:20:20(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,654 Location: Italy Was thanked: 1340 time(s) in 879 post(s)
|
Originally Posted by: sebast3337 Indeed, after used Clear Function with matrices , I can't redefined the matrice variable wich is cleared like a matrice. I have to redefined the variable like a scalar end then like a matrice.
Sebast3337 I can't reproduce the issue (see the screenshot), could you attach an example (worksheet and screenshot)? Originally Posted by: kilele Besides the plugin is shown as enabled when the program is restarted. The "disable" action is related to the running session, even in the previous SMath relases. I think this behavior is by design. best regards, Davide Edited by user 19 June 2013 07:42:15(UTC)
| Reason: Not specified Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 30/03/2011(UTC) Posts: 393
Was thanked: 132 time(s) in 113 post(s)
|
Apparently I was using the plugin functions incorrectly, so everything works fine including the disable function in the current session. I was putting Clear() without an equal, so in the above example Clear(A) does not work, I should have written Clear(A)= Edited by user 19 June 2013 10:12:28(UTC)
| Reason: Not specified
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 25/05/2013(UTC) Posts: 3 Location: 37
|
Originally Posted by: w3b5urf3r_reloaded Originally Posted by: sebast3337 Indeed, after used Clear Function with matrices , I can't redefined the matrice variable wich is cleared like a matrice. I have to redefined the variable like a scalar end then like a matrice.
Sebast3337 I can't reproduce the issue (see the screenshot), could you attach an example (worksheet and screenshot)? Originally Posted by: kilele Besides the plugin is shown as enabled when the program is restarted. The "disable" action is related to the running session, even in the previous SMath relases. I think this behavior is by design. best regards, Davide I have installed Net framework 4, and the problem with function Clear disappeared Edited by user 22 June 2013 05:42:26(UTC)
| Reason: Not specified sebast3337 attached the following image(s):
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Could someone try this. Regards, Radovan omorr attached the following image(s): |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
1 user thanked omorr for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 15/04/2012(UTC) Posts: 1,990 Was thanked: 1128 time(s) in 724 post(s)
|
Confirmed and explained in the attachment. Clear() deletes the value of a variable but the type is set to line(). Element assignment to line()-variables outside the existing range generates unpredictable results. If you want to do matrix element assignment with a cleared variable then you have to change the type first by assigning a (possibly empty) matrix. Edited by user 22 June 2013 09:52:18(UTC)
| Reason: Not specified |
|
4 users thanked mkraska for this useful post.
|
on 22/06/2013(UTC), on 22/06/2013(UTC), on 22/06/2013(UTC), on 22/06/2013(UTC)
|
|
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.