I feel as though this was horribly explained but maybe someone has a better idea about how to do this than I do. F symprod (f,k) returns the product of the series. If f is a constant, then the default variable is x. If you do not specify k, symprod uses the variable that symvar determines. Now, when I call the new arrays, the equations still show up as functions of x,y,z so seemingly syms did nothing within the function. F symprod (f,k,a,b) returns the product of the series with terms that expression f specifies, which depend on symbolic variable k. If you do not specify var, the symvar function determines the variable to solve for. Where X, Y, Z are defined by the imported data set. Description example S solve (eqn,var) solves the equation eqn for the variable var. For example, it goes along the lines ofįunction = uncertainty( x, y, z) So I wrote a function to do my calculations, and defined syms in it. I'm trying to create a function that will use syms, and use the input variables as the new symbols which I can then evaluate in the actual script. However, the new assignment requires each calculation to be done for 5 different data sets. The way we have done it in the past is to use syms and create all the equations using symbolic variables, then input data and evaluate the symbolic equations with the data. Hi guys, working on a project in which we need to calculate a lot of uncertainty values.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |