Range variable or vectors

Range variable or vectors - How to input data values into a vector or range variable - Messages

#1 Posted: 2/14/2019 3:51:16 PM
RegCurry

RegCurry

0 likes in 57 posts.

Group: User

I am a long-time user of Mathcad. I cannot find a way to enter data into Smath. It seems range variables are not the same as in Mathcad. Do I need to enter data into a vector? If so, how do I define the vector of say 30 elements and then proceed to enter data into each of the 30 elements. All documentation provided does not make this clear. See attached image from Mathcad to see what I am trying to implement in Smath.

Thanks
Reg Mathcad Data Entry.JPG
#2 Posted: 2/14/2019 4:17:16 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hello Regulation,

look here.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Andrey Ivashov 2/14/2019 6:47:00 PM
#3 Posted: 2/14/2019 4:44:38 PM
RegCurry

RegCurry

0 likes in 57 posts.

Group: User

The Dist vector elements do not come from a formula. They are individual data points. Do I create a vector of 30 rows and then click on each element to enter the dats or is there a more convenient method like Mathcad where you just hit enter to go to the next element to enter that value?

Thanks
Reg
#4 Posted: 2/14/2019 5:29:33 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

You can do it like this.

2019-02-15_01-28-01.png
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Andrey Ivashov 2/14/2019 6:46:00 PM
#5 Posted: 2/14/2019 5:44:13 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

More difficult way with using Script region.

2019-02-15_01-43-01.png

Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Andrey Ivashov 2/14/2019 6:46:00 PM
#6 Posted: 2/14/2019 5:53:18 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Another option:

1. Press Ctrl+M
2. Enter size of matrix
3. Enter first element
4. press right arrow to proceed to next element
5. Continue until matrix is filled.

Yet another option:
1. Press Ctrl+M
2. Create 1x1 Matrix
3. Enter first element
4. Press , (comma) to create next element in vector.
5. Continue until you're finished.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
2 users liked this post
Andrey Ivashov 2/14/2019 6:46:00 PM, frapuano 2/14/2019 7:23:00 PM
#7 Posted: 2/14/2019 6:03:53 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

If so, how do I define the vector of say 30 elements and then proceed to enter data into each of the 30 elements.


1. define your vector MyVector:=
2. In the place holder, click matrix in the palette3
3. 30rows, 1 col
4. fill-in if they don't exist from other instance

Age.PNG
1 users liked this post
Andrey Ivashov 2/14/2019 6:47:00 PM
#8 Posted: 2/14/2019 6:10:56 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

3. 30rows, 1 col


need more rows => put square cursor on the right
of the last value ... press , [coma]
more more more ... coma coma coma

you need less than commanded => backspace on unused place holder(s)
#9 Posted: 2/14/2019 6:20:58 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

need more rows =



insert ...

Insert.PNG
#10 Posted: 2/14/2019 6:36:20 PM
RegCurry

RegCurry

0 likes in 57 posts.

Group: User

Thanks Alyel; that's what I was looking for. Thanks much
  • New Posts New Posts
  • No New Posts No New Posts