Previous in Forum: Earth Fault   Next in Forum: How to Select Capacitor Bank?
Close
Close
Close
3 comments
Rate Comments: Nested
Participant

Join Date: Jul 2013
Posts: 1

Filling 3-D Look Up Table in Matlab

07/17/2013 2:25 AM

While trying to use a 3-d look-up table, it is showing an error : " the number of dimensions in the table data parameter must match the number of dimensions indicated."

my breakpoint sets are

a - 0,1

b - 0,1

c - 0,1

And table data is

a b c data

0 0 0 5

0 0 1 6

0 1 1 2

0 1 0 3

1 1 0 4

1 0 0 4

1 0 1 1

1 1 1 1

Please help me in filling the 3-d look-up table.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Power-User

Join Date: May 2010
Posts: 146
Good Answers: 2
#1

Re: fILLINg 3-d look up table in matlab

07/17/2013 4:30 AM
Register to Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#2

Re: fILLINg 3-d look up table in matlab

07/17/2013 5:01 AM

How about reorganizing "abc" into binary order? (The lookup function may depend on the variable at each step being in increasing order.)

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply
Active Contributor

Join Date: May 2010
Location: Quebec City
Posts: 24
Good Answers: 1
#3

Re: Filling 3-D Look Up Table in Matlab

07/18/2013 7:37 AM

Construct a simple matrix containing your ordered data values :

Data = [5 6 2 3 4 4 1 1];

Then construct your index using a,b,c:

Index = 4*a + 2*b + c;

Extract your value:

Value = Data[index+1];

Register to Reply
Register to Reply 3 comments
Copy to Clipboard

Users who posted comments:

Alanvaderi (1); Pops7 (1); Tornado (1)

Previous in Forum: Earth Fault   Next in Forum: How to Select Capacitor Bank?

Advertisement