photo

Kenneth


Last seen: 1 year ago Active since 2025

Followers: 0   Following: 0

Statistics

MATLAB Answers

1 Question
0 Answers

RANK
98,731
of 301,707

REPUTATION
0

CONTRIBUTIONS
1 Question
0 Answers

ANSWER ACCEPTANCE
100.0%

VOTES RECEIVED
0

RANK
 of 21,387

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 176,162

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 1

View badges

Feeds

View by

Question


I'm trying to plot a graph with if than statements but keep getting the error "Array indices must be positive integers or logical values."
function x= HW2Problem1(y) x=1:.001:10; n=length(x); for i=(0:n) if x(i)==0 y(i)=16.67; elseif 0<x(i) & x(i)<5 y(i)=2...

1 year ago | 1 answer | 0

1

answer