2 M file interaction
    8 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    amira hl
 am 2 Jun. 2015
  
    
    
    
    
    Bearbeitet: Walter Roberson
      
      
 am 18 Jun. 2015
            Hi i'm using Matlab 2009 , i have my code in 1 M file , and the results of that code, should be used in other M file, how can i do that?
3 Kommentare
  Amine
 am 2 Jun. 2015
				You can also write an m-file where you call another m-file, example: Im_calculation % which is your first m-file %Then you continue your code below. And do not forget to save the two m-files in the same path. Good chance!
Akzeptierte Antwort
  B.k Sumedha
      
 am 2 Jun. 2015
        function f1=im()
im=imread('cameraman.tif');
f=im(3,3);
b=1;
delta=20;
wi=1;
%insertion
   m=floor(f/((2^b)*delta));
   r=f-(2^b)*m*delta;
   f1=(2^b)*m*delta+wi*delta+r/(2^b);
   im(3,3)=f1;
Thats ur first part.
b=1;
delta=20;
wi=1;
m1=floor(im()/delta);
r1=im()-m1*delta; 
wi=m1-(2^b)*floor(m1/(2^b));
f=(2^b)*floor(m1/(2^b))*delta+(2^b)*r1;
This is ur second part where im() is being used.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Audio and Video Data finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


