Community Profile

photo

Walter Roberson


41,405 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 2018
  • Most Accepted 2017
  • 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
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Does MATLAB GUIDE GUI can work standalone when installed to Raspberry Pi using Simulink?
No, the interface to Raspberry Pi from Simulink only supports displaying image frames; there is no direct plotting support. All ...

2 hours ago | 0

Answered
En-dash problem
See http://www.mathworks.com/matlabcentral/answers/54-

2 hours ago | 1

Answered
How to suppress the output of an mfile?
The best approach is to rewrite the code to total the prizes instead of printing each individual success. But if for some reaso...

2 hours ago | 0

Answered
Optimizing nonlinear functions with size variant input arguments
That error would happen if your objective function returns a non-scalar.

2 hours ago | 0

Answered
Is it possible to create imdistance line on a mouse click and trace the line as seen with the distance tool in imtool?
imdistline() with three parameters creates a distance tool with endpoints at the given x y position.

2 hours ago | 0

Answered
Detect Serial Port disconnecttion
The only pin statuses that can be changed are DTR and RTS https://www.mathworks.com/help/matlab/matlab_external/pinstatus.html ...

6 hours ago | 0

Answered
First image under the following images in GUI
persistent h if ishghandle(h); delete(h); end h = imshow(AppropriateArrayVariableGoesHere, 'Parent', handles.AppropriateAxesTa...

7 hours ago | 0

Answered
Divide by Zero Warning
https://www.mathworks.com/matlabcentral/answers/12677-dividebyzero-warning-does-not-show-up-when-dividing-by-zero#answer_17313 ...

8 hours ago | 0

Answered
How to place text in a single excel cell?
label = repmat( {label}, 5, 1)

8 hours ago | 0

Answered
how to plot the graph using MATLAB guide?
Yes, for sure. Open the .fig in GUIDE and use GUIDE to add an axes and take note of the tag. Then create a "plot" pushbutton. In...

8 hours ago | 1

| accepted

Answered
Poly11: "Warning: Equation is badly conditioned. Remove repeated data points or try centering and scaling."
The problem is not in the z: the problem is in the y values being very similar. Your fit can be rewritten as p = [ones(3,1), x...

8 hours ago | 0

Answered
While loop not terminating when condition is met?
The only time you should ever compare for floating point equality is a situation where one of the numbers has been extracted fro...

9 hours ago | 0

Answered
Using MATLAB on multiple devices with one account
Student licenses can only be used for fulfilling course requirements , never for employment or research that is not part of a co...

21 hours ago | 0

Answered
After running the code for (f ') w.r.t x , we need to draw( f ' ) w.r.t G (in X-axis) while varying n=0, 0.5, 1
your G is length 100. You pass it to bvpinit so matlab knows that your ode function works with 100 derivatives. but your ode onl...

22 hours ago | 1

Answered
Error Dot indexing is not supported for variables of this type
The values of global variables will not be copied to workers . They will be empty on the workers unless you assign inside the wo...

1 day ago | 0

| accepted

Answered
Signs in the output.
Not using disp. If you use fprintf then if you use a plus sign between the % and the numeric width specification then the sign ...

1 day ago | 0

Answered
Solve for symbol not finding explicit solution
Asking for an analytical solution to an equation involving floating point numbers is always a mistake. Are you working to 1 sign...

1 day ago | 0

| accepted

Answered
Using imrotate creates empty array
This seems to be an issue with imrotate when passed an array in which either the first or second dimension is 1, and the angle i...

1 day ago | 0

Answered
How to delete empty cells in a cell array?
What you show us for input is a 6 x 4 cell array, some entries of which happen to contain empty arrays. What you show us for de...

1 day ago | 0

Answered
how to form matrix
reshape(mm,3,3).'

2 days ago | 0

Answered
How to save matlab figures in .eps format
Use print with driver -depsc (color) or -deps (grayscale)

2 days ago | 0

Answered
Live Editor with Matlab Functions in Simulink.
No, it is not possible at this time. Live Editor does not use simple text files like the main MATLAB editor does: a .mlx file i...

2 days ago | 0

| accepted

Answered
Removing exponent numbers from output for matlab with symbols
You could expand() . Looking at those equations, you might also possibly be able to usefully simplify() after the expand()

2 days ago | 0

Answered
How does fread bring in a signed integer?
fread() always does binary reads. Representation is internal representation. All modern computer general purpose systems use 2'...

2 days ago | 0

Answered
How to read matfile from guide
The variable is being loaded in the workspace of the callback . You need to think more about which workspace you need the variab...

3 days ago | 0

Answered
How to solve this error when using PSOGWO to optimize an objective function?
zx is a vector so s./zx must be a vector so Phim is a vector. You add Phim to the scalar norm giving f so your f is a vector . H...

3 days ago | 0

Answered
I cant able to run power_PVarray_grid_det command in matlab R2018b command window
It is not part of MATLAB itself. It is at https://www.mathworks.com/matlabcentral/fileexchange/52434-power_pvarray_grid_det Yo...

3 days ago | 0

Answered
Error : Objective function is returning undefined values at initial point. lsqcurvefit cannot continue
You have a couple of issues: The last entry of your second column of your file is empty, so you are getting NaN values. This is...

3 days ago | 0

Answered
saving a .csv file with text values as a .mat file
T = readtable('fisheriris.csv'); Tlabcat = categorical(T{:,5}); Tcats = categories(Tlabcat); Tlabnum = double(Tlabcat); Tnum...

3 days ago | 1

| accepted

Answered
Is it possible to use the function IRFunctionCurve with a Matlab version R2018a?
That function continues to be present in the Financial Instruments Toolbox as of the latest available release. https://www.math...

3 days ago | 1

Load more