Recent content by calt3ch

  1. C

    MATLAB Creating Conditional Callback Function in Matlab GUI

    Yes of course. I was thinking of doing that before, but tbh I wasnt putting a whole lot of thought into the GUI code; it was kind of an unnecessary part of my project... but yes, good idea i will do that ultimately i guess :)
  2. C

    MATLAB Creating Conditional Callback Function in Matlab GUI

    So I am a bit unfamiliar with Callback functions etc. But here is what I want: when someone clicks on a button, something happens. Well I want it so that when they click on another button and a certain condition isn't met, then the same function carried out by clicking a completely...
  3. C

    MATLAB Symbolic Differentiation in Matlab

    Haha I just found the function 'vectorize' (which I had never used before). Pretty much you take any inline function and it will vectorize it for you. Thus: x = inline('cos(t.^2)','t') ; xp = inline(char(diff(x(t),sym('t'))),'t') ; vectorize(xp) gives -sin(t.^2).*t Thanks...
  4. C

    MATLAB Symbolic Differentiation in Matlab

    Hi, quick question. I have an inline function I would like to differentiate symbolically in Matlab, however when I do it I get the following: say x = inline('cos(t.^2)','t') ; xp = inline(char(diff(x(t),sym('t'))),'t') ; xp(t) becomes -sin(t^2)*t however I really...