- #1
- 81
- 0
I need some help with some basic MATLAB questions.
1) When writing a MATLAB code, do I create a blank new M-file, and write it there?
2) I need the program to calculate values for an equation, as I vary two variable within the equation. I'm unsure how to do this (for example, how do I define the variables, etc)
For example, say the equation is y = x^(-0.5) +z^(ln(x));
I want the program to give me values for y when i input different values for x and z. How is this accomplished?
If anyone can point me to good MATLAB tutorials that go into this kind of detail, I'd appreciate it. I've looked, including MATLABs help, and haven't found anything regarding equations and variables, etc.
Lastly, how do you comment in MATLAB?
1) When writing a MATLAB code, do I create a blank new M-file, and write it there?
2) I need the program to calculate values for an equation, as I vary two variable within the equation. I'm unsure how to do this (for example, how do I define the variables, etc)
For example, say the equation is y = x^(-0.5) +z^(ln(x));
I want the program to give me values for y when i input different values for x and z. How is this accomplished?
If anyone can point me to good MATLAB tutorials that go into this kind of detail, I'd appreciate it. I've looked, including MATLABs help, and haven't found anything regarding equations and variables, etc.
Lastly, how do you comment in MATLAB?