Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Jean Giraud  
#1 Posted : 16 April 2016 20:42:32(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Hello Mike,

If you can make it work at the "on error" that Smath 5346 does not have
the Smath community will heritate a nice piece of work that I heritated
from Paul W. [Mathcad 11 Collaboratory]. If there is a way to make it
work in 5346, I will most appreciate. The R, G, B are all in the collapsed
areas, nothing to download. The coding stops at the empty place holders.

Thanks for your kindly cooperation, good luck.

Jean

Rotate Image.sm (432kb) downloaded 27 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline mikekaganski  
#2 Posted : 17 April 2016 01:50:06(UTC)
mikekaganski


Rank: Advanced Member

Groups: Registered
Joined: 17/01/2013(UTC)
Posts: 296
Man
Russian Federation
Location: Khabarovsk, Russia

Was thanked: 151 time(s) in 107 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post


rotate() tries to get fourth col of a matrix having only two cols:
trace.sm (101kb) downloaded 21 time(s).

Actually, I didn't try to understand the algo yet, so I have no clue how to improve it.

Edit:
in the original algo, there's no line like

s:augment(col(s,2),col(s,4))

Removing it gives another error: j becomes -14, and this index isn't OK as a matrix col. Sad

Edit 2: here it is, should work for 5346: Rotate Image.sm (408kb) downloaded 26 time(s). (updated for 2x speed using eval()).

Edit: and here is the colored version (great thanks to Alex Melnik): Rotate Image+color.sm (415kb) downloaded 18 time(s).

Edited by user 21 April 2016 02:40:58(UTC)  | Reason: Not specified

Best regards,
Mike Kaganski
Users browsing this topic
Guest
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.