Top 5% contributor
I'm assuming that you are using a .wav file. First you will want to use |wavread| to read the audio data into Matlab. Then you...
Answered 1 month ago
What is the name of your m file? It may be that the m file is not in the MATLAB path.
Answered 3 years ago
You need to pass the data. You can use ASSIGNIN as the comment above suggested, or save the data in the handles structure and u...
You can either use csvread or textscan. With csvread, you can use:
data = csvread('xxx.csv', 9, 0)
var1 = data(:,1);
Answered 4 years ago
I have a structure array called Xdata and a cell array called Ydata of the same lengths. Each Ydata depends on the date that Xd...
Asked 4 years ago
Is there a way to hack imellipse such that I can draw an ellipse and then change the angle so that major and minor axes do not j...
Asked 3 years ago
I'm trying to read data from a text file, do some data analysis, save the results in a dataset, and export my dataset into a .da...
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...
2 months ago
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
Remove the nth column from input matrix A and return the resulting matrix in output B.
A = [1 2 3; 4 5 6];
5 months ago
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.]
9 months ago
Find the peak values in the signal. The peak value is defined as the local maxima.
x= [1 12 3 2 7 0 3 1 19 7];
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
11 months ago
Regardless of input, output the string 'yes'.
12 months ago
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...
3 years ago
Try out this test problem first.
Given the variable x as your input, multiply it by two and put the result in y.
I'm having a bit of trouble understanding what you want to do with your GUIs. If you want to get the image from the first GUI,t...
Can nested functions be used in GUIs that are generated using guide?
If you have the Image Processing Toolbox, then imfill should work in this case. I tried replicating your code here:
A = [...
You can probably use the *diff* function to find the step changes, so that for the 1st column:
mark = diff(column1);
Join the conversation