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 Basile  
#1 Posted : 24 September 2015 22:51:55(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Hello,

Why I am not getting output column?

Thank you,
Basile
Basile attached the following image(s):
Untitled.png

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

Offline Ernesto  
#2 Posted : 25 September 2015 02:16:24(UTC)
Ernesto


Rank: Advanced Member

Groups: Registered
Joined: 03/02/2014(UTC)
Posts: 67
Nicaragua

Was thanked: 13 time(s) in 11 post(s)
You cannot divide by a vector. You must use a for loop. Also you must properly define a function with a different variable than the one you will use inside the function afterwards.

When I encounter issues in smath, I think it's best to put an equal sign after each step to show the result, it's easier to trace where the issues are.
File Attachment(s):
for loop example.sm (7kb) downloaded 10 time(s).
Ernesto attached the following image(s):
Capture.PNG
Offline Basile  
#3 Posted : 25 September 2015 04:00:05(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Ernesto,
Thank you for the help but I am expecting the result to be a vector because I make a sweep.
Basile
Offline Ernesto  
#4 Posted : 25 September 2015 06:56:26(UTC)
Ernesto


Rank: Advanced Member

Groups: Registered
Joined: 03/02/2014(UTC)
Posts: 67
Nicaragua

Was thanked: 13 time(s) in 11 post(s)
My mistake. I think this is what you were looking for.
File Attachment(s):
for loop example.sm (8kb) downloaded 23 time(s).
Ernesto attached the following image(s):
Capture.PNG
Offline Basile  
#5 Posted : 25 September 2015 11:01:43(UTC)
Basile


Rank: Advanced Member

Groups: Registered
Joined: 13/10/2010(UTC)
Posts: 172
Location: USA

Was thanked: 8 time(s) in 7 post(s)
Yes,

Thank you,
Basile
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.