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...

ungefär 5 år 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)...

ungefär 5 år ago | 2

| 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 ...

ungefär 5 år 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 ...

ungefär 5 år 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...

ungefär 5 år 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...

ungefär 5 år 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...

ungefär 5 år 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...

ungefär 5 år 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...

ungefär 5 år ago | 1

| 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...

mer än 5 år 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./...

mer än 5 år ago | 0 answers | 0

Submitted

hints for IET GCHQ readers puzzle October 2017

hints for IET GCHQ readers puzzle October 2017

mer än 5 år ago | 1 download |

Answered

Override default behavior of Shift+F10

Hi Rayle this is John BG <jgb2012@sky.com> the following only captures one keystroke at a time, but as long as the figure ...

Override default behavior of Shift+F10

Hi Rayle this is John BG <jgb2012@sky.com> the following only captures one keystroke at a time, but as long as the figure ...

mer än 5 år ago | 0

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 ...

mer än 5 år ago | 4

Answered

Question about using ODE45

Hi Nicia this is John BG <jgb2012@sky.com> 1. t is just a parameter, not the reference vector of the differential equat...

Question about using ODE45

Hi Nicia this is John BG <jgb2012@sky.com> 1. t is just a parameter, not the reference vector of the differential equat...

mer än 5 år ago | 1

Answered

how to import the output of a function displayed

Hi segun this is John BG <jgb2012@sky.com> Let be your data for instance A=randi([-1e4 1e4],5,1) 1. choose the Exc...

how to import the output of a function displayed

Hi segun this is John BG <jgb2012@sky.com> Let be your data for instance A=randi([-1e4 1e4],5,1) 1. choose the Exc...

mer än 5 år ago | 0

| accepted

Answered

MATLAB plotting problems...

Hi David this is John BG <jgb2012@sky.com> your code doesn't plot because m is scalar while y is a vector. command plot...

MATLAB plotting problems...

Hi David this is John BG <jgb2012@sky.com> your code doesn't plot because m is scalar while y is a vector. command plot...

mer än 5 år ago | 1

| accepted

Answered

How to use matlab to count these particles?

Hi Tushar this is John BG <jb2012@sky.com> 1.- Acquiring petri image, using green layer only, manually binarising the wh...

How to use matlab to count these particles?

Hi Tushar this is John BG <jb2012@sky.com> 1.- Acquiring petri image, using green layer only, manually binarising the wh...

mer än 5 år ago | 8

Answered

4 non linear simultaneous equations

Hi Misha this is John BG <jgb2012@sky.com> 1. define the function to solve with in for instance a separate file fu...

4 non linear simultaneous equations

Hi Misha this is John BG <jgb2012@sky.com> 1. define the function to solve with in for instance a separate file fu...

mer än 5 år ago | 0

| accepted

Answered

I have a question in image processing, this code shows how to add noise to the image and then retrieve it again ... The problem when retrieving the image error occurs and show the image that was retrieved in white

Hi Ahmed I have applied some changes to your code but perhaps you would like to consider using a different filter. attache...

I have a question in image processing, this code shows how to add noise to the image and then retrieve it again ... The problem when retrieving the image error occurs and show the image that was retrieved in white

Hi Ahmed I have applied some changes to your code but perhaps you would like to consider using a different filter. attache...

mer än 5 år ago | 0

| accepted

Answered

Euclidean distance (ED)calculation in matlab

Hi TUSHAR MURATKAR this is John BG <jgb2012@sky.com> I have written a scaled solution with only 12 rows 1. the Eucli...

Euclidean distance (ED)calculation in matlab

Hi TUSHAR MURATKAR this is John BG <jgb2012@sky.com> I have written a scaled solution with only 12 rows 1. the Eucli...

mer än 5 år ago | 0

| accepted

Answered

Generating unique random numbers less than 1 in matrix

Hi Hany Salem this is John BG <jgb2012@sky.com> 1. Initial consideration The 'shoot first and check later' approach...

Generating unique random numbers less than 1 in matrix

Hi Hany Salem this is John BG <jgb2012@sky.com> 1. Initial consideration The 'shoot first and check later' approach...

mer än 5 år ago | 1

Answered

String not read correctly

Hi Lmm3 this is John BG jgb2012@sky.com Why not simply using a switch? b = 'AGA'; switch b case {'UUU' ...

String not read correctly

Hi Lmm3 this is John BG jgb2012@sky.com Why not simply using a switch? b = 'AGA'; switch b case {'UUU' ...

mer än 5 år ago | 1

Answered

need to use a function to calibrate the weight of a alkan.

Hi Kjetil Svihus This is John BG <jgb2012@sky.com> The function you ask for has already been implemented by Gerhard Nieuwe...

need to use a function to calibrate the weight of a alkan.

Hi Kjetil Svihus This is John BG <jgb2012@sky.com> The function you ask for has already been implemented by Gerhard Nieuwe...

mer än 5 år ago | 0

Answered

I am trying to do this problem, but I'm having some issues with steps 2 3 and 4. I thought I did it right, but the values stored in the "velocites" vector all share the same value and they shouldn't. Any help would be appreciated

Hi Caleb this is John BG <jgb2012@sky.com> I have reproduced the steps listed in your question, not to optimise code or sp...

I am trying to do this problem, but I'm having some issues with steps 2 3 and 4. I thought I did it right, but the values stored in the "velocites" vector all share the same value and they shouldn't. Any help would be appreciated

Hi Caleb this is John BG <jgb2012@sky.com> I have reproduced the steps listed in your question, not to optimise code or sp...

mer än 5 år ago | 0

Answered

what is the wrong in this code?

Hi Ahmed this is John BG <jgb2012@sky.com> 1. it may be that rather than real an imaginary parts, you may consider usin...

what is the wrong in this code?

Hi Ahmed this is John BG <jgb2012@sky.com> 1. it may be that rather than real an imaginary parts, you may consider usin...

mer än 5 år ago | 1

Answered

nanmean returns -Inf

Hi Balsip this is John BG <jgb2012@sky.com> 1. while A=[NaN NaN -12 NaN NaN NaN NaN -1 -5 -8 NaN NaN NaN NaN -20 N...

nanmean returns -Inf

Hi Balsip this is John BG <jgb2012@sky.com> 1. while A=[NaN NaN -12 NaN NaN NaN NaN -1 -5 -8 NaN NaN NaN NaN -20 N...

mer än 5 år ago | 1

| accepted

Answered

Can someone please provide me with the code for this plot

Hi Ajshay Verma this is John BG <jgb2012@sky.com> 1. A possible approach would be to use the common ODE tools, but, at ...

Can someone please provide me with the code for this plot

Hi Ajshay Verma this is John BG <jgb2012@sky.com> 1. A possible approach would be to use the common ODE tools, but, at ...

mer än 5 år ago | 1

| accepted

Answered

how to find the largest scalar in array with 2 ways?

Hi AnhThu Le this is John BG jgb2012@sky.com Let's say you have the following matrix A=randi([1 10],randi([1 5],1,1),...

how to find the largest scalar in array with 2 ways?

Hi AnhThu Le this is John BG jgb2012@sky.com Let's say you have the following matrix A=randi([1 10],randi([1 5],1,1),...

mer än 5 år ago | 0

| accepted

Answered

Removing like terms in a matrix

hi there this is John BG <jgb2012@sky.com> 1. the data A = [1 2 3 4 5 6 7 8 9] B = [2 4 5 8 9] 2. w...

Removing like terms in a matrix

hi there this is John BG <jgb2012@sky.com> 1. the data A = [1 2 3 4 5 6 7 8 9] B = [2 4 5 8 9] 2. w...

mer än 5 år ago | 1