Trouble with a simple division in my m-file
1 view (last 30 days)
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
0 Comments
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?
0 Comments
See Also
Categories
Find more on Language Fundamentals 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!