Community Profile

photo

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.

Contact

Walter Roberson's Badges

  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • Solver
  • First Review
  • 36 Month Streak
  • Most Accepted 2016
  • Most Accepted 2015
  • Most Accepted 2011
  • Most Accepted 2012
  • Most Accepted 2013
  • Thankful Level 4
  • Grand Master
  • Revival Level 4
  • Knowledgeable Level 4

View all

Contributions in
View by

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

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

2 days ago | 0

| accepted

Answered
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

Answered
How to automize removal of NaN's for a structure?
You can adapt the code I posted at https://www.mathworks.com/matlabcentral/answers/514678-how-do-i-remove-all-fields-of-a-struct...

2 days ago | 1

| accepted

Answered
Reading .txt files and replace lines from one file to another
lines1 = regexp(fileread('File1.txt'), '\r?\n', 'split'); lines2 = regexp(fileread('File2.txt'), '\r?\n', 'split'); replaced...

2 days ago | 0

| accepted

Answered
how to load multiple .asc file in matlab which consists of numbers and text.
I showed you in https://www.mathworks.com/matlabcentral/answers/501609-how-to-read-a-really-large-lines-of-data-ascii-file-forma...

2 days ago | 0

Answered
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

Answered
Find certain values of a csv file
t=load('mariana_depth - Copy.csv'); mean(t(t<-6000))

2 days ago | 1

| accepted

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
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

Answered
Encode and Decode Problem
fread() returns a column vector by default. c = fread(fid) .';

3 days ago | 0

| accepted

Answered
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

Answered
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

Answered
Understanding how to use the function griddata
graph = xlsread('Path3.xlsx'); x=graph(:,1); y=graph(:,2); z=graph(:,3); [X,Y]= meshgrid(x,y); Z = griddata(x,y,z,X,Y); su...

4 days ago | 0

| accepted

Load more