Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

"index exceeds matrix dimensions" when I connect my Raspberry Pi model B to Matlab2013b.

조회 수: 1(최근 30일)
Could please someone help me with this error?
  댓글 수: 3

답변(1개)

Murat Belge
Murat Belge 2014년 12월 10일
Robert:
You can install MATLAB Support Package for Raspberry Pi without the Simulink Support package. Just uncheck Simulink support package in the installer GUI.
What network configuration did you choose when connecting your Raspberry Pi to the network (in the "Configure network" window)?
Work-around: If you created the SD card for the Raspberry Pi, just skip the "Connect the Raspberry Pi Hardware" GUI by clicking "Cancel" button. Then on the MATLAB command line execute:
>> raspi.internal.discoverIpAddress
ans =
Hostname: 'raspberrypi-RqgddnxxMD'
IpAddress: 'xxx.xxx.xx.xx'
The command above should display the IP address of your Raspberry Pi. Using this IP address, execute the following:
>> rpi = raspi('<IP address of your Raspberry Pi>')
Once you can establish the connection, you should be able to run Simulink or MATLAB examples for Raspberry Pi.
  댓글 수: 2
Eric Bott
Eric Bott 2015년 4월 29일
Further experimentation reveals that it is only when the pi is found on the network that this error appears. If the pi is disconnected from the network, then the Raspberry Pi detection process times out without event.

Community Treasure Hunt

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

Start Hunting!

Translated by