Effacer les filtres
Effacer les filtres

Reading data from a sqlite database

2 vues (au cours des 30 derniers jours)
Keihan
Keihan le 6 Déc 2023
Modifié(e) : Mann Baidi le 7 Déc 2023
Hi,
I'm trying to import data from a sqlite database. Some of the data in the database are floating point values that are less than 1. When I run the MATLAB fetch command to read the data, the result is a cell array with zero values:
{[0]}, {[0]},....
Then when I run cell2mat to convert the cell array to a numeric array, I get an array of zeros.
The fetch command is:
values = fetch(conn, sqlquery);
How do I should read database values that are less than 1 floating point numbers?
Thank you,
Keihan Rafii
  1 commentaire
Mann Baidi
Mann Baidi le 7 Déc 2023
Modifié(e) : Mann Baidi le 7 Déc 2023
Hi,
I am not facing any issue in fetching floating values that are less than 1 on my end. Can you share the database and the query which you are trying to fetch?

Connectez-vous pour commenter.

Réponses (0)

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by