To plot a sketch
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi! 
I have a function here :
 this is when 0<= x<=a
   this is when 0<= x<=a when a<= x<=b
 when a<= x<=bI have to to sketch this....  Can I do this without giving any numerical value to the parameters a and b? I'll plot it as a function of x
Here is my attempt sorry if it's childish, I'm not professional
clear all
clc
syms a b x
Psi1= sqrt(3/b)*x/a;
Psi2=sqrt(3/b)* (b-x)/(b-a);
plot(x,Psi1)
hold on
plot(x,Psi2)
1 件のコメント
  Stephen23
      
      
 2019 年 7 月 1 日
				"Can I do this without giving any numerical value to the parameters a and b?"
Of course: write a function and then call fplot.
採用された回答
その他の回答 (0 件)
参考
カテゴリ
				Help Center および File Exchange で Calculus についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


