I got two quick questions.
I have two matlab .m files that comprise a program. One file is the sort of "main" file with the bulk of the execution code, the second file is a function definition for a function that the first file uses. I'm not very familiar with matlab and I'm wondering how can I get the program to run. Everytime I try it will only let me run one file, and when I try to compile the files into one file it gives me an error about functions not being allowed in scripts. Is there a way to link the files when I compile? It's got to be easy to do, I'm just not experienced at it at all.
The other question I had regards a small bug I've had using Visual C++ in windows. I have a program that prompts for a path in a console. The problem is that when the path is typed in, the program disregards white space in the folder names. I believe I'm using getline to get the path. Is there a special symbol for a space used by windows that I need to type instead? I tried %20, but that didn't work.
Thanks in advance for any advice.
I have two matlab .m files that comprise a program. One file is the sort of "main" file with the bulk of the execution code, the second file is a function definition for a function that the first file uses. I'm not very familiar with matlab and I'm wondering how can I get the program to run. Everytime I try it will only let me run one file, and when I try to compile the files into one file it gives me an error about functions not being allowed in scripts. Is there a way to link the files when I compile? It's got to be easy to do, I'm just not experienced at it at all.
The other question I had regards a small bug I've had using Visual C++ in windows. I have a program that prompts for a path in a console. The problem is that when the path is typed in, the program disregards white space in the folder names. I believe I'm using getline to get the path. Is there a special symbol for a space used by windows that I need to type instead? I tried %20, but that didn't work.
Thanks in advance for any advice.