Question

using fscanf to sort x and y values into vectors

I have attached the data file I am referencing. I need to separated the x-values and the y-values into two separate vectors. Thi...

22 days ago | 1 answer | 0

Question

Finding certain data in a data structure

Here is the full question: The attached data file ‘donors.dat’ stores blood donor information for a biomedical research company....

28 days ago | 1 answer | 0

Question

Drawing a square with a circle using a function.

How would I write a function with the requirements down below: The function takes at least one input argument: the size of the ...

1 month ago | 1 answer | 0

Question

GUI red, blue, and green channels

I'm working on a problem involving opening an image in a GUI and show it in an axes. I also need to show 3 images for the red, g...

1 month ago | 1 answer | 0

Question

GUI axes question, need help having a minimal and maximal edit box for the x axes values

How would I be able to change the value of the x axes in a GUI for a plot using two edit boxes-a minimal x value box and a maxim...

1 month ago | 1 answer | 0

Question

Adding 3 images to a GUI showing the red, green, and blue channel of an image

Write a GUI based Matlab program to open a true-color image, display the image, then show the red, green and blue channel of the...

1 month ago | 1 answer | 0

Question

Changing axes values in a GUI

Write a GUI function to plot any user entered 1D function as shown below. User uses the edit text box to enter a function, then ...

1 month ago | 0 answers | 0

Question

Write a function to show a square “random” image. The function will take in “at least” one input argument which is the size of the image in pixels. As a default, the image will be shown in black-white. If a second input argument is provided, it will

This is what I have so far: function week7hw1(pixels, varargin) %This function will receive the size of the pixels as an input...

1 month ago | 2 answers | 0

Question

A file called avehighs.dat stores the average high temperatures for each month for a year (rounded to integers). The first column of the data stores the zip code, the 2nd to 13th columns store 12 temperatures.

Here is the complete question: A file called avehighs.dat stores the average high temperatures for each month for a year (round...

2 months ago | 2 answers | 0

Question

Write a function ShowPrimes(n) that will find all prime numbers between 1 and n and return them as a vector. Do this using a for loop. Hint: use isprime(x) to check whether x is a prime number. As an example, >> primes=ShowPrimes(20) primes =

I'm having some issues with this problem. So far, I have written: function vec=ShowPrimes(n) %Creates a vector of all of the p...

2 months ago | 1 answer | 0