朱莉娅是否有相当于Octave的"lookfor"命令?

nig*_*d3r 2 octave julia

如何在朱莉娅寻求具体的功能?lookfor会在Matlab/GNU Octave中制作,怎么能在这里完成?

Fen*_*ang 7

相当于lookfor就是apropos:

julia> apropos("fourier transform")
Base.DFT.fft

julia> apropos("concatenate")
Base.:*
Base.hcat
Base.cat
Base.flatten
Base.mapslices
Base.vcat
Base.hvcat
Base.SparseArrays.blkdiag
Core.@doc
Run Code Online (Sandbox Code Playgroud)

其他有用的函数,取决于您要查找的内容,包括methodswith,它可以为您提供为特定参数类型指定的方法列表:

julia> methodswith(Regex)
25-element Array{Method,1}:
 ==(a::Regex, b::Regex) at regex.jl:370                                                                
 apropos(io::IO, needle::Regex) at docs/utils.jl:397                                                   
 eachmatch(re::Regex, str::AbstractString) at regex.jl:365                                             
 eachmatch(re::Regex, str::AbstractString, ovr::Bool) at regex.jl:362                                  
 ...   
Run Code Online (Sandbox Code Playgroud)

  • 这是matlab名称可能实际上更好的唯一情况之一...... (2认同)