matlab-ruby 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/matlab/driver/native/conversions.rb +2 -2
- data/lib/matlab/version.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -123,7 +123,7 @@ module Matlab
|
|
123
123
|
n.times do |column_index|
|
124
124
|
m.times do |row_index|
|
125
125
|
value = Matlab::Driver::Native::API.mxGetCell(matrix, index).to_ruby
|
126
|
-
cell_matrix[row_index, column_index] = (value.to_s == nil.to_matlab.to_s ? nil : value)
|
126
|
+
cell_matrix[row_index, column_index] = (value.nil? || value.to_s == nil.to_matlab.to_s ? nil : value)
|
127
127
|
index += 1
|
128
128
|
end
|
129
129
|
end
|
@@ -165,7 +165,7 @@ module Matlab
|
|
165
165
|
n.times do |column_index|
|
166
166
|
names.each do |name|
|
167
167
|
value = Matlab::Driver::Native::API.mxGetField(matrix, index, name)
|
168
|
-
struct_matrix[row_index, column_index][name] = (Matlab::Driver::Native::API.mxIsEmpty(value) || value.to_ruby.to_s == nil.to_matlab.to_s ? nil : value.to_ruby)
|
168
|
+
struct_matrix[row_index, column_index][name] = (value.nil? || Matlab::Driver::Native::API.mxIsEmpty(value) || value.to_ruby.to_s == nil.to_matlab.to_s ? nil : value.to_ruby)
|
169
169
|
end
|
170
170
|
index += 1
|
171
171
|
end
|
data/lib/matlab/version.rb
CHANGED
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: matlab-ruby
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-04-
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2007-04-27 00:00:00 -06:00
|
8
8
|
summary: A Ruby interface to the Matlab interpreted language.
|
9
9
|
require_paths:
|
10
10
|
- lib
|