How to plot a piecewise function on Matlab?
    23 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Amna Habib
 am 12 Sep. 2021
  
    
    
    
    
    Kommentiert: Amna Habib
 am 12 Sep. 2021
            I need to plot the two piecewisely defined functions on the same graph. Please help me to write code. Thanks in advance.
f(x)= 1-sqrt{5-x}   for x =<5, 
        1   for 5=< x =<7, 
        1-sqrt{(x-7)/3}   for x =>7.
Similarly,
g(x)= sqrt{(5-x)/2}   for x =<5, 
         0   for 5=< x =<7, 
         sqrt{(x-7)/5}   for x =>7.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Assumptions 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!

