Answer by madhan ravi
on 8 Dec 2018

Edited by madhan ravi
on 8 Dec 2018

Accepted Answer

Instead of line (this is what sir Walter mentioned in the above) :

ya=f(x) %change your lines to these lines

yb=f(x)

Sign in to comment.

Opportunities for recent engineering grads.

Apply Today
## 9 Comments

## Abdulrahman Al Ali (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647945

## Adam Danz (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647974

## Abdulrahman Al Ali (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647978

## Adam Danz (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647981

## Abdulrahman Al Ali (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647986

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647988

## Abdulrahman Al Ali (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647993

## Walter Roberson (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647995

## Abdulrahman Al Ali (view profile)

Direct link to this comment:https://www.mathworks.com/matlabcentral/answers/434647-can-someone-please-tell-why-i-have-an-error#comment_647996

Sign in to comment.