help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Script error
From
:
Stefano Milani
Subject
:
Script error
Date
:
Sun, 18 Mar 2018 13:08:27 +0000
User-agent
:
eM_Client/7.1.31849.0
Dear all,
I'm new user of octave and I need an help with this script.
%script per definizione passo fori lamiera
d=6; %Diametro dei fori
p=15; %Passo (da iterare)
p1=p*cos(pi/3); %Passo in direzione assiale (affinchè il pattern sia triangolare equilatero)
r2=622.5; % Diametro Max cono
r1=36; % Diametro Min cono
L=2610; % Lunghezza Lamiera
alpha=atan((r2-r1)/L); %Angolo di semiapertura Cono
rm=(r2+r1)/2; %Raggio medio cono
S=2*pi*rm*L; %Superficie Lamiera
Sforata=0.362*S; %Superficie forata
Nfori=Sforata/(pi*d^2/4); %Numero di fori
n=(L-2*p1)/p1+1;
r(1)=r2-p1*tan(alpha);
for i=1:n
r(i+1) = r(i) - p1*tan(alpha);
f(i) = 2*pi*r(i)/p;
end
When I run it I receive this message:
error: r(347): subscripts must be either integers 1 to (2^31)-1 or logicals
error: called from
pattern at line 17 column 10
But I however obtain series number.
How can I solve this problem? Where I'm wrong?
Best regards
_______________
Stefano Milani
Structural Design Specialist
Ener Consulting S.r.l.
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
Script error
,
Stefano Milani
<=
Re: Script error
,
Dmitri A. Sergatskov
,
2018/03/18
Re[2]: Script error
,
Stefano Milani
,
2018/03/18
Re: Script error
,
Marco Atzeri
,
2018/03/18
Prev by Date:
Re: Implementing advanced scientific calculator.
Next by Date:
Re: Script error
Previous by thread:
Please give review over my proposals.Needs a mentor also.
Next by thread:
Re: Script error
Index(es):
Date
Thread