Description Usage Arguments Value Examples
View source: R/generate-matrix.R
Create a forces matrix based on mathematical expressions. Taking x and y, evaluating force z.
1 | generate_matrix(exp, size = 80, scale = FALSE)
|
exp |
Mat expression. |
size |
Number of rows/columns to create. |
scale |
Whether to apply scaling. |
A size x size matrix, with values equal to evaluated expression
1 | generate_matrix(2 * sin(x)^2 + sin(y)^2, 400)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.