Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Other Topics > Programming

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 05-20-2012, 02:09 PM   #1
adept
 
non-self-weighter's Avatar
 
Join Date: May 2008
Location: increasing potential GDP
Posts: 1,170
MATLAB Beginner Here. Simple File Type Questions

I just bought the student version. Working through many of the video demos and such. What I mostly want to know for now, what's the difference between the different file types? It's my understanding that they are used as follows:

Model - For Simulink code (which I don't think I'll be using), which I think is mostly for mechanical engineering?

Function - This is strictly for creating a custom function that can be called in other files?

Class - File type that would be used for standard OOP. Probably most files in your library are Class files? (unless perhaps you use Simulink a lot)

Enumeration - ?? Not sure? Haven't run across this in any demos yet either. I guess this would be a file used for simulations or something? Like Monte Carlo sims?

Script - File calling code (presumably class files) to be run repeatedly. e.g., daily importing of stock data into a matrix. On a related note, can you set up MATLAB script to run on a schedule, in a similar manner to Cron jobs?

Zip - What's the point of being able to create zip files with MATLAB?

What's tilting me is just that all these file types have the same extension (.m), except for Model (.mdl) and Zip (.zip) files. For all intents and purposes, is the icon the only actual difference between a Class file and a Function file?

My apologies if these questions don't make sense. I'm just feeling around the software for the last week or so, and I've been looking for answers to my questions online. Any guidance is much appreciated.
non-self-weighter is offline   Reply With Quote
Old 05-20-2012, 08:23 PM   #2
newbie
 
ryanb99's Avatar
 
Join Date: May 2012
Posts: 20
Re: MATLAB Beginner Here. Simple File Type Questions

usually enums are (from what I know) used as a word representation of data. Like ... if a movie had a menu on frame 1 and credits on frame 12, you wouldn't use foo(1) to mean go to menu and foo(12) to mean go to credits, you would make an enum named frame and assign 1 to menu and 12 to credits, and then do foo(frame.menu) and foo(frame.credits). This is to make it easier on you and anyone else reading your code (again, from what I know and i dont know matlab).
ryanb99 is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 03:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive