Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matlab2Tikz crashes in 2021b but not in 2020a #1102

Open
PatrickGoettsch opened this issue Dec 3, 2021 · 1 comment
Open

Matlab2Tikz crashes in 2021b but not in 2020a #1102

PatrickGoettsch opened this issue Dec 3, 2021 · 1 comment

Comments

@PatrickGoettsch
Copy link

generating a tikz figure of bode plot like bode(tf([1],[1 1])) results in Matlab 2020a in a suitable file but in 2021b in an error. I checked this for the recent master as well as for tag 1.1.

`matlab2tikz(filename, 'width', '17cm', 'height','12cm');

*** (To disable info messages, pass ['showInfo', false] to matlab2tikz.)
*** (For all other options, type 'help matlab2tikz'.)



*** This is matlab2tikz v1.1.0.


*** The latest developments can be retrieved from our development branch.
*** You can find more documentation on our GitHub page and wiki.
*** If you encounter bugs or want a new feature, go to our issue tracker.
*** Please visit FileExchange to rate matlab2tikz or download the stable release.



*** Make sure to load \usepgfplotslibrary{patchplots} in the preamble.


Index exceeds the number of array elements. Index must not exceed 0.

Error in matlab2tikz>makeTable (line 5624)
if ~all(nRows==nRows(1))

Error in matlab2tikz>drawPatch (line 2382)
[m2t, facesTable] = makeTable(m2t, repmat({''},1,size(Faces,2)), Faces);

Error in matlab2tikz>handleObject (line 3104)
[m2t, str] = feval(actualHandler, m2t, h, custom);

Error in matlab2tikz>handleAllChildren (line 686)
[m2t, str] = handleObject(m2t, child, @drawPatch);

Error in matlab2tikz>drawHggroup (line 3039)
[m2t, str] = handleAllChildren(m2t, h);

Error in matlab2tikz>handleObject (line 3104)
[m2t, str] = feval(actualHandler, m2t, h, custom);

Error in matlab2tikz>handleAllChildren (line 694)
[m2t, str] = handleObject(m2t, child, @drawHggroup);

Error in matlab2tikz>drawAxes (line 883)
[m2t, childrenEnvs] = handleAllChildren(m2t, handle);

Error in matlab2tikz>saveToFile (line 485)
m2t = drawAxes(m2t, relevantAxesHandle);

Error in matlab2tikz (line 337)
m2t = saveToFile(m2t, fid, fileWasOpen);

Error in task4 (line 93)
matlab2tikz(filename, 'width', '17cm', 'height','12cm');`

@Lagges
Copy link

Lagges commented Jul 28, 2023

Same issue in Matlab R2022b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants