Answered
how to add harmonics to a sine wave ?
Mmm, actually is very easy. Just add them to the original signal: % Sampling fs = 1000; % Sampling rate [Hz] Ts =...

13 years ago | 12

| accepted

Answered
how to share data between callback functions in a GUI
When you wish to have variables that have an scope (that means that are "visible") in all functions of the GUI, you should store...

13 years ago | 16

| accepted

Answered
Median filter
To understand the medial filter, maybe it is better if we start in 1D. Let's suppose the following array: a = [3 2 1 6 5...

13 years ago | 4

| accepted

Answered
MATLAB background imshow image.
I have tested the following code and it works. Add it to your own. % In the pushbutton3 callback handles.output = hObj...

13 years ago | 0

| accepted

Answered
figure won't come up after using plot
You could try: x = 1:1 0; y = 3*x; gcf; plot(x,y); Give it a try ;-) !

13 years ago | 0

Answered
How to find the max, the min, and the mid value without using built-in functions?
I suppose you just put the two pieces of code together, which won't work, because the first one is to get the mid value _with_ a...

13 years ago | 0

| accepted

Answered
regarding conversion of time domain data to frequency domain having large values like 4096
Well, it all depends on what you want. At first glance, I suppose using all 4096 values will be correct: % Suppose you have...

13 years ago | 0

Answered
figure won't come up after using plot
Have you tried opening a figure "by hand"? noFigure = 1; figure(noFigure); x = 1:10; y = 3*x; plot(x,y); Hop...

13 years ago | 0

Answered
How do I write the code for a RC (Raised Cosine) filter?
I suggest you to use MATLAB's Filter Design and Analysis Tool. Just type in the console fdatool You can select the fil...

13 years ago | 1

Answered
How to attach/call a different gui in the main gui -when the user click on menu options
Quan Quach has an excellent tutorial regarding this issue <http://blinkdagger.com/matlab/matlab-gui-using-a-sub-gui-to-manage-se...

13 years ago | 0

Answered
Sine with variable frequency
I suggest you to check the function chirp help chirp I think this is exactly what you need. Hope it helps ;-) !

13 years ago | 0

Answered
Butterworth filter: Use and domain types.
# Yes, you can do this in time domain. If you want a further, deeper, analysis, you would need to do a frequency domain analysis...

13 years ago | 0

| accepted

Answered
Polyfitting warning
Mmm, there is a cheap way: try % The code with the polyfit function goes here catch end However I really rec...

13 years ago | 0

Answered
zero fill
You can try something like this: oldMatrix = ones(42,52); % The original matrix newMatrix = zeros(42,60); % The new mat...

13 years ago | 6

| accepted

Answered
Help me with tables and popup menu!!
In the popup menu callback, you should include something like this: handles.output = hObject; noRows = get(handles.p...

13 years ago | 1

Answered
plotting in gui
Have you tried using axes? axes(mydata.axes_row11); plot(1,1); axes(mydata.axes_row12); plot(1,2); Hope...

13 years ago | 0

Answered
GUI Creation
You can use an "Input Dialog Box" with the function inputdlg. For example, suppose you want a dialog box with two questions a...

13 years ago | 0

Answered
For and Break ; in Guide
Hello, Quan Quach has an excellent tutorial regarding this issue. I this this is just what you need: http://blinkdagger.c...

13 years ago | 1

| accepted