# Matlab m-file with multiple inputs

**URL:** <https://forums.speedlife.net/t/matlab-m-file-with-multiple-inputs/73433>\
**Category:** NYSpeed Off Topic\
**Created:** [September 12, 2009, 11:00am UTC](https://forums.speedlife.net/t/matlab-m-file-with-multiple-inputs/73433 "2009-09-12T11:00:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RedGoober4Life](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/redgoober4life/32/7610_2.png) [@RedGoober4Life](https://forums.speedlife.net/u/RedGoober4Life)\
**Post date:** [September 12, 2009, 11:00am UTC](https://forums.speedlife.net/t/matlab-m-file-with-multiple-inputs/73433/1 "2009-09-12T11:00:15Z")

</div>

I’m very rusty with Matlab. I have written a function that takes in a few inputs and saved it as an m file.

Then I define the inputs in the command line, but when I run the m file it doesn’t recognize the inputs (coding them into the m-file itself negates this problem). I think I might be entering the inputs incorrectly, and it’s starting with fresh commands with each line.

I’ve searched the internet for help, but alas…not much.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![RedGoober4Life](https://yyz2.discourse-cdn.com/flex034/user_avatar/forums.speedlife.net/redgoober4life/32/7610_2.png) [@RedGoober4Life](https://forums.speedlife.net/u/RedGoober4Life)\
**Post date:** [September 12, 2009, 11:29am UTC](https://forums.speedlife.net/t/matlab-m-file-with-multiple-inputs/73433/2 "2009-09-12T11:29:42Z")

</div>

whoa. i’m an idiot. figured it out.
