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

Adam
Adam 2017년 6월 9일
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.
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 2017년 6월 12일
편집: Adam 2017년 6월 12일
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 2017년 6월 15일
편집: Jakub Richter 2017년 6월 15일
oh I see. I don´t know how could I overlook it.
Thanks

댓글을 달려면 로그인하십시오.

 채택된 답변

Jan
Jan 2017년 6월 9일

0 개 추천

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

Jakub Richter
Jakub Richter 2017년 6월 11일
편집: Walter Roberson 2017년 6월 11일
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?
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.
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

질문:

2017년 6월 9일

댓글:

2017년 6월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by