Filter löschen
Filter löschen

How to change the matrix int variable to just int variable?

1 Ansicht (letzte 30 Tage)
ziad alalaily
ziad alalaily am 28 Jun. 2015
Kommentiert: Guillaume am 28 Jun. 2015
i am working with databases like postgresql, the problem is i try to send a variable of just int, but for the program it is a matrix that can't be resolved, is there a way to remove that matrix and have it as just a normal variable in matlab with integer type?
  2 Kommentare
Geoff Hayes
Geoff Hayes am 28 Jun. 2015
Ziad - please describe how you are sending the data from MATLAB to the database? Are you constructing some sort of SQL command to update a table with a new value?
Guillaume
Guillaume am 28 Jun. 2015
All variables in matlab are matrices. There is no such thing as a non-matrix variable. Even scalar cell arrays, structures, objects, etc. are matrices of size 1x1.
Note: see this description of the XY problem and please tell use which is the real problem you're trying to solve.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by