# Thread: matlab instruction to symbian instruction

1. Hi, I have a matlab language instruction must be translated into language and I qt symbian, but not how, Can you help?
the instructions is this:
V = uint8 ([0 0 0 0 0 0 0 0 mod (640.256) floor (640 / 256) 0 0 mod (480.256) floor (480/256) 0 0 1 0 0 0 1 0 0 0]);
thank you very much

2. Hi,
There is no direct translation is possible between Matlab and Qt instruction. But can you explain some thing more about what you want to do?

3. Matlab is higher level language that C++, so there isn't one to one translation.

But in that line you have array of integers which is basic feature in any language

Learn from arrays and math funcions in C++ here:
http://www.cplusplus.com/doc/tutorial/arrays/
http://www.cplusplus.com/reference/clibrary/cmath/

it's something like this:
int V[] = {0, 0, 640%256} and so on. modulo is operator % in C

If you are making vector mathematics with that array in Matlab, then it's more complex.

4. I want to send that string in qt

5. You need to be more specific. Send where?

But if those number are representing characters use 'char' type and convert to maybe to QString http://doc.qt.nokia.com/4.6/qstring.html

6. matlab sends that string and I want to send it by qt, is a string of integers of 4 bytes each

7. I think you should really explain what you are doing, otherwise it's not possible to give any more answers.

8. As you are saying that matlab sends that string but where ? Are you writing this string to file or some variable?

9. I can not explain, I have to do is send the sequence of integers that are 6, 0, 0, 640, 480, 1, 1
instruction that uses matlab is the one below, first sends 0 and 0 in this way, 00000000 Depue the bottom of 640 followed by the upper part of the same for 640 and 480, and last January 1st is the indian Litel 0 0 1 0 0 0 1 0 0 0 I hope it is clearer

10. That Matlab line doesn't send anything anywhere. It saves an array to variable V.

11. Originally Posted by pit_29
I can not explain, I have to do is send the sequence of integers that are 6, 0, 0, 640, 480, 1, 1
instruction that uses matlab is the one below, first sends 0 and 0 in this way, 00000000 Depue the bottom of 640 followed by the upper part of the same for 640 and 480, and last January 1st is the indian Litel 0 0 1 0 0 0 1 0 0 0 I hope it is clearer
Still its not clear...
What you want to do by combining the matlab and Qt.

Are you developing some Qt Desktop application?

12. I already know matlab evia no nothing, I know how to send in qt but not how to put that string like ai want to do that chain as in the instruction of matlab, matlab I will not mix with QT, I just want to do the same makes this program

13. I'm not a Qt application desarroyando matlab, I'm trying to do what he did with matlab qt, is an application for mobile symbian.
the only thing I need is to create a variable with these values ​​in qt, not like do it, mod =%? ¿"Floor" =?

14. I tried to explain how to make similar variable in C++ in post #3. You can ask more specific if you didn't understand. It also depends what you are exactly going to do with the variable.

15. I send it in a socket

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.