About 60,700 results
Open links in new tab
  1. What is the @ operator (at sign) in MATLAB? - Stack Overflow

    Jan 20, 2010 · I have some MATLAB programs that use the @ (at sign) as an operator. What does it mean? Does MATLAB 6.5 support this operator?

  2. How can I index a MATLAB array returned by a function without …

    However, MATLAB complains about Unbalanced or unexpected parenthesis or bracket on the first parenthesis before the 3. Is it possible to read values from an array/matrix without first …

  3. Is there a standard for writing the beginning comments of a …

    Is there a conventional format for writing the beginning description of a matlab file? Such as including author(s), version number, last revised on, etc. When I search for this all I find is info...

  4. Differences between Octave and MATLAB - Stack Overflow

    Aug 23, 2012 · And to stay away from Octave only syntax, there's the --traditional option of Octave. I'm not saying that Matlab code always run in Octave but this is getting much much …

  5. matlab - Keep getting invalid expression errors - Stack Overflow

    Aug 7, 2020 · The expression between parentheses in the function definition line should be the name of the parameter to the function, not a value. I think you mean: function sum_out = …

  6. How do I set default values for functions parameters in MATLAB?

    Apr 28, 2009 · Is it possible to have default arguments in MATLAB? For instance, here: function wave(a, b, n, k, T, f, flag, fTrue=inline('0')) I would like to have the true solution be an optional …

  7. math - Optional args in MATLAB functions - Stack Overflow

    Jul 20, 2011 · How can I declare function in MATLAB with optional arguments? For example: function [a] = train(x, y, opt), where opt must be an optional argument.

  8. How to deal with name/value pairs of function arguments in …

    May 6, 2010 · If you are using MATLAB 2019b or later, the best way to deal with name-value pairs in your function is to use "Declare function argument validation". function result = …

  9. What is the syntax of `i++` in Matlab - Stack Overflow

    Feb 18, 2015 · Is there a shortcut statement that would do what C code i++ would do? (that is to increase i by 1)? Of course i do not mean the obvious i = i + 1.

  10. Parse error at ' [' : usage might be invalid MATLAB syntax

    Jan 5, 2020 · The reason why I am doing that way is because the MATLAB function numjac requires all the necessary arguments and thought that passing a pre-allocated arrays of …