Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

LiveLink with Excel - extract data from an exiting Table

$
0
0

Hello,

I am trying to extract data from the results and show it in excel. I followed the following procedure:

  1. In COMSOL I was able to define a table and save its content on an excel file
  2. Saved the mph as VBA
  3. open excel and pates the VBA code into a new module
  4. run the script

Up to now everything was OK.

So I have a table (tbl1) with two columns (frequency and gain) Now I need to perform what in Matlab code would be

Gain = mphtable(model,'tbl1'); Freq=Gain.data(:,1); Gain_dB=Gain.data(:,2);

I could not find the VBA equivalent of these 3 MATLAB lines (and yes, I did looked into the LiveLink for Excel, but in the EXTRACTING DATA section I was not able to find what I was looking for, or misinterpreted)

Any ideas?

Thanks


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>