Skip to content

Commit

Permalink
avoid conjugating complex numbers, fix #83
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 8, 2022
1 parent bed2366 commit c729048
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loadjson.m
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
object=cat(catdim,object{:});
object=permute(object,ndims(object):-1:1);
else
object=cell2mat(object')';
object=cell2mat(object.').';
end
if(iscell(oldobj) && isstruct(object) && numel(object)>1 && varargin{1}.simplifycellarray==0)
object=oldobj;
Expand All @@ -407,7 +407,7 @@
end
end
if(~iscell(object) && size(object,1)>1 && ndims(object)==2)
object=object';
object=object.';
end
end
pos=parse_char(inputstr, pos, ']');
Expand Down
4 changes: 4 additions & 0 deletions miss_hit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
project_root

suppress_rule: "redundant_brackets"
indent_function_file_body: false

0 comments on commit c729048

Please sign in to comment.