Load data into workspace failure (BETA units)
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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)
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!