New Reply

Mathematica to MATLAB translation

 
Share Thread Thread Tools
May29-12, 11:29 AM   #1
 

Mathematica to MATLAB translation


Hi, I have some Mathematica code I wanna translate in Matlab, does anyone know how to translate the Table [expr,{i,a,b}]to Matlab? I made one with a loop, but loops are very slow and I am going to analyze large datasets with the functions.
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Hong Kong launches first electric taxis
>> Morocco to harness the wind in energy hunt
>> Galaxy's Ring of Fire
Jun2-12, 06:16 AM   #2
 
Quote by RYYJDEH View Post
Hi, I have some Mathematica code I wanna translate in Matlab, does anyone know how to translate the Table [expr,{i,a,b}]to Matlab? I made one with a loop, but loops are very slow and I am going to analyze large datasets with the functions.
I'm neither a Matlab nor Mathematica user, however, could you rewrite expr as a function f of i, create a vector running from a to b (something like i = a:b, perhaps?) and then apply f to i using arrayfun (maybe you could use expr as an anonymous function?

NR
 
Jun11-12, 02:42 PM   #3
 
Even simpler, I just created a vector say k=1:40 and then wrote my function say 5*k+12.
 
New Reply

Tags
function, mathematica, matlab, table, translation
Thread Tools


Similar Threads for: Mathematica to MATLAB translation
Thread Forum Replies
MATLAB and Mathematica help Math & Science Software 0
matlab vs mathematica Math & Science Software 20
how write the 'for' loop in mathematica Math & Science Software 11
how to write matlab code in mathematica Math & Science Software 0
Matlab/Mathematica help! Math & Science Software 1