Trouble with a simple division in my m-file

I have a old m-file that as a company we quickly update to make certain graphics we want. I have data files being brought in, everything is coming in correct.
my equation i have is Rat=(intial/dye)-1
Initial is a one number 97.8
Dye is a matrix of 67 x 1
The Dye numbers range between .15 to .01
BY doing this i am suppose to get a dillution number to go on a semilog plot.
When i run this routine it does not give me any errors but all my numbers generated by this equation are -1.
Any help would be greatly appreciated. thank you in advance

Réponses (1)

Adam
Adam le 12 Déc 2014
Rat=( initial ./ dye ) - 1
looks more like what you want I think. I assume you want to divide initial by each number in dye independently rather than do a matrix division?

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Question posée :

le 12 Déc 2014

Réponse apportée :

le 12 Déc 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by