Alvaro García
Followers: 0 Following: 0
Statistiken
5 Fragen
0 Antworten
RANG
153.649
of 290.064
REPUTATION
0
BEITRÄGE
5 Fragen
0 Antworten
ANTWORTZUSTIMMUNG
40.0%
ERHALTENE STIMMEN
0
RANG
of 19.634
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANG
of 144.462
BEITRÄGE
0 Probleme
0 Lösungen
PUNKTESTAND
0
ANZAHL DER ABZEICHEN
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Frage
for loop: Attempted to access y(2); index out of bounds because numel(y)=1. How to solve this error?
a=1; b=2; n=10; h=(b-a)/n; x(1)=a; for i=a:n x(i+1)=x(i)+h; y(i)=x(i).^3; area2(i)=((((y(i)-0)+(y(i+1)-0))/2)*x(...
fast 9 Jahre vor | 1 Antwort | 0
1
AntwortFrage
include a for loop instead of x=a:h:b (h=step size)?
a=1; b=2; n=10; h=(b-a)/n; x=a:h:b; y=x.^3; ya=a.^3; yb=b.^3; area = h/2*(ya+yb+2*(sum(y)-ya-yb)); disp(area) end ...
fast 9 Jahre vor | 1 Antwort | 0
1
AntwortFrage
Problem with for loop
areaneeded=3.75*100.1/100; %disp(areaneeded) %area needed for a 0.1% error a=1; b=2; for n=1:100; h=(b-a)/n...
fast 9 Jahre vor | 1 Antwort | 0
1
AntwortFrage
How can i run the for loop with a stepsize smaller than one?
I have this code: c=0:0.001:1; volume =0.75*pi*c-pi*c.^3; plot(c,volume) n=4; for i=1:4 fu...
fast 9 Jahre vor | 2 Antworten | 0
2
AntwortenFrage
if condition not working, any ideas why?
% x=0:0.1:2; y=12*x.^2+10*x-28;%f(x) t=-13*x.^2+15*x+28;%g(x) h=25*x.^2-5*x-56; plot(x,y,'r',x,t,x,h,'b') title('interse...
fast 9 Jahre vor | 1 Antwort | 0