Borrar filtros
Borrar filtros

Load data into workspace failure (BETA units)

2 visualizaciones (últimos 30 días)
Henrik Schädlich
Henrik Schädlich el 23 de Oct. de 2017
Respondida: Henrik Schädlich el 23 de Oct. de 2017
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 23 de Oct. de 2017
Editada: Walter Roberson el 23 de Oct. de 2017
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)

Más respuestas (1)

Henrik Schädlich
Henrik Schädlich el 23 de Oct. de 2017
Thank you for your quick reply. Yes the shortcut BM is for Basilar Membrane.
Best regards Henrik

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by