Trouble with a simple division in my m-file
Show older comments
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
Answers (1)
Adam
on 12 Dec 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?
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!