Community Profile

### Glasgow Caledonian University

Last seen: 4 månader ago Active since 2013

Python/MATLAB, AI, Deep learning, Signal & Image processing, Networking, Cybersecurity, Wireless communication

Programming Languages:
Python

All

#### Content Feed

View by

How to get image in RGB
Hi I Can't find _*gray2rgb*_ function in MATLAB documentation! What does that do exactly? Have a look at this link, it may h...

ungefär 6 år ago | 0

How to plot frequency spectrum of a signal in matlab?
Hi there! I don't know why your instructor didn't like it! Maybe it's missing a division and he is picky on that! fftNo...

mer än 7 år ago | 1

How to plot 2 histograms on the same axis?
Hi, Create a figure before using hist, create an axes in the figure and get its handle. Use hold command to allow multiple gr...

mer än 7 år ago | 0

How to design a high pass filter and test the filter by a signal
Hi, Type fdatool in the MATLAB command window. It opens the Filter Designa and Analysis window, where you can design your ...

mer än 7 år ago | 0

error while evaluating uimenu callback( in fuzzy toolbox)
Sounds like a terrible situation. You can't even open it to edit things. Is it possible to make a definition/coding violation in...

mer än 7 år ago | 1

| accepted

How change somme values on a matrix?
Hi Biza, It sounds like you want to do thresholding. A = A>20; % this makes A a logical matrix of 0 and 1, 1 is when A <...

mer än 7 år ago | 0

| accepted

I think my answer is not correct for this question, anyone can help me to check it? Thanks
Hi, It matches with your flowchart, Why do you thing it is not correct?

mer än 7 år ago | 0

| accepted

Hi, I would like to ask if my answer is correct or not, here is the question.
Hi, Looks alright. You can use xlim, ylim to limit the view and see the zero crossing location better, however assuming th...

mer än 7 år ago | 0

| accepted

I have some problem when plotting the graph, anyone can help? Thanks
Hi, You need to store y first. x = -10:10; for i = 1:numel(x) y(i) = 2^(0.4*x(i))+5 end plot(x,y,'g')

mer än 7 år ago | 0

| accepted

Cross-correlation for signal matches
Dear Steven, Here is a example code i used to find the phase-shift between two different signals. I used cross-correlation to...

mer än 7 år ago | 0

How can I fix an Out of Memory error?
Hello Hadi, Mainly you're running out of RAM memory. You may have to modify your code to be able to run it. There are diff...

mer än 7 år ago | 0

| accepted

How to have a GUI perform an action only when a pushbutton is pressed?
Hi Sicilian, I was searching how to do the same thing a few months ago. You want the motor to be on while you're holding t...

mer än 7 år ago | 1

Matlab - FFT of Gaussian - Equivalency
I'm not sure what you're intending to do. Do you know about fftshift() command? To me it sounds like you're having problem...

mer än 7 år ago | 0

how can I add zeros elements to a matrix?
Hi Moein, there are different ways to do this. One of which is to define a fully zero matrix with all zeros newMatrix = ...

mer än 7 år ago | 6

| accepted

how to find variance of audio signal?
Hi, You can read the wav file with wavread() command and find the variance with var() command. Hope that's enough

mer än 7 år ago | 0

using subplot(m,n,p,ax) in a loop
Just put figure outside the loop. If you want to change each axis or maybe axes properties, use xlim ylim in your for loop y...

mer än 7 år ago | 0

drawing a triangular wave
Hi Soloby, You just asked a question on fuzzy logic, I assume this is in the same area! Have you tried trimf or trapmf mem...

mer än 7 år ago | 0

| accepted

Fuzzy Operation (Add, subtract, multiply, and divide) without using the built-in matlab function?
Hi Soloby, What's y all of a sudden?!

mer än 7 år ago | 0

averages of a matrix
Hi Anthony, This is very basic, please read more output = mean(A.*B) That's all

mer än 7 år ago | 1

How to write a 'text' at the end of another one
Hi Alessandro, You have to use text, see matlab help for text please text(Xposition,Yposition,'Your String!'); To plo...

mer än 7 år ago | 0

Hi. i want to plot some thing like this picture how can i do this ?
You may have to do this with two plot commands, one to create a red line one to create a gigantic square, which you can do...

mer än 7 år ago | 0

FFT of a selected range of points
Dear Aqua, Please be aware. You probably going to need a window! If you only take the fft of a section without properly sepa...

mer än 7 år ago | 0

what does blue colour in frequency representation of audio signal indicates?
You are plotting a stereo signal with 2 channels. One channel is in green and one is in blue. Plot them in separate figure...

mer än 7 år ago | 0

How to fit a mixture of uniform and gaussian distributions
Hi Maria, What is a uniform distribution? something like a DC offset? Is it like a constant added to the Gaussian? See if ...

mer än 7 år ago | 0

Find if a point lies bellow or above a curve
Hi TY Yes, you can easily do this. I actually done it before, I had series of points and I draw a line with mouse (2 points) ...

mer än 7 år ago | 0

| accepted

error when trying to fit a custom function using cftool
Hi Guys, Well done for providing the equations. It worked fine for me, I attached an image <</matlabcentral/answe...

mer än 7 år ago | 0

Read a binary file of format float
Hi Alon, As a C# programmer you know that "it fails" is not enough! <http://uk.mathworks.com/help/matlab/ref/fopen.html ha...

mer än 7 år ago | 0

How to Write Table to Excel with headers
Hi Samantha, I usually use xlswrite() which then I add the headers as soon as I generate the file. You can give it a try i...

mer än 7 år ago | 0

filtering Recorded Lung Noise
Hi, Have you tried filtering your data, very simply with a low pass filter? I've attached a recursive single pole low pass...

mer än 7 år ago | 0

| accepted