how to extract data from database?

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 个评论

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.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by