errors using unix('who') in matlab - matlab

My matlab can't recognise the unix('who'); it returns as
the 'who' is not an internal or external command, operable program or batch file
and other unix-like command also cannot run either.

I think you are on a Windows machine. Try some windows commands with system. like system('dir').

Related

Installing files via Composer via Command Line | "'$' is not recognized as an internal or external command, operable program or batch file."

So I am attempting to install some files from Send Grid via Composer usind the CommandLine.
I am following a tutorial with the link here https://www.youtube.com/watch?v=fEobqi3N7zw
The guy in the video has no problem using Composer via the Command Line in the Windows Command Prompt, but when I input the command $ go_www, my PC whines and stamps it's feet, giving me the following line:
'$' is not recognized as an internal or external command,
operable program or batch file.
In a nutshell, why?
System Information:
Windows 10 64x
I have looked at other posts on here, to no avail, I have tried opening the Command Line too as System Administrator, but to avail. I have tried restarting the system, to no avail, I can confirmed I have composer installed into the correct directory, to no avail .
$ in a shell indicates the shell is not owned by a superuser, it is not part of the command. Try running go_www. Also, the video you linked seems to be using a bash shell, whereas you appear to be running a Windows command prompt from the error message you included in your question, which might be a problem too.
In any case, go_www is an alias the video author uses to quickly navigate to the folder of interest. Try manually navigating there using cd.

I get this error when trying to set up a virtual environment using cmd on windows 10

'setprojectdir' is not recognized as an internal or external command,
operable program or batch file.
I have activated the environment and was following this tutorial
setprojectdir is a command from virtualenvwrapper. Do you have virtualenvwrapper-win installed? Check its bat-files are in the %PATH%.

EVERYTHING is not recognized as an internal or external command, operable program or batch file IF ".EXE" SUFFIX IS MISSING

this problem might not be the problem as u may expect and I'm using Windows 7. I've guaranteed that I have put the path to EVERY SINGLE EXECUTABLE FILE I need in the %PATH%.
Yet I still can't run them nice and smooth by simply type there file name.
For instance, I've already setup my python correctly, now I open my cmd in a totally irrelevant directory, says U:\\
U:\>python
'python' is not recognized as an internal or external command,
operable program or batch file.
U:\>python.exe
Python 3.7.5 on win32
Type "help", "copyright", "credits" or "license" for more information.
And also, 'ipconfig' has the completely same issue as above:
U:\>ipconfig
'ipconfig' is not recognized as an internal or external command,
operable program or batch file.
U:\>ipconfig.exe
Windows IP Configuration
Ethernet adapter Local Area Connection: .......
What!!! How come I MUST type the extension ".exe" to make this happen? Does anyone know how to fix this?
Something messed up the PATHEXT variable on your system. This variable tells windows how to handle files with certain extensions. Or in other words, if you try to execute a file (without extension), Windows takes that variable to try to execute it with the extensions therein (in that order - so if there is a file.bat and another one file.exe and you execute just file, Windows looks into PATHEXT and then executes file.exe, because .EXE is listed before .BAT (short form - actually, also the PATH variable is involved).
On a fresh Win10, PATHEXT has the following content:
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
Note, the content of PATHEXT depends on what was installed on your Windows (in your case, it's supposed to be at least:
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
(maybe more - as I said, it depends on your configuration)
typing "start" before the program name.
If this does not work, try using the "cd" command to mount itself at the place of the program you would like to run

unix command './' is not recognized

I'm using Matlab 2013a. The unix command './' doesn't work in matlab and returns the following error.
>> unix('./makeBeamxy.s')
'.' is not recognized as an internal or external command,
operable program or batch file.
Is there a way to solve it? I'm actually running this command from cygwin. But the 'system' command doesn't work very well because after I run this command, I need to keep the cgywin window open to run another command so that I can execute the file.
Try
unix(fullfile('.','makeBeamxy.s'))

Compiling error with MATLAB function

I have always been able to use the MATLAB function block on simulink without problems, but ever since yesterday it has been giving me the message
Unable to locate a C-compiler required by Stateflow and MATLAB Function blocks.
Use 'mex -setup' to select a supported C-compiler.
After some search I tried installing Windows SDK, and reinstalling Microsoft Visual C++ 2010 Express, but the error persists.
When I run the simulink model the following message appears on MATLAB's main window, before the first message appears on simulink
Warning: ''MySQL' is not recognized as an internal or external
command,
operable program or batch file.
'MySQL' is not recognized as an internal or external command,
operable program or batch file.
VSINSTALLDIR'
exceeds MATLAB's maximum name length of 63 characters and has
been truncated to
''MySQL' is not recognized as an internal or external command,
o'.
I don't know if it they are connected, but the only recent change I made in this computer was installing MySQL in it.
Assuming you're using windows (which it looks like from the question), type !where mysql on the Matlab command prompt. If the result is blank, you've got a path issue. Let's fix it.
First off, locate where your mysql executable lives -- either type where mysql.exe in a command shell, or just find it on the filesytem. Let's assume it's in C:\Path\To\Mysql\. Then, on the Matlab command prompt, change the PATH system variable by running:
setenv('PATH', [getenv('PATH') ';C:\Path\To\Mysql\']);
Hopefully, that will work.