hi..how to get the below mentioned matlab output,using ramp and some other functions?could u please post the code?

답변 (1개)

Image Analyst
Image Analyst 2015년 11월 5일

0 개 추천

Try this
x = linspace(0,15,300)
y = [linspace(0,5,100), 5*ones(1,100), linspace(5, 0, 100)]

댓글 수: 2

saranya s
saranya s 2015년 11월 6일
thanku so much for ur ans sir..bt i want to get the output using functions alone.
Image Analyst
Image Analyst 2015년 11월 6일
What do you think linspace() and ones() are? They are functions. I don't think disallowing brackets and equal signs is reasonable. Why do you have this requirement anyway? I mean, you could also do it with the colon operator, but why would that also be disallowed? MATLAB certainly uses functions but it also requires other things like certain mathematical operators and symbols like = ] ( ) , & && | { } and ;
Sorry, but I'm afraid I can't help you.

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

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2015년 11월 5일

댓글:

2015년 11월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by