Click here to Skip to main content
15,902,276 members

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
:)