photo

ashutosh negi


Active since 2016

Followers: 0   Following: 0

Message

Statistics

MATLAB Answers

3 Questions
0 Answers

RANK
38,520
of 301,229

REPUTATION
1

CONTRIBUTIONS
3 Questions
0 Answers

ANSWER ACCEPTANCE
0.0%

VOTES RECEIVED
1

RANK
 of 21,196

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 173,512

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

Feeds

View by

Question


while running this simple matlab function program, it is showing error. please anyone spot the error. it is showing ,Error using myfact (line 3) Not enough input arguments.
function result= myfact(n,x) c =1; vec =[1:n]; c =[1,1./vec]; b =[1,x.^vec]; result =(c.*b); end

9 years ago | 1 answer | 0

1

answer

Question


Can anyone please explain the meaning of for m=1:size(x,1) & for n=1:size (x,2). in the program.please explain explicitly.
x=[0,-1,4;9,-14,25;-34,49,64]; for m=1:size(x,1) for n=1:size(x,2) if x(m,n)>=0 B(m,n)=sqr...

9 years ago | 2 answers | 1

2

answers

Question


when i am plotting this conditional for loop program no plot is showing only one dot is showing. Can anyone help me about how to display plot? i am using Matlab 2013..
% conditional x= -5:0.005:15; for k=1:length(x) if x(k)<0 y(k)=sqrt(x(k)^2+1); elseif x(k)<=10 ...

9 years ago | 1 answer | 0

1

answer