-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added `Za` function: convert numbers from base to base * Improved `U` (`str2num`) to allow conversion to more general literals * Improved two-input version of `!` (`permute`). Second input can now be a scalar * Changed the order of second and third optional inputs of `o` (convert to double precision array). Padding is not on the left by default * `Yo` applied to strings or cell arrays changes case * `Z"` (`blanks`) now accepts vector input * Bug corrected in parser: space was not recognized as separator in colon literals * `Z#` (`fwrite`) now converts the file name to char if needed, and deletes file "inout" at the beginning of the program * Octave compatibility: `max` and `min` now allow first and second input to be char * Comma can no longer be used as a separator. Use space or newline instead * Function `Y}` (`cell2mat`) has been unified with `g` (`logical`) * `Yf` (prime factors) now returns an empty array for input 1 * `Xd` (`diag` / `spdiags`) now has one input by default * `Xd` with several inputs or outputs (`spdiags`) now allows char inputs * `YG` when used as `imwrite` now adds extension '.png' to filename if it contains no extension
- Loading branch information
Showing
11 changed files
with
132 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function varargout = max(varargin) | ||
% Converts first or second inputs to double if they are char | ||
if nargin>=1 && ischar(varargin{1}) | ||
varargin{1} = double(varargin{1}); | ||
end | ||
if nargin>=2 && ischar(varargin{2}) | ||
varargin{2} = double(varargin{2}); | ||
end | ||
if nargout==0 | ||
nargout = 1; % if called without outputs: produce 1 output | ||
end | ||
varargout = cell(1,nargout); | ||
[varargout{:}] = builtin('max', varargin{:}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function varargout = min(varargin) | ||
% Converts first or second inputs to double if they are char | ||
if nargin>=1 && ischar(varargin{1}) | ||
varargin{1} = double(varargin{1}); | ||
end | ||
if nargin>=2 && ischar(varargin{2}) | ||
varargin{2} = double(varargin{2}); | ||
end | ||
if nargout==0 | ||
nargout = 1; % if called without outputs: produce 1 output | ||
end | ||
varargout = cell(1,nargout); | ||
[varargout{:}] = builtin('min', varargin{:}); | ||
end |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters