Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
LiveLink with Excel - extract data from an exiting Table
Posted Apr 8, 2019, 12:20 p.m. EDT RF & Microwave Engineering Version 5.4 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
I am trying to extract data from the results and show it in excel. I followed the following procedure:
- In COMSOL I was able to define a table and save its content on an excel file
- Saved the mph as VBA
- open excel and pates the VBA code into a new module
- 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
-------------------Tuli