642 total contributions since 2014

MIET 36486065

MEng Telecommunication Systems

UPC ETSETB Barcelona

Answered

f(x) = e^x-3x matlab code

Hi Adomas Bazinys this is John BG <jgb2012@sky.com> What you want to do is, the way you want to do it, indeed good exercis...

f(x) = e^x-3x matlab code

Hi Adomas Bazinys this is John BG <jgb2012@sky.com> What you want to do is, the way you want to do it, indeed good exercis...

2 hours ago | 0

Answered

second condition never gets executed - elseif (temp == 13.2) tried to run in 13b, 15b online edittors as well, any explanations or its a bug?

Hi Rohit Kumar Gupta This is John BG <jgb2012@sky.com> As mentioned by the previous contributors, when using a float for ...

second condition never gets executed - elseif (temp == 13.2) tried to run in 13b, 15b online edittors as well, any explanations or its a bug?

Hi Rohit Kumar Gupta This is John BG <jgb2012@sky.com> As mentioned by the previous contributors, when using a float for ...

1 day ago | 0

Answered

How a binary image can be divided into four equal parts using loop ?

Hi Zara Khan this is John BG <jgb2012@sky.com> I use a for loop to answer your question, as requested, and I have added th...

How a binary image can be divided into four equal parts using loop ?

Hi Zara Khan this is John BG <jgb2012@sky.com> I use a for loop to answer your question, as requested, and I have added th...

1 day ago | 0

Answered

I have a nc file with 145 long, 129 lat and 10227 time values, I want to change this daily data (10,227) to monthly values. What could be easy way?

Hi Neha Kanda this is John BG <jgb2012@sky.com> 1. why more longitudes than latitudes: are there missing latitudes, or...

I have a nc file with 145 long, 129 lat and 10227 time values, I want to change this daily data (10,227) to monthly values. What could be easy way?

Hi Neha Kanda this is John BG <jgb2012@sky.com> 1. why more longitudes than latitudes: are there missing latitudes, or...

1 day ago | 0

| accepted

Answered

What is wrong with my bisection method code?

Hi Microwave97 This is John BG <jgb2012@sky.com> Now your code doesn't show syntax errors: f=@(x) exp(2*x) - 3*x -4...

What is wrong with my bisection method code?

Hi Microwave97 This is John BG <jgb2012@sky.com> Now your code doesn't show syntax errors: f=@(x) exp(2*x) - 3*x -4...

2 days ago | 0

Answered

How to get matrix from plot ???

Hi Mohammad This is John BG <jgb2012@sky.com> 1. Allow me to start with the same image you have supplied op.jpg c...

How to get matrix from plot ???

Hi Mohammad This is John BG <jgb2012@sky.com> 1. Allow me to start with the same image you have supplied op.jpg c...

2 days ago | 0

| accepted

Answered

HELP REQUIRED IN PROGRAMMING

Hi Adarsh this is John BG <jgb2012@sky.com> there's a very easy way to obtain the variables you need with command *evalin*...

HELP REQUIRED IN PROGRAMMING

Hi Adarsh this is John BG <jgb2012@sky.com> there's a very easy way to obtain the variables you need with command *evalin*...

4 days ago | 1

| accepted

Answered

Hello everyone! I need your valuable help here.

Hi again Engdaw Chane this is John BG <jgb2012@sky.com> Mr D'Errico thanks for the correction, but I insist on the point t...

Hello everyone! I need your valuable help here.

Hi again Engdaw Chane this is John BG <jgb2012@sky.com> Mr D'Errico thanks for the correction, but I insist on the point t...

4 days ago | 0

Answered

Create a matrix with a for loop

Hi Colin this is John BG jgb2012@sky.com 1. is there need for the for loop? i = -3:.5:2; k = 10.^i; ...

Create a matrix with a for loop

Hi Colin this is John BG jgb2012@sky.com 1. is there need for the for loop? i = -3:.5:2; k = 10.^i; ...

7 days ago | 0

Answered

how to solve a Plotting FFT problem

Hi Mohamed this is John BG <jgb2012@sky.com> if the time vector does not have a small enough step the output will show a s...

how to solve a Plotting FFT problem

Hi Mohamed this is John BG <jgb2012@sky.com> if the time vector does not have a small enough step the output will show a s...

7 days ago | 0

Answered

wavelet based contourlet transform

Nadia try the following 1. install this contourlet toolbox, by Minh Do and Martin Vetterli <http://uk.mathworks.com/...

wavelet based contourlet transform

Nadia try the following 1. install this contourlet toolbox, by Minh Do and Martin Vetterli <http://uk.mathworks.com/...

1 month ago | 4

| accepted

Answered

When to use 10 log 10 and 20 log 10 while calculating psnr of image ?

Hi Prashali Deshmukh this is John BG <jgb2012@sky.com> . 1. in MATLAB there is no *log20* indeed one can write a fun...

When to use 10 log 10 and 20 log 10 while calculating psnr of image ?

Hi Prashali Deshmukh this is John BG <jgb2012@sky.com> . 1. in MATLAB there is no *log20* indeed one can write a fun...

1 month ago | 0

Answered

How can I give my x-axis predetermined values (a year)

Hi Jan van den Scheur this is John BG <jgb2012@sky.com> The problem with Star Strider's suggestion is that the class *time...

How can I give my x-axis predetermined values (a year)

Hi Jan van den Scheur this is John BG <jgb2012@sky.com> The problem with Star Strider's suggestion is that the class *time...

1 month ago | 0

| accepted

Answered

How do I stack 10 shots from seismic source to produce a resultant signature with greater signal/noise ratio?

Hi David Norris this is John BG <jgb2012@sky.com> Calculate the average pulse repetition with a squelch and then chop the ...

How do I stack 10 shots from seismic source to produce a resultant signature with greater signal/noise ratio?

Hi David Norris this is John BG <jgb2012@sky.com> Calculate the average pulse repetition with a squelch and then chop the ...

1 month ago | 0

Answered

error in corr2 function in matlab

Hi Shoba Mohan this is John BG <jgb2012@sky.com> Since the actual size of the input images, both the references and the un...

error in corr2 function in matlab

Hi Shoba Mohan this is John BG <jgb2012@sky.com> Since the actual size of the input images, both the references and the un...

1 month ago | 0

Answered

System of inequalities using logical operators

Hi Mr Dimopoulos this is John BG <jgb2012@sky.com> 1. The Intersections can be found the following way: For 1st f...

System of inequalities using logical operators

Hi Mr Dimopoulos this is John BG <jgb2012@sky.com> 1. The Intersections can be found the following way: For 1st f...

1 month ago | 0

Answered

Adding an extra column

Hi this is John BG <jgb2012@sky.com> Instead of U=(sqrt(S)/n).*((B.*H)/(B+(2.*H))).^(2/3) use U=(sq...

Adding an extra column

Hi this is John BG <jgb2012@sky.com> Instead of U=(sqrt(S)/n).*((B.*H)/(B+(2.*H))).^(2/3) use U=(sq...

1 month ago | 1

Answered

Error using surf X, Y, Z, and C cannot be complex error

Hi this is John BG <jgb2012@sky.com> The problem is not in solving x = 0:0.8:pi; A = sin(x).^(1/3) B = cos(x)...

Error using surf X, Y, Z, and C cannot be complex error

Hi this is John BG <jgb2012@sky.com> The problem is not in solving x = 0:0.8:pi; A = sin(x).^(1/3) B = cos(x)...

1 month ago | 1

| accepted

Answered

Solving for Coefficient in Nonlinear 2nd-Order Differential Equation

Hi Alexander this is John BG <jgb2012@sky.com> 1. One of the tools available is MuPAD, start MuPAD with mupad ...

Solving for Coefficient in Nonlinear 2nd-Order Differential Equation

Hi Alexander this is John BG <jgb2012@sky.com> 1. One of the tools available is MuPAD, start MuPAD with mupad ...

1 month ago | 0

Answered

solving equation in matlab

Hi Esraa this is John BG <jgb2012@sky.com> *1. Check Real and Imaginary* Since the equation is complex, it's useful to ...

solving equation in matlab

Hi Esraa this is John BG <jgb2012@sky.com> *1. Check Real and Imaginary* Since the equation is complex, it's useful to ...

1 month ago | 0

Answered

Checking repetition of random data

Hi Ahmed this is John BG <jgb2012@sky.com> so far, the supplied answers increase the probability to generate all-different...

Checking repetition of random data

Hi Ahmed this is John BG <jgb2012@sky.com> so far, the supplied answers increase the probability to generate all-different...

1 month ago | 0

Answered

searching row indices in a matrix

Hi Chaitanya to meet the requirement I want the row indices in B which correspond to a vectors. you may want to conside...

searching row indices in a matrix

Hi Chaitanya to meet the requirement I want the row indices in B which correspond to a vectors. you may want to conside...

1 month ago | 0

Answered

Here is the entire code. Trying to fit the data into a piecewise exponential fucntion and testing the maximum likelihood. Where is the mistake. Could not figure it out. Help please..

Hi Marwan this is John BG <jgb2012@sky.com> when correcting the following line [mldln,conf1] = mle(xdata,'pdf',@pdf...

Here is the entire code. Trying to fit the data into a piecewise exponential fucntion and testing the maximum likelihood. Where is the mistake. Could not figure it out. Help please..

Hi Marwan this is John BG <jgb2012@sky.com> when correcting the following line [mldln,conf1] = mle(xdata,'pdf',@pdf...

1 month ago | 0

| accepted

Answered

Creating a script that finds all triple of the Pythagorean theorem.

Alec use the very useful function combinator, available from MATLAB CENTRAL, i copy it here at the end of my answer. Pyt...

Creating a script that finds all triple of the Pythagorean theorem.

Alec use the very useful function combinator, available from MATLAB CENTRAL, i copy it here at the end of my answer. Pyt...

2 months ago | 1

| accepted

Answered

How do I characterize these cells by area and diameter?

Hi Tushar this is John BG <jgb2012@sky.com> Comment: the start image of this answer is part of the batch including th...

How do I characterize these cells by area and diameter?

Hi Tushar this is John BG <jgb2012@sky.com> Comment: the start image of this answer is part of the batch including th...

2 months ago | 0

| accepted

Answered

How to plot Smith chart?

Hi Mr Taker There are many ways to plot data on MATLAB Smith charts 1.- basic plot of single impedance clc;clear all;...

How to plot Smith chart?

Hi Mr Taker There are many ways to plot data on MATLAB Smith charts 1.- basic plot of single impedance clc;clear all;...

3 months ago | 3

| accepted

Answered

calculation variable x besselj

Hi Thomas this is John BG <jgb2012@sky.com> One way to solve this equation is with the function *intersections.m* by Mr Sc...

calculation variable x besselj

Hi Thomas this is John BG <jgb2012@sky.com> One way to solve this equation is with the function *intersections.m* by Mr Sc...

4 months ago | 0

Question

GCHQ puzzle for IET readers October 2017, any one with same results?

Hi this is John BG <jgb2012@sky.com> The Institute of Engineering and Technology (IET <http://www.theiet.org/ www.theiet./...

4 months ago | 0 answers | 0

Submitted

hints for IET GCHQ readers puzzle October 2017

hints for IET GCHQ readers puzzle October 2017

4 months ago | 0 downloads |

Answered

Real time detect keypress

Hi Michael this is John BG jgb2012@sky.com 1. Let me show you how to use figure to capture keystrokes ...

Real time detect keypress

Hi Michael this is John BG jgb2012@sky.com 1. Let me show you how to use figure to capture keystrokes ...

5 months ago | 0