Matlab select query incorrectly handling null
显示 更早的评论
Running a simple mysql select query (select * from table) using the SELECT(CONN,QUERY) command. If I run the query through the command line I can view the data as expected. There are a few columns where every value is null which is correct for the data. If I run the query through the Matlab select command all row columns except one return as expected. One column instead of reading all NULL as it should, returns all -2147483648. Any help is appreciated.
采纳的回答
更多回答(1 个)
Fiza
2024-5-3
编辑:Walter Roberson
2024-5-3
% Read the image
f=imread('f.jpg');
b=imread('f2.jpg');
%convert images to grayscale
if size(f,3)==3
f=rgb2gray(f);
end
if size(b,3)==3
b=rgb2gray(b);
end
% perform normalized cross-correlation
R=normxcorr2(f,b);
2 个评论
Fiza
2024-5-3
Need to correct this
Walter Roberson
2024-5-3
I don't understand how this solves the problem of what MATLAB returns for missing values in a database query?
类别
在 帮助中心 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!