jeudi 2 avril 2015

Concatenate array to form a string

I have a value of angles in two cells:



theta1 theta 2
1 10
2 9
3 8
4 7

I need to concatenate them to perform either sine or cosine function of theta(1,2) in order to graph them. This is for an airfoil project in which I have two values for theta which I need to make into one (string or array) and perform one more calculation with this one string or array and plot the results.


I do not want to add the values like turn 1 and 5 into fifteen, NO! rather turn 1 and 5 into theta = [1, 5], where I can then perform sine or cosine on theta and get value for sin(theta) = { x, y } or cos(theta) = {x,y}. I would then need to plot sine versus cosine.


Any Ideas?


Aucun commentaire:

Enregistrer un commentaire