Why Mathworks provides uncompleted toolboxes?

Hello My name is Jakub Richter. I am using Matlab 2015b 32-bit version. I have installed arduino toolbox from this site https://www.mathworks.com/hardware-support/arduino-matlab.html and successfully communicate with Arduino. I need to use some functions which are included in toolbox according this site https://www.mathworks.com/help/supportpkg/arduinoio/functionlist.html?s_cid=doc_ftr but I noticed, that many functions are not included in toolbox I have installed. For example. I can use spidev function to create SPI object but function writeRead to write or read data with SPI is not included. So I can not do anything.
Please. Do you have some advise how to get full toolbox or is it because my version of Matlab can not run these functions?
Thank you

4 commentaires

Adam
Adam le 9 Juin 2017
Using R2017a online help for which functions you can use in R2015b is never a good idea. Some of them will have been introduced after your version. The one you mention says it was introduced in R2014b though so should be available.
Jakub Richter
Jakub Richter le 11 Juin 2017
Thank you Adam for your response.
You are right. Can you please tell me how to find from which versions are functions available?
That functions I need should be available, but they are not I don´t know why :-/.
Best regards Jakub
Adam
Adam le 12 Juin 2017
Modifié(e) : Adam le 12 Juin 2017
The latest versions of the help include a section usually right at the bottom for each function saying in which version they were introduced.
e.g. when you click on writePosition from your function list link that page includes
Introduced in R2014b
at the bottom.
Jakub Richter
Jakub Richter le 15 Juin 2017
Modifié(e) : Jakub Richter le 15 Juin 2017
oh I see. I don´t know how could I overlook it.
Thanks

Connectez-vous pour commenter.

 Réponse acceptée

Jan
Jan le 9 Juin 2017

0 votes

What does "uncompleted" mean? All toolboxes of Matlab are under development and new features are added with every new release. Unfortunately some features will even vanish, if MathWorks decide, that their support is not worth the effort anymore.
If you have installed the current version of the toolbox from the net and read the online documentation, it should not matter, which Matlab version are you using. How did you test, that "that many functions are not included"? Perhaps the test went wrong?

3 commentaires

Jakub Richter
Jakub Richter le 11 Juin 2017
Modifié(e) : Walter Roberson le 11 Juin 2017
Thank you Jan for your response.
I noticed that functions are not included with using them and Matlab responded to me that these function can not be founded. So I used methods funcion to get list of provided functions and this is result:
a = arduino()
a =
arduino with properties:
Port: 'COM7'
Board: 'Uno'
AvailablePins: {'D2-D13', 'A0-A5'}
Libraries: {'I2C', 'SPI', 'Servo'}
>> methods(a)
Methods for class arduino:
addon details playTone servo writePWMVoltage
configureAnalogPin disp readDigitalPin spidev
configureDigitalPin display readVoltage writeDigitalPin
configurePin i2cdev scanI2CBus writePWMDutyCycle
Methods of arduino inherited from handle.
As you can see to compare with this site https://www.mathworks.com/help/supportpkg/arduinoio/functionlist.html, there are many functions missing. I saw videos where people used these functions with older versions of Matlab than I am using.
So do you have any idea, what is wrong?
Walter Roberson
Walter Roberson le 11 Juin 2017
writeRead() is not a method for arduino objects: it is a method for spidev objects. You can create an spidev object using spidev() and passing in an arduino object as the first parameter.
Jakub Richter
Jakub Richter le 15 Juin 2017
Oh I see. So the problem is solved! Strange that even I wrote writeRead to command line and highlight it and clicked F1, no help information occurred. Now it did.
Thank you very much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by