I have calculated a variable called FNET. I have saved FNET to the hard drive using the following command:(adsbygoogle = window.adsbygoogle || []).push({});

save(fullfile(BasePath,'FNET'),'FNET','-mat')

BasePath is a string that gets the file to the correct directory on my hard drive.

First Question: FNET shows up in the correct place, but in Windows Explorer the file type is shown as "File" rather than (what I would expect) MATLAB M-file. Why?

Second Question: I've written a program that needs to load this variable. None of the following commands have worked:

load FNET

load fullfile(BasePath,'FNET.mat')

and various other attempts.

Please help!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab save/load question

Loading...

Similar Threads - Matlab save load | Date |
---|---|

How to save Matlab output? | Jan 23, 2013 |

MATLAB-saving data after loops for surf plot | Apr 14, 2012 |

Saving figures in Matlab | Feb 17, 2011 |

MATLAB save command and transpose command | Apr 30, 2009 |

Matlab, saving the plot. | Mar 4, 2009 |

**Physics Forums - The Fusion of Science and Community**