ternplot

Construct ternary grid, evaluate a function on the grid and contour plot in Matlab

喜欢而已 提交于 2019-12-30 07:43:25
问题 I need to evaluate a function (say) Fxy = 2*x.^2 +3 *y.^2; on a ternary grid x-range (0 - 1), y-range (0-1) and 1-x-y (0 - 1). I am unable to construct the ternary grid on which I need to evaluate the above function. Also, once evaluated I need to plot the function in a ternary contour plot. Ideally, I need the axes to go counter clockwise in the sense (x -> y--> (1-x-y)). I have tried the function function tg = triangle_grid ( n, t ) ng = ( ( n + 1 ) * ( n + 2 ) ) / 2; tg = zeros ( 2, ng );

Construct ternary grid, evaluate a function on the grid and contour plot in Matlab

为君一笑 提交于 2019-12-30 07:41:33
问题 I need to evaluate a function (say) Fxy = 2*x.^2 +3 *y.^2; on a ternary grid x-range (0 - 1), y-range (0-1) and 1-x-y (0 - 1). I am unable to construct the ternary grid on which I need to evaluate the above function. Also, once evaluated I need to plot the function in a ternary contour plot. Ideally, I need the axes to go counter clockwise in the sense (x -> y--> (1-x-y)). I have tried the function function tg = triangle_grid ( n, t ) ng = ( ( n + 1 ) * ( n + 2 ) ) / 2; tg = zeros ( 2, ng );

how to plot 3d ternary plot for three mixtures

流过昼夜 提交于 2019-12-08 13:55:48
问题 I have tried with your terndemo but I'm unable get a graphical data like you sir. My aim is to present that how, each formulation is responsible for different zetasizes in 3d ternary plot. I tried like editing the file of yours but the result is different. %% Three D plot for ZetaSize of oil, surfactant and cosurfactant isotropic mixture blends experimental = [... 20 60 20 20 50 30 20 40 40 20 30 50 20 20 60 25 60 15 25 50 25 25 40 35 25 30 45 25 20 55 30 60 10 30 50 20 30 40 30 30 30 40 30

Construct ternary grid, evaluate a function on the grid and contour plot in Matlab

你说的曾经没有我的故事 提交于 2019-12-01 01:36:42
I need to evaluate a function (say) Fxy = 2*x.^2 +3 *y.^2; on a ternary grid x-range (0 - 1), y-range (0-1) and 1-x-y (0 - 1). I am unable to construct the ternary grid on which I need to evaluate the above function. Also, once evaluated I need to plot the function in a ternary contour plot. Ideally, I need the axes to go counter clockwise in the sense (x -> y--> (1-x-y)). I have tried the function function tg = triangle_grid ( n, t ) ng = ( ( n + 1 ) * ( n + 2 ) ) / 2; tg = zeros ( 2, ng ); p = 0; for i = 0 : n for j = 0 : n - i k = n - i - j; p = p + 1; tg(1:2,p) = ( i * t(1:2,1) + j * t(1:2