photo

Sagar Bhatt


Last seen: 5 years ago Active since 2020

Followers: 0   Following: 0

Statistics

MATLAB Answers

2 Questions
0 Answers

RANK
237,462
of 301,973

REPUTATION
0

CONTRIBUTIONS
2 Questions
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

RANK
 of 21,476

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 177,809

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


Function outputs NaN for a cell which is assigned a separate value?
I created the following function: function [x] = f(y) x = (y==0).*1+(y~=0).*(1./y); With the following input, it returns th...

5 years ago | 1 answer | 0

1

answer

Question


Symbolic expression behaves differently when referenced in a for-loop
I defined a function f.m: function [x] = f(y) x = 0; for n = 1:4 x = x + y; end When I enter the command x = f((n==1...

5 years ago | 1 answer | 0

1

answer