REGARDING THE PLOT IN MATHLAB2TIKZ

x = -5:0.2:5;
t = 0:0.02:1;
C1 = sin(x' * t); % Example data
surf(x, t, C1);
xlabel('x');
ylabel('t');
zlabel('\eta(x,t)');
title('Surface Plot of \eta(x,t)');
% Export the plot as a TikZ file
matlab2tikz('figure1.tikz', 'height', '\figureheight', 'width', '\figurewidth');
%%%%%%%%%%%%%%%%%%%%%%%%%%55
WHENEVER I USE THE matlab2tikz THE FIGURE IS GENRATE FOR THE FIRST COMMAND BUT USING MATLAB2TIKZ IT IS THE FOLLOWING MSG IS DISPLAYED
You will need pgfplots version 1.12 or newer to compile the TikZ output
Do i need to install pgfplot in MATLAB .If yes how ?

댓글 수: 3

Torsten
Torsten 2025년 1월 18일
편집: Torsten 2025년 1월 18일
"matlab2tikz" is not an official MATLAB function, but a script from the FileExchange.
So these are questions you should address to the creator of "matlab2tikz", Nico Schlömer, not to TMW.
But the instructions how to proceed seem rather clear:
Tikz and Pgfplots are stand-alone programs, not MATLAB codes. So don't install them in MATLAB.
Walter Roberson
Walter Roberson 2025년 1월 18일
Yes, you absolutely need Pgfplots, along with a few other packages. https://github.com/matlab2tikz/matlab2tikz
yogeshwari patel
yogeshwari patel 2025년 1월 18일
Okay, Thanks .

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

질문:

2025년 1월 18일

댓글:

2025년 1월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by