How to read .mat files created in windows MATLAB using MAC OS MATLAB - windows

I have a bunch of .mat files that were created on a PC (windows 8.1) using MATLAB 7.10.0 R2010a.
I am trying to use MATLAB 7.12.0 2011a on a MAC with Yosemite to open those files and they won't open.
Here is how the file is saved on MATLAB 7.10.0 R2010a in Windows 8.1:
save('test.mat',test)
Here is how the file is loaded on MATLAB 7.12.0 2011a on a MAC with Yosemite
load 'test.mat'
I get the following error message:
??? Error using ==> load
Unable to read MAT-file /Users/User1/test.mat: not a
binary MAT-file.
Try LOAD -ASCII to read as text.
Error in ==> test at 63
newdata = load(in_fname);
When I try double clicking any of the .mat files I get a bunch of java error messages in red font color.
I opened one of the .mat files in a text editor and the top of it says:
MATLAB 5.0 MAT-file, Platform: PCWIN,
Is there a way I can convert the files so that they read properly on a MAC?
I tried saving the files in 7.3 format by going to File-->Preferences-->General-->MAT-Files and switching the MAT-file save format to 7.3, but that didn't solve the problem.

I have never had any problem copying Matlab files between Windows, Mac and Linux in any version of Matlab for the past 20 years. The problem I can see is that the files were transferred using FTP between computers and that FTP thought it was text, so it modified the file and then it was not readable under Matlab anymore. Use a flashdrive to transfer the file.

Related

anaconda - ipynb file not opening after been saved on windows pc

actually a novice here but recently installed the anaconda distribution and lunched the jupyter notebook. tried running few operations and saved on desktop, after sometimes, I tried clicking on the file saved on desktop but it isn't opening. my question is-> is there a particular type of file to save you IPYNB. operation on with windows? or rather save IPYNB file on windows system.

Creating a Wrapper .exe for launching Kite with Intel SDE for use in Sublime Text

I have an old CPU (Intel Pentium G3450 # 3.4Ghz) and 6GB of DDR3 RAM.
I wanted to run Kite Autocomplete In Sublime Text but the installer said my PC Needs to support AVX.
Then I Found Out about "Intel SDE", It is an emulation layer which can run AVX apps on non AVX CPU !
So I Managed to Install Kite using Intel SDE with this command :- (NOTE : I have added SDE to path for easy usage)
sde -- "C:\Users\USERNAME\Downloads\KiteSetup.exe"
Although I got an error saying "Kite installation Timeout : Try Turning off Antivirus. Splash screen will close now", But I think It Installed Already.
It is showing up in Control Panel and I can Also see 1GB of Files in Kite Folder in Program Files.
So Now comes the problem, How do I make Sublime Text Launch Kite using Intel SDE ? Maybe some C++ Wrapper ?
HERE ARE THE THINGS I TRIED :-
I tried editing the kite sublime package file but couldn't decode the format.
I renamed original kited.exe to kited1.exe. Then I created a batch file with launch command and then packaged it to an exe with Bat-to-Exe tool and saved as kited.exe in Kite Folder. It Did launched kite successfully but kite doesn't seem to be Connected to Sublime Text (Note : I have already installed the plugin from package Control). It just Launches and then Terminates after some time.
Edit : -
Content of batch file is sde -- "C:\Program Files\Kite\kited1.exe"

Unable to extract bz2 reddit monthly comments file Mac

Am not able to extract monthly redit comment files downloaded in bz2 format on my computer.
For example, When i extract RC_2005-12.bz2 using The Unarchiver, there is a RC_2005-12 file extracted without any extension. I am not able to open that RC_2005-12 file .
Am using Mac with Sierra. Am downloading files from here http://files.pushshift.io/reddit/comments/
Any help appreciated. Thanks
I just downloaded the RC_2005-12.bz2 file from http://files.pushshift.io/reddit/comments/, and then in my Download folder in Finder, double-click it.
It extracted using the macOS default Archive Utility.
The extracted file, RC_2005-12, is a plan text document and when doubling-clicking it, it open in TextEdit.
If that doesn't work for you, I'd try downloading the file again.

Unable to use link between Netlogo 6.0.1 and Mathematica 11.1 on a 64 bit processor pc running Windows 10

I am unable to run the mathematica-netlogo link on my PC with a 64 bit processor running window 10. The versions of Netlogo and Mathematica are 6.0.1 and 11.1 Student Edition respectively.
The error arises when the function "NLStart[]" is run with the path of the Netlogo directory provided as an input to this function. The error message is as follows:
NLStart::netlogonotfound: NetLogo could not be found in: C:\Program Files\NetLogo 6.0.1\
Prior to this step, I successfully loaded the NetLogo Mathematica link package.
Any helpful suggestions to overcome this issue will be appreciated.
Thanks.
I've just verified I was able to use NetLogo Mathematica Link with the following configuration:
Mathematica 11.1.0.0
NetLogo 6.0.1 64-bit
Windows 10 64-bit
My Mathematica installation was untouched, as was my NetLogo installation - I did not have the Mathematica Link 6.0 hotfix installed for NetLogo 6.0.1. Also, NetLogo 6.0.1 was installed in "C:\Program Files\NetLogo 6.0.1" (some users choose to install to a different directory, or their primary drive is not lettered with "C:").
I opened Mathematica and ran the following commands:
File > Install > type: Package, source: From File, file: C:\Program Files\NetLogo 6.0.1\Mathematica Link\NetLogo.m, install name: NetLogo, install for this user only. Note that when selecting this file, Mathematica will use the last directory you opened, so when the file dialog opens, first navigate to the the top of the drive then navigate down to NetLogo 6.0.1 (using a NetLogo.m file from an older NetLogo version will almost certainly break Mathematica link, and this is a very easy mistake to make).
Entered in the notebook (cannot code block this): <<NetLogo`
Entered in the notebook: NLStart["C:\\Program Files\\NetLogo 6.0.1"] (note the double backslashes and no trailing backslash).
The NetLogo window will open after a slight delay (depending on your system speed and memory)
If you've followed these steps and are still unable to open Mathematica Link, please comment and we can continue to troubleshoot.
Edit:
I wanted to consolidate troubleshooting steps for future readers. I've introduced a new version of NetLogo.m available here, which users should download for troubleshooting purposes (it will be distributed with future versions of NetLogo). Some steps to using this:
Mathematica will cache old "NetLogo.m" files. You can find where these caches are by using the following commands in Mathematica:
FileNameJoin[{ $BaseDirectory, "Applications" }]
FileNameJoin[{ $UserBaseDirectory, "Applications" }]
Visit the directories obtained in Step 1 and delete all "NetLogo.m" files from them.
Download the new version of NetLogo.m
Install the downloaded version of NetLogo.m (and run <<NetLogo`)
Run NLDiagnostics["C:\\Program Files\\NetLogo 6.0.1"] to determine what paths are being searched. This function will produce a hash as an output. The key missingJars should be an empty list ({}).
If you want to check java version, you can run NLJavaDiagnostics[]. The javaVersion returned should start with "1.8.0", the javaArchitecture returned should be "64".

Import .txt file in TextWrangler - Insufficient memory Error code: -108

I tried importing a .txt file into TextWrangler version 4.5.10, but got error code -108. The .txt file is 1.11 GB.
I have a MacBook Pro version 10.9.5.
I turned off the option to "Automatically refresh documents as they change on disk" to save memory, but had the same result.
How can I import the .txt file in?
I ended up using 010 Editor and didn't have problems loading the .txt file.

Resources