Jump to content
Sign in to follow this  
martymcfly

TI-BASIC -> Matlab

Recommended Posts

Hey, guys. I just decided to pop in. I need to build a program for a school project, and I am by far more comfortable in TI-BASIC than in any other language. Would it be possible for somebody to convert this program into a Matlab script.

 

Some definitions: rs and rss are 2x52 matrices, rscc is a 1x2 matrix, rsh is a 52x1 matrix, and rsp, rsf, rshc, rsd, and rsturns are integer variables.

 

Here's the program. Thanks a lot!

 

rat()

Prgm

1

Share this post


Link to post
Share on other sites

Sorry, I don't have time to step through that, but Matlab uses a pretty simple language. It's very similar to C/C++. You can do all the if/else/elseif/for/while stuff like any other language. If you aren't sure about the syntax for a command, just type "help ----". A nice thing with matlab is you don't need to declare variables. Just use them.

Share this post


Link to post
Share on other sites

Well, I just tried it, and the program seems to be almost working in Matlab. Now to find where I went wrong...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...