Skip to content

Instantly share code, notes, and snippets.

@matiskay
Created October 26, 2015 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiskay/0f4290dfc5bc80ee0e7a to your computer and use it in GitHub Desktop.
Save matiskay/0f4290dfc5bc80ee0e7a to your computer and use it in GitHub Desktop.
## Plotting the Singular values for each matrix
for (index in 1:8) {
jpeg(paste0('plots/image-', index, '.jpg'))
plot(1:length(singular.values), singular.values[index,], main = paste("Image", index), xlab = "Singular Value ID", ylab = "Singular Value")
dev.off()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment