Indexing of a Float64 is actually a bit inconsistent. It works for a single
integer, but not for Ranges.
*julia> **a=4.5*
*4.5*
*julia> **a[1]*
*4.5*
*julia> **a[1:-1:1]*
*ERROR: `getindex` has no method matching getindex(::Float64,
::StepRange{Int64,Int64})*
*julia> **a[1:1]*
*ERROR: `ge
Thank you very much for that clear description. That was the problem and it
is producing the expected results.
On Monday, April 6, 2015 at 10:53:40 AM UTC-4, g wrote:
>
> I suspect you want
>
> ## generate next filter order
> if i==1
> a[i] = g
> else
> a[i-1:-1:1
Can you describe what kind of a problem you are having?
> On Apr 6, 2015, at 10:51 AM, Jim Christoff wrote:
>
> That was not it
>
>> On Monday, April 6, 2015 at 9:05:16 AM UTC-4, Jim Christoff wrote:
>> First, Julia is a great replacement for Octave and in most cases "C". I have
>> used Octav
I suspect you want
## generate next filter order
if i==1
a[i] = g
else
a[i-1:-1:1] = a[i-1:-1:1]-g*a[i-1:-1:1] # this is my problem
area*
end
a is first assigned as a Vector{Float64} of length p. Then you did a=g
which assigns a as a Float64 (this is
That was not it
On Monday, April 6, 2015 at 9:05:16 AM UTC-4, Jim Christoff wrote:
>
> First, Julia is a great replacement for Octave and in most cases "C". I
> have used Octave for decades and Julia for a year or so.
> I still have problems making the conversions. Any assistance will be
> grea