cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

JMP Library

Choose Language Hide Translation Bar

Latest Posts

  • Creating Variables

    OK, so let's look at a few examples of creating variables. Suppose you want to create a variable named a, and you want to assign the value of to it. This assignment statement (a = creates a global variable with the value of What if you want a local variable named a? To create a local variable, you use the Local function, which takes two arguments: the first argument is a name or list of...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    3476 views | 0 replies
  • Functions

    Functions are a vital element of the scripting language, so let's discuss them. You call a function when you need it, and every function returns a result. To call a function, you type the function name followed by two matching parentheses -- the matching parentheses are what tells JMP that a name is a function. For example, Names Default to Here followed by matching parentheses that con...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    1782 views | 0 replies
  • Combining Functions

    So, it might surprise you to learn that every script is actually a single function along with its arguments. And it might seem at first like this requirement would limit how much a script can do. But remember that a function can have arguments and that some of those arguments can be functions as well. For example, you might want to add the square root of to the sine of The Add function ...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    1259 views | 0 replies
  • Numbers

    Numbers are an essential form of data, and can be expressed as integers, decimals, or in scientific notation. Dates and times are also represented by a number. A missing numeric value is represented by a period. Let's go into a little more detail about dates, times, and durations. These are all numeric values that represent a number of seconds. Specifically, dates are defined as the num...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    748 views | 0 replies
  • Character Strings

    Some data are text that are represented by character strings. Character strings are delimited by double-quotation marks, and these delimiters are not part of the text. So, what if you need to include double quotation marks as part of your string value? To do that, each of the embedded quotation marks has to be preceded with the escape sequence of a backward slash and an exclamation poin...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    2233 views | 0 replies
  • Punctuation

    Now let's talk about punctuation in your scripts. Commas separate items-- they separate items in lists, rows in matrices, and arguments in a function or message. Parentheses serve several purposes. They're used to identify a name as a function. They surround the arguments of a function. And, they can control the order of evaluation in expressions.

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    650 views | 0 replies
  • Comments

    Next, let's talk about comments. It can be really helpful to include comments in your scripts. Comments aren't executed when the script runs, so they could be notes to yourself (for example, documenting the script for future updates or maintenance), or they could be notes to others who might use your script (providing instructions, for example). You might also comment out a portion of y...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    1059 views | 0 replies
  • Working with Local Variables

    Well now, let's take a quick look at local variables and using the local function. So I'm going to clear the contents of the Script Editor and I'm going to type local and open parentheses. And recall that the first argument is a list of the local variable names and I can either make the assignments in that list or that could be part of the JSL expression that is the second argument to t...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    1375 views | 0 replies
  • Using Date and Time Functions

    So next, let's talk a little bit about date and time functions. I'm going to clear the contents of the Script Editor window. I'd like to clear the log as well. And I do that by right clicking in the Log window and selecting Clear Log. So remember that dates and times are stored as the number of seconds since midnight January And you can store those in a variable. And we can also use dat...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    2486 views | 0 replies
  • Using the Log

    So we've been making use of the log to look at the results of all of the lines of code that we've run. But we can also control what shows up in the log. So let me clear that and clear the Script Editor window. So one thing I could do, if I am working with global variables, which, of course, I have been, is I can type show globals open close parentheses. I don't have to have an argument,...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    2210 views | 0 replies
  • Objects and Messages

    Now let's discuss the concept of objects. Many of the capabilities of JMP are available to your script through built-in objects. Every JMP object knows how to perform certain actions or tasks. And some examples of JMP objects are data tables, data columns, platforms, and even JMP itself. Now in order to use an object in your script, the script first needs to instantiate the object, or c...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    927 views | 0 replies
  • Introduction to Lists

    An important data structure in JMP is a list, which is a general-purpose storage container that can store any number of items. The items can be any type of data such as numbers, character strings, object references, or other lists, and the items in the list don't need to be the same type. You can create a list with the List function, or with the curly brackets operator. Items in a list ...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    2937 views | 0 replies
  • Working with Lists

    Lists are dynamic. You can easily add items to or remove items from a list as necessary. You use the Insert function or the Insert Into function to add items to a list. By default, the items are added at the end of the list. Optionally, you can include an argument to specify the position of the item you're adding. The Insert function returns a new list with the added item but doesn't ch...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    2341 views | 0 replies
  • Introduction to Matrices

    Another useful data structure is a matrix, which is a rectangular array or table of numeric values or missing values. You can use a matrix to store a single number, a column of numbers, (sometimes called a column vector,) a row of numbers, (or row vector,) or an entire table of numbers. A matrix can be empty -- that is, have no rows or columns. An empty matrix can be useful for collecti...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    777 views | 0 replies
  • Working with Matrices

    You can use the Matrix function to create a matrix. And this function takes a list of lists as its argument, where each sub-list specifies a row. You can also use the square brackets operator to create a matrix. When you use this operator, you enter the values directly, without using lists. Instead, you separate the values in different rows with commas, and the values in different colum...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    1786 views | 0 replies
  • Using Lists and Matrices

    So this demonstration is going to look at some of the basic features of lists and matrices. So I'm going to start with lists. And I'm going to get a new script editor window. So again, the keyboard shortcut is Ctrl+T. And I will resize and rearrange that. Let me go ahead and bring the log in front of the journal. And I'm going to create a variable I'll call my list. And I'll assign that...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    4966 views | 2 replies
  • Style Tips for Scripts

    So, although your scripts follow a strict syntax, there's no strict style imposed by JMP in the scripting language. Remember that JMP ignores whitespaces and letter case. So, style, then, is important for legibility. Let's take a look at an example. The script shown here follows the syntax rules and will run correctly. But the style -- or lack of style -- make it difficult to read and u...

    ruthhummel ruthhummel
    Apr 8, 2025 6:23 AM
    919 views | 0 replies
  • Overview of Iteration

    Scripts are procedural. In other words, JMP evaluates a script beginning with the first line and continuing until the last line. Some scripts require JMP to repeat an action multiple times. But you don't repeat the code for that action in your script for every time you want JMP to perform the action. Instead, you use special iteration functions to repeat that portion of the code. In som...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    946 views | 0 replies
  • Using the For Function

    So, the For function provides the most general form of iteration. This function has four required arguments, and each one is a JSL expression. And as usual, these four arguments are separated by commas. JMP evaluates the first argument to the For function only once. Generally, you use this first argument to initialize a variable that you can use as a counter, or index, in each iteration...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    1709 views | 0 replies
  • Using the While Function

    Another way to iterate is with the While function. This function takes only two arguments: the test, and the body. So, if you want to use a counter, index, or flag variable in either argument, you need to initialize those before you call the While function. JMP evaluates the first argument and interprets it as a Boolean result in order to determine if the iteration should continue. If t...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    1223 views | 0 replies
  • Working with Expressions

    Expressions are an important concept, and an integral part of the JMP scripting language. But what is an expression? Well, it's a section of JSL code that accomplishes a task. JSL expressions hold data, manipulate data, and send commands to objects. An expression can be defined as any combination of variables, constants, and functions or operators that can be evaluated. It might be as s...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    2262 views | 0 replies
  • Debugging and Profiling Your Script

    So, the Script Editor is a really powerful tool for both reading and writing your scripts. You can also evaluate just one line of code or a selection of code to verify the behavior as you develop your script. And you can hover over a variable name to determine its current contents. You can also use the JMP Log to examine the results of evaluation or any error messages. The Debugger is a...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    1335 views | 0 replies
  • Iteration in Scripts

    So this demonstration illustrates how to use the For function for iteration. And so far, we've used the Script Editor with the log to test our scripts and observe the results. But now we want to look at that using the debugger. So I have a script editor window open, and I'm going to start by typing Names Default to Here. And I'll put that Boolean I'm not adding spaces right now. I'm goi...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    2402 views | 0 replies
  • Using Row Functions

    So, you learned about the For function, which you can use for practically any kind of iteration. There's also a special function for iterating down the rows of the data table, and that's the For Each Row function. This function only requires one argument, which is the body or code that you want JMP to evaluate row-wise. For Each Row iterates down the rows of the data table until it come...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    1991 views | 0 replies
  • Using the Summation Function

    One special case of iteration is the algebraic sum. The Summation function requires three arguments. The first argument is evaluated before the summation begins. It's generally used to initialize a counter or index variable. The second argument specifies a limit for the counter or index. And the third argument is the quantity to be added to the sum. For example, calling the Summation fu...

    ruthhummel ruthhummel
    Apr 8, 2025 6:22 AM
    1169 views | 0 replies