답변 있음
For LSQNONLIN is it okay if the number of elements in the vector-valued function varies per iteration?
Hi Kevin, LSQNONLIN is using the values in the Fopt vector to determine the gradient, and it does this by calculating Fopt at...

거의 14년 전 | 2

| 수락됨

답변 있음
GA optimization
Use GAOPTIMSET: <http://www.mathworks.com/products/global-optimization/demos.html?file=/products/demos/shipping/globaloptim/ga...

거의 14년 전 | 0

답변 있음
GA optimization
You can create a function handle to the network and then pass that function handle into GA. Note that GA will pass in a row vec...

거의 14년 전 | 4

| 수락됨

답변 있음
fmincon and normal distribution log likelihood
Hi Jimmy, It looks like the way you have your optimization set up, you're trying to maximize the value of LL. However, all o...

거의 14년 전 | 1

문제를 풀었습니다


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

거의 14년 전

답변 있음
Convert ODE model in MATLAB to Simulink
Hi Javier, The easiest way I can think of to convert would be to use a Level 2 MATLAB S-function in Simulink. If you've neve...

거의 14년 전 | 0

| 수락됨

답변 있음
Multiple outputs from FMINSEARCH function
As long as myfun doesn't take a long time to evaluate, the simplest thing to do would be to call myfun again after the optimizat...

거의 14년 전 | 0

문제를 풀었습니다


Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

거의 14년 전

문제를 풀었습니다


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

거의 14년 전

문제를 풀었습니다


Is my wife right?
Regardless of input, output the string 'yes'.

거의 14년 전

문제를 풀었습니다


Make an N-dimensional Multiplication Table
*INSTRUCTIONS* This is a multi-dimensional variant of the normal multiplication table used to teach elementary students multi...

대략 14년 전

문제를 풀었습니다


Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

대략 14년 전

문제를 풀었습니다


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

대략 14년 전

문제를 풀었습니다


Remove the air bubbles
Given a matrix a, return a matrix b in which all the zeros have "bubbled" to the top. That is, any zeros in a given column shoul...

대략 14년 전

답변 있음
GA is not available in Optimtool
The genetic algorithm is part of the Global Optimization Toolbox, this warning leads me to believe you only have the Optimizatio...

대략 14년 전 | 0

답변 있음
add optimization plots from fmincon to custom gui axes
I'm guessing that when specifying the options structure, you are including optimplotx as a PlotFcn such as: options = opt...

대략 14년 전 | 0

답변 있음
meshgrid and griddata usage and NaN results for griddata
The GRIDDATA function is trying to use the data in x,y,vv to fit a surface and then interpolate this surface at the points speci...

대략 14년 전 | 0

답변 있음
matlab guide tool
Maybe this is what you're looking for? <http://www.mathworks.com/help/techdoc/creating_plots/f7-21193.html>

거의 15년 전 | 0

답변 있음
How can I use "dir" with multiple search strings? or join the results of two dir calls?
You can save the output of DIR as a structured array, or in your case two structured arrays that can then be combined: file...

거의 15년 전 | 0

답변 있음
Converting a problem from Mathematica to MATLAB
George, Looks like there's a problem with this line of code: LastPoint1D = @ (Walk1D) (Walk1D(end)); I believe what y...

거의 15년 전 | 0

답변 있음
Plotting multiple sets of data over the same set of discretized locations
Sean, If you're specifying a different intensity for each point, then I assume that you are plotting the data point-by-point an...

거의 15년 전 | 0

답변 있음
??? Undefined function or method 'times' for input arguments of type 'function_handle'.
Patrick, I believe that when you make calls to the functions inside of concs, you need to include the arguments for those fun...

거의 15년 전 | 3

| 수락됨

답변 있음
Conditional plotting, changing color of line based on value.
Here's a way to do it that splits the data up into 2 lines and then plots them both. Overlapping points are set to NaN so that ...

거의 15년 전 | 7