Giter Club home page Giter Club logo

Comments (4)

nschloe avatar nschloe commented on May 20, 2024

Well that shouldn't be needed either. MATLAB(R) includes that file for testing purposes by default. 'load count.dat' works for me on the command line. -- Not for you?

from matlab2tikz.

mbauman avatar mbauman commented on May 20, 2024

Ah, I understand the issue now. You are right, I do have count.dat, and load count.dat functions as expected from the command line. The problem is that I also have a local function count.m in my PATH. While local variables should supersede functions, it appears as though if they're not declared within that scope then MATLAB uses the function first.

Explicitly saying count = load('count.dat'); is more robust.

Thanks for all the work on this! I really appreciate all it can do.

from matlab2tikz.

nschloe avatar nschloe commented on May 20, 2024

i just put a count.m in my path (hence "declaring" an entity 'count'), loaded count.dat, and the result is that there is now a variable 'count' containing the expected data. I don't really understand how that screws your test function, but I admit this is ugly and I prefer your suggestion of assigning the count variable more explicitly.
Will commit that now. Thanks!

from matlab2tikz.

mbauman avatar mbauman commented on May 20, 2024

Yeah, interactively (on the command line) things behave as you expect. However, within the test function, MATLAB seems to not recognize that a variable count is in the workspace if it's not explicitly assigned to... and so it calls the function count instead.

It's a strange bug (or implementation limitation). I can't seem to put the correct search together to find any documentation about it, though. (Edit: Aha! See here: http://www.mathworks.com/matlabcentral/newsreader/view_thread/161463) Thanks again!

from matlab2tikz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.