MATLAB Answers

using summation within a function

1 view (last 30 days)
Giuseppe Battaglia
Giuseppe Battaglia on 13 Mar 2016
Answered: Dave Behera on 24 Mar 2016
I'm trying to compute something like this:
y=sum(x+n) (or any other f(x))
This only works if n and x have the same dimension as matrix, but what I'm after is to use to derive y =f(x) but so far I had no luck any help is wellcome
  1 Comment
Walter Roberson
Walter Roberson on 13 Mar 2016
In a case like that, what size would you want y to come out as, and what values?

Sign in to comment.

Answers (1)

Dave Behera
Dave Behera on 24 Mar 2016
The x + n part will only work if they are the same dimension. Can you please describe in detail what you are referring to as 'derive y =f(x)'?


Community Treasure Hunt

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

Start Hunting!