How to define a symbolic function for this equation?
2 次查看(过去 30 天)
显示 更早的评论
![Where, p_{i,j} are data points.](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1249012/image.png)
Where P_ij are data points.
4 个评论
Dyuman Joshi
2023-1-2
编辑:Dyuman Joshi
2023-1-2
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.
回答(1 个)
Kone
2023-1-2
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!