You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am confused about what is nvp of all the files, it seems like a input but I did not find the defination of that, or what is that? Can you give me a hint on that and how to define nvp, is that a method of something? It may be a stupid question :) I am a beginner
The text was updated successfully, but these errors were encountered:
Hi - I think you're referring to the function argument syntax documented here, the documentation uses options but I've typically used nvp. The nvp input is an optional input and is used to define the optional name-value pairs of the function. The short version is:
function foo(x,nvp)
arguments
x
nvp.Bar= 0
end
...
gives the function foo an optional Name-Value pair input with name "Bar" and default value 0, so you can make calls like foo(1,"Bar",2);.
Documentation of the name-value pairs should exist in the m-help of the file.
Hi, I am confused about what is nvp of all the files, it seems like a input but I did not find the defination of that, or what is that? Can you give me a hint on that and how to define nvp, is that a method of something? It may be a stupid question :) I am a beginner
The text was updated successfully, but these errors were encountered: