Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial 4 Matlab OAT error #64

Open
JosephDVL opened this issue Oct 18, 2018 · 0 comments
Open

Tutorial 4 Matlab OAT error #64

JosephDVL opened this issue Oct 18, 2018 · 0 comments

Comments

@JosephDVL
Copy link
Contributor

Running CARLsim4 with Matlab 2017b, I get the following error when trying to run the OAT with the smooth output:

Expected one output from a curly brace or dot indexing expression, but there were 0 results.

Error in NetworkMonitor/setGroupPlotType (line 609)
        obj.groupMonObj{gId}.setDefaultPlotType(plotType);

Error in demoSmooth (line 27)
NM.setGroupPlotType(-1, 'heatmap')

I think that it could be fixed by updating demoSmooth.m with the following patch:

*** doc/source/tutorial/4_image_processing/scripts/demoSmooth.m.orig	2018-10-18 11:23:24.753124357 -0700
--- doc/source/tutorial/4_image_processing/scripts/demoSmooth.m	2018-10-18 11:23:28.205065731 -0700
*************** createStimFromImage('../input/carl.jpg',
*** 24,29 ****
  % Plot network activity
  clear NM
  NM = NetworkMonitor('../results/sim_smooth.dat')
! NM.setGroupPlotType(-1, 'heatmap')
  NM.plot
  
--- 24,29 ----
  % Plot network activity
  clear NM
  NM = NetworkMonitor('../results/sim_smooth.dat')
! NM.setGroupPlotType(NM.groupNames{end}, 'heatmap')
  NM.plot

However, I'm not sure if the root cause is the version of Matlab that I am using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant