Load data into workspace failure (BETA units)
    4 views (last 30 days)
  
       Show older comments
    
    Henrik Schädlich
 on 23 Oct 2017
  
    
    
    
    
    Answered: Henrik Schädlich
 on 23 Oct 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
0 Comments
Accepted Answer
  Walter Roberson
      
      
 on 23 Oct 2017
        
      Edited: Walter Roberson
      
      
 on 23 Oct 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)
0 Comments
More Answers (1)
See Also
Categories
				Find more on Call Python from MATLAB in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
