Community Profile

photo

Walter Roberson


Last seen: Today
48.225 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

  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Solver
  • First Review
  • 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

View all

Contributions in
View by

Answered
serial communication shows huge batch istead of steady small bursts
I predict that COM4 is not a true RS232 or RS422 port, and is instead a USB port with Serial over USB. Serial over USB is defin...

30 minuti ago | 0

Answered
Can somebody help me to code this physics equation? I am confused how to describe it in code. Thank you
Lambda_1 = 24; syms lambda(T) eta_o(lambda,T) eta_e(lambda,T) DlambdaT = diff(lambda, T); Deta_oT = diff(eta_o, T); Deta_eT ...

circa un'ora ago | 0

Answered
How to change the
You are using GUIDE, which uses "traditional" figures. In traditional figures, edit boxes and text boxes cannot have color for ...

circa un'ora ago | 0

Answered
Unknown Error Message from using interp1
if year < 1990 | year > 2018 | mod(year,2) == 1 disp("This is not an even year from 1990 to 2018"); else male_vote = ...

circa un'ora ago | 0

Answered
HOW CAN I FIND THE SUBSET OF N-SET?
See the "odometer" code that I posted at https://www.mathworks.com/matlabcentral/answers/623358-get-a-combination-of-unique-path...

circa un'ora ago | 0

Answered
Warning: JPEG library error (8 bit), "Invalid SOS parameters for sequential JPEG".
https://github.com/lovell/sharp/issues/1578 Apparently the Samsung Galaxy S9 has a bug in how it creates JPEG images that lead...

circa 4 ore ago | 0

Answered
Convert vector of characters to doubles/numeric
str2double(cellstr(YourCharacterArray))

circa 4 ore ago | 0

Answered
How to apply modifiers to error messages
f = errordlg('\fontsize{3}This is my error message', 'Woops', opts); Where 'Woops' is the title to give to the dialog.

circa 5 ore ago | 1

Answered
How to import data from excel file as structure into Matlab?
T = readtable(TheFileName); TC = table2cell(T); TS = cell2struct(TC(:,2), TC(:,1), 1); TS will now be a cell with field names...

circa 6 ore ago | 0

Answered
axis labels not working
Suppose there is only one peak detected, and that everything from there on is non-increasing. * / \ \ ...

circa 8 ore ago | 0

Answered
What is the difference between flag 1 and flag 2?
https://www.mathworks.com/help/optim/ug/fmincon.html#busog7r-exitflag Exit flag 1: stopped because the optimality was low enou...

circa 8 ore ago | 0

Answered
Variable precision arithmetic in ode45 and others?
Sort of. The internal symbolic engine has two numeric ode routines. At the moment I do not know if there is a matlab level inter...

circa 9 ore ago | 0

Answered
How to generate a random decimal number between -1 and 1?
rand*2-1 Note this will not generate exactly -1 or exactly 1

circa 18 ore ago | 0

Answered
What does this syntax mean? “yyy(1,1) logical = xxx”
It is a property name, size, datatype, and initial value.

circa 19 ore ago | 0

Answered
load function doesn't load variable correctly
restoredefaultpath You are loading a custom object type. If the class definition is not on your path because you restored the d...

circa 22 ore ago | 0

| accepted

Answered
textarea: how to hold on messages
There is no property for that. If you want to add more data you need to fetch the current data and add the new data to the end ...

circa 22 ore ago | 1

Answered
Blend function - please help (MATLAB 2020b)
http://psychtoolbox.org/docs/Screen-BlendFunction "The most common alpha-blending factors are sourceFactorNew = GL_SRC_ALPHA a...

circa 22 ore ago | 0

Answered
Solve Symbolic Simultaneous equations -- Please help!!
S = solve(eqns, [a, b, c, d]);

circa 23 ore ago | 0

Answered
Is it bad practice to have nonlinear constraints array change size depending on the input solution in a genetic algorithm?
When boundaries are found to be violated, the optimizers can attempt to locate the boundary by comparing the output of the const...

circa 24 ore ago | 0

| accepted

Answered
How to convert floating point to binary bits with the given condition?
mod(a*10^4,10)>=6 Here I am taking you literally on the > 5 as not including 5 -- so it should only convert for 6, 7, 8, or 9 i...

circa 24 ore ago | 0

| accepted

Answered
the 'fmincon' optimisation doesn't stop at minimum with all possible algorithms
Change the FiniteDifferenceStepSize %% 29.10.2020 optimisation codes close all syms x; size=1e-11; C_Gmm1=[441400000,298900...

1 giorno ago | 0

Answered
How can i make this code dynamic?
bin = discretize(p, [-inf; flipud(k(:)); 100; inf]); map = [num2cell(length(k)+1:-1:1), {"Not valid output"}]; gr = map(bin); ...

1 giorno ago | 0

| accepted

Answered
set. How to do it using matlab?
logical indexing, if you are processing a vector of x values. piecewise() if you have the symbolic toolbox and you are building...

1 giorno ago | 0

Answered
Out of memory error
No. If you have any digits after the decimal point, then you are using floating point numbers, and floating point numbers do not...

1 giorno ago | 0

Answered
configureCallback unrecognized function in R2019b
configureCallback is a method build into some classes (rather than being a .m of its own.) It looks to me as of configureCallba...

1 giorno ago | 0

Answered
converting 16 bit image to 12 bit
Different programs deal with storing lower number of bits (such as 12) in higher number of bits (such as 16) in different ways. ...

2 giorni ago | 0

Answered
Extract data from a csv file in Matlab
formatIn ='yyyymmdd:HHMM'; It is questionable as to whether that is the correct format, however. Each of the entries ends in 11...

2 giorni ago | 0

Answered
Matrix index is out of range for deletion
You have a loop in which you move forward through the loop, deleting entries if some condition matches. However, every time you...

2 giorni ago | 0

Answered
Invalid text charcter .Check for unsupported symbol, invisible charcter ,or pasting of non-ASCII chatcters
Your line 7 starts with 11 occurances of char(160), which is unicode U+A0 http://www.fileformat.info/info/unicode/char/a0/index....

2 giorni ago | 0

Answered
cpu time in matlab
See timeit() Note though that timeit() deals with elapsed time rather than cpu time -- but it takes a number of steps to try to...

2 giorni ago | 0

Load more