已回答
In this question, would dig be 2 inputs, such as 91 and 99? And lim can be any number the user calls?
hi champions2015 this is John BG <jgb2012@sky.com> the following is a slight variation of what's been asked, this function...

6 years 前 | 0

已回答
how to calculate the distances between pairwise coordinates using loops? Please help me...
Yavuz In this question you have only 3 points, but you may need more. The function combinator.m is really useful when the ...

6 years 前 | 1

| 已接受

已回答
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...

6 years 前 | 1

| 已接受

已回答
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 ...

7 years 前 | 0

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 2

已回答
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...

7 years 前 | 0

| 已接受

已回答
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*...

7 years 前 | 1

已回答
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...

7 years 前 | 0

已回答
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 years 前 | 0

| 已接受

已回答
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 years 前 | 1

已回答
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...

7 years 前 | 0

| 已接受

已回答
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 ...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 5

已回答
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...

7 years 前 | 1

已回答
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)...

7 years 前 | 2

| 已接受

已回答
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 ...

7 years 前 | 0

已回答
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 ...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

已回答
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...

7 years 前 | 0

| 已接受

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 1

| 已接受

已回答
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...

7 years 前 | 0

提问


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

7 years 前 | 0 个回答 | 0

0

个回答

已回答
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 ...

7 years 前 | 0

已回答
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 ...

7 years 前 | 4

加载更多