how to extract data from database?
Show older comments

Good day! :)
I'm new to Matlab. Hopefully I could ask for your help on this.
Attached is the pseudo-code that I have written.
it would ask for a, then b.
c gets the sum of a and b,
then dp will multiply c by 2. (or dp= 2*c)
then there's a simplified database for different values of dp and its corresponding dx and dy values. (btw, I basically made this one)
my concern here actually is how to link the value of dp once dp=2*c so I could get the corresponding dx and dy values based on the computed dp.
regards, Wesley
1 Comment
Image Analyst
on 13 Sep 2015
Edited: Image Analyst
on 13 Sep 2015
Please read this link so you'll understand why we can't answer this because we don't know what dx and dy are, and how they relate to variables a, b, and c. I guess you have a lookup table of N rows and 2 columns, one column holds dx and one column holds dy. But there is no way we can tell from 2*c which row to select to extract out the dx and dy that you want.
Answers (0)
Categories
Find more on Structures 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!