data output

data output - Messages

#1 Posted: 8/2/2022 3:17:42 PM
Prmtv

Prmtv

0 likes in 49 posts.

Group: User

Hello. I use this for outputting data if/else. If the data is already entered in the matrix, then everything is fine. How can you get manual data entry instead of "..." with this choice? What do you need to replace the matrix "b" for this?

1.PNG

2.PNG
#2 Posted: 8/17/2022 2:07:27 PM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: User

I think I understood what you are trying to do. Take a look at this example.
data_output.sm (9 KiB) downloaded 40 time(s).

There is also a couple way to handle the input depending on if you work with SMath solver worksheets or with SMath Viewer EXE files.
#3 Posted: 8/18/2022 4:13:30 PM
Prmtv

Prmtv

0 likes in 49 posts.

Group: User

Wrote

I think I understood what you are trying to do. Take a look at this example.
data_output.sm (9 KiB) downloaded 40 time(s).

There is also a couple way to handle the input depending on if you work with SMath solver worksheets or with SMath Viewer EXE files.



Thanks, this is a good way for me. (I came up with method: inserted it instead of empty elements 0, and then the cycle if/else a or b.)

I'm trying to work with SMath Viewer EXE files.

Such a question appeared: How to replace b2 and b3 on 0, if selected "standard"?
1.PNG
#4 Posted: 8/18/2022 6:39:51 PM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: User

As far as I understand there is no way to modify the values in the data input fields. Only by manually changing them yourself.
#5 Posted: 8/18/2022 8:38:06 PM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: User

We are talking about SMath Viewer here Jean. This topic is out of your world.
#6 Posted: 8/19/2022 4:11:35 PM
Prmtv

Prmtv

0 likes in 49 posts.

Group: User

Wrote

As far as I understand there is no way to modify the values in the data input fields. Only by manually changing them yourself.



thank for the answer.

Another question: How can I display data d1 and d2 if the matrices are of different sizes (for example, there will be a different number of columns or data will be in different columns)?
#7 Posted: 8/20/2022 4:15:57 PM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: User

That can be a bit tricky because SMath Viewer doesn’t display matrices at all. You need to use a table extension or display the values in a plot. The table region is nice, but has its limitations. It doesn’t handle variable inputs that well within the Viewer.
  • New Posts New Posts
  • No New Posts No New Posts