Hi!
I have a function here :
this is when 0<= x<=a
when a<= x<=b
I 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
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.

댓글을 달려면 로그인하십시오.

 채택된 답변

Julie
Julie 2019년 7월 1일
편집: Julie 2019년 7월 1일

0 개 추천

No, you cannot do this without giving numerical values to a and b.

추가 답변 (0개)

카테고리

태그

질문:

2019년 7월 1일

댓글:

2019년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by