Community Profile

# Walter Roberson

##### Last seen: Today
45,836 total contributions since 2011

I do not do free private consulting. If you want to bring my attention to something, send a link to the MATLAB Answers location.

View all

Contributions in
View by

fzero of function 3 variables
fzero() is designed for single functions of one variables that return scalar values. fsolve() from the Optimization toolbox can...

38 minutes ago | 0

how to prevent printing output of Neural Network in command line
P = [1 2 3]; T = [2.0 4.1 5.9]; evalc('net = newrb(P,T)');

5 hours ago | 0

| accepted

Getting a warning when I fplot
fplot passes a vector of values into the function, so in C, T will be a vector of values. But you are using T as the upper bound...

8 hours ago | 0

imshow(uint8(imagematrix)) and imshow(int8(imagematrix)) gives different results although pixel values are between 0-255
>> uint8(255) ans = uint8 255 >> int8(uint8(255)) ans = int8 127 When you int8() data that is in the range 0...

9 hours ago | 0

Is there a way to find a global minimum using genetic algorithm?
Genetic algorithms use the function handles they are given as "black boxes" (ga cannot examine how the function works.) In all a...

10 hours ago | 1

Ode45, evolution giving NaNs after some time, with no evidence of singularities in the equations
Your first order, e1, gets to be more than 1.0, and then the sqrt(1-x^2) gets to be complex. Problems accumulate from there. Wh...

1 day ago | 1

| accepted

Automatically create variations of the same variable?
Do not use separate variables. use a cell array. You can have a table of range entries and loop through a list of check boxes, p...

2 days ago | 1

| accepted

Skipping for loop with continue does not work
See http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F

2 days ago | 1

for loops and if statements
if ys >= 100 ys is a vector. When you compare a vector to a value, the result is a logical vector of results. When you...

2 days ago | 0

Increase CPU Speed - MAC
Is there any possibility to increase the number of cores you use by default? No, there is no such possibility. MATLAB's execut...

2 days ago | 0

| accepted

FMINUNC cannot continue.
http://www.mathworks.com/help/matlab/math/parameterizing-functions.html

2 days ago | 0

| accepted

How would I create a loop where I exclude values greater than a certain value and re-run it repeatedly?
how to set the start point for the fit function https://www.mathworks.com/matlabcentral/answers/407746-setting-your-own-start-p...

2 days ago | 0

How to automize removal of NaN's for a structure?

2 days ago | 1

| accepted

Reading .txt files and replace lines from one file to another

2 days ago | 0

| accepted

how to load multiple .asc file in matlab which consists of numbers and text.

2 days ago | 0

run mbuild _setup error:Undefined function 'mbuild' for input arguments of type 'char'.
mbuild is part of the MATLAB Compiler Toolbox. You either do not have that installed, or else you do not have it licensed.

2 days ago | 0

Find certain values of a csv file

2 days ago | 1

| accepted

while loop ends before the question is answered?
while r>=50 || r<=100 Suppose r is 73. Then r>=50 is true so the loop continues. Suppose r is -6. Then r>=50 is false, but r<=...

2 days ago | 0

Mismatched plot when editing the x-axis
out.x(:,1) is not evenly spaced. Plot it by itself and you will see. Or look at diff(out.x(:,1))

2 days ago | 0

| accepted

I have a GigE1 and a GigE2 port on back of my camera. whats the difference? Which one do i use?
For that device (but not in general) GigE1 is for the color sensor and GigE2 is for the NIR sensor

2 days ago | 0

Get the index with the values in matlab plot
The basic technique is to take the data coordinates you get back, and calculate the distance to all coordinates in the graphics ...

2 days ago | 0

I think this is a documentation error
No, ldivide says B.\A divides each element of A by the corresponding element of B whereas ldivide says A./B divides each elem...

3 days ago | 1

Not enough input arguments
You would get that error if you are passing in a function handle as the first parameter, and the function handle requires more t...

3 days ago | 0

Get substring from text
S = {'Hi B', 'Hi A', 'Hey guys D can''t come', 'Too Bad C', 'I Feel bad for D'}; names = {'A', 'B', 'C', 'D'}; namepattern =...

3 days ago | 0

| accepted

How to save UIFIGURE or UITABLE as a jpg?
it seems uitable cannot (anymore) be added to a figure but must be added to uifigure That is not correct. uit = uitable(figure...

3 days ago | 0

Some aspects of the array syntax are great, others are a bit puzzling
[1 2 [3 4] 5] is short for horzcat(1, 2, [3 4], 5) which in turn would be short for horzcat(1, 2, horzcat(3, 4), 5) and the...

3 days ago | 0

| accepted

Encode and Decode Problem

3 days ago | 0

| accepted

Plugging in matrix values into function handle of more than 1 variables
x=sym('x',[1 9]); x0=sym('x0',[1 9]); Yr=sym('Yr',[3 3]); Yi=sym('Yi',[3 3]); f(1,1)=x(1)+Yr(2,2)*x0(3)+Yi(1,2)*x(4)+Yr(3,3)...

3 days ago | 0

| accepted

DataStore function returns an error
Notice from the header that this is R2018b. Notice from the output that R2018b does not have a problem with that command.

4 days ago | 0