How to define a symbolic function for this equation?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Where P_ij are data points.
4 commentaires
Dyuman Joshi
le 2 Jan 2023
Modifié(e) : Dyuman Joshi
le 2 Jan 2023
How will you multiply x^i*y^j and P_ij? The first term is numeric or symbolic, and the latter term is a cell.
I don't understand what is it that you are trying to do.
I presume that P_ij is a 2D cell array with each element having 3 values for 3 co-ordinates.
Réponses (1)
Kone
le 2 Jan 2023
You can use the 'syms' function to create symbolic variables for each of the inputs and then use them to define the function. The 'subs' function can also help evaluate particular values of your variables.
something like this
syms x y p_ij;
S(x, y, p_ij) = x .* y .* p_ij
Ans = subs(S, [x, y, p_ij], [3,3,{1}])
0 commentaires
Voir également
Catégories
En savoir plus sur Symbolic Variables, Expressions, Functions, and Preferences dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!