For loop Bloomberg BDP Output

Hi all,
kind of a simple question here as I am new to Matlab, but searching on the web didn´t help me either.
I have a table with ISINs in the first column. I want to get the last price of the given ISINs in the second column with the BDP function. But the output of the BDP function is not a number but a 2x2 array with the relevant information in (2,2).
Heres my code
for i = 1:size(pf,1)
pf(i,2) = bdp(pf{i,1}, 'Corp';'PX_LAST')
end
Its the same if I use cellfun:
pf(:,2) = bdp(cellfun(@(x) [x, 'Corp'],pf(:,1),'UniformOutput', false), 'PX_LAST');
Is there any way to make sure that the result is only (2,2) of the outputarray of the bdp function?
cheers,

답변 (0개)

카테고리

도움말 센터File Exchange에서 Bloomberg Desktop에 대해 자세히 알아보기

질문:

2021년 7월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by