Feeds
질문
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년 초과 전 | 답변 수: 1 | 0
1
답변질문
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년 초과 전 | 답변 수: 1 | 0

