Load data into workspace failure (BETA units)

4 ビュー (過去 30 日間)
Henrik Schädlich
Henrik Schädlich 2017 年 10 月 23 日
回答済み: Henrik Schädlich 2017 年 10 月 23 日
Hello, I want to load a mat-file into my workspace. The file is attached. I think it is from an older matlab version not quite sure yet. My problem is that it can't be loaded into the workspace and I don't know why. Maybe you have an idea.
xp=0;
yp=0;
xm=0;
ym=0;
load secman
bmL=33.5; % BM length in humans (mm) = BETA unit
bmw_man=0;
load bmw_man.mat -ascii % data are in BETA units
x=bmL*bmw_man(:,1);
y=bmL*bmw_man(:,2);
figure(1)
subplot(211)
axis([0,33.5,-2,2]);
plot(xp*bmL, yp*bmL, xm*bmL, -ym*bmL, (0:.05:1)*bmL, zeros(size(0:.05:1)),'w')
title('Radii of human cochlea scalae')
% xlabel('Distance from stapes [mm]')
ylabel('Radius [mm]')
subplot(212)
axis([0, 33.5, 0, 0.6]);
plot(x,y,'-red',x,y,'.c5')
title('Basilar membrane width in humans');
ylabel('Witdh in mm');
xlabel('Length in mm')
What exactly is the meaning of "% data are in BETA units"? Best regards Henrik

採用された回答

Walter Roberson
Walter Roberson 2017 年 10 月 23 日
編集済み: Walter Roberson 2017 年 10 月 23 日
BM sounds like it might be Basilar Membrane. The code suggests that a standard length for one of 33.5 mm is being used, and that the bmw_man entries are multiples of that 33.5 mm.
I do not have any problem with your code and those files until
plot(x,y,'-red',x,y,'.c5')
You cannot code a line size as part of a linespec.
plot(x, y, '-red', x, y, '.c', 'linewidth', 5)

その他の回答 (1 件)

Henrik Schädlich
Henrik Schädlich 2017 年 10 月 23 日
Thank you for your quick reply. Yes the shortcut BM is for Basilar Membrane.
Best regards Henrik

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by