15,902,276 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13958396 (Top 2 by date)
Member 13958396
23-Aug-18 0:10am
View
Hi maybe I did not make it clear in my question. This is my first time doing matlab and I've never coded before. This was a compulsory Uni paper that I have had to take. Prior to this task I've managed to complete various other tasks but this is challenging me beyond what I've learned in the last three weeks.
This is what ive got down so far in my script file inroder to attempt to solve this problem.
function [Points] = SelectKRandomPoints (Image, K)
Image = imread('logo.jpg') %logo.jpg is the image we are dealing with
Image1 = size(Image) %This will give the size on the Image 256 x 102 x 3
This is all I understand and I dont even know if its the correct way to start. What I dont know how to do is to select a bunch of random numbers form the image size matrix. I also dont understand how to write such a code that if I input 'k' to be 5 in my function I will have 5 rows and 2 columns of random numbers.
If you could help it would be great! :) P.S. I dont want answers, just advice/guidance
Member 13958396
22-Aug-18 23:18pm
View
`That is not the case, i have no idea where to start and would appreciate some advice
:)