My problem with simple function input in matlab? Error:Line -3
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to input my function for integration, and every time I try and make a function and define it, I always get the same error, it says "???Error: Line: -3{??? Undefined function or variable 'x'" but when I input the same function in maple, the same exact way, I get no error, so what am I doing so wrong with matlab??
example function y = x+1;
matlab in return says
Version 7.12.0.635 (R2011a) 32-bit (glnx86)
???Error: Line: -3{??? Undefined function or variable 'x'.
y = x+1 }
0 Commenti
Risposta accettata
Casey
il 13 Nov 2012
Maple and matlab have different syntax. see https://www.math.duke.edu//education/ccp/materials/diffeq/mlabtutor/mlabtut9.html for some good examples of how to integrate in matlab
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!