Community Profile

photo

Walter Roberson


Last seen: Today
48 218 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
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.

environ une heure 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...

environ 2 heures ago | 0

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

environ 4 heures 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...

environ 4 heures 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...

environ 6 heures 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

environ 15 heures ago | 0

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

environ 15 heures 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...

environ 18 heures 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 ...

environ 18 heures 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...

environ 18 heures ago | 0

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

environ 19 heures 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...

environ 20 heures 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...

environ 20 heures 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...

environ 21 heures 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 jour 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 jour 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 jour 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 jour 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. ...

1 jour 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...

1 jour 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...

1 jour 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....

1 jour 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...

1 jour ago | 0

Answered
URGENT - CAN YOU HELP??
You appear to be using the third party toolbox http://psychtoolbox.org/docs/RestrictKeysForKbCheck . The code you show here doe...

1 jour ago | 0

Answered
How to do partial function on input equations?
var = str2sym(inputdlg(varprompt));

1 jour ago | 0

| accepted

Answered
Why CSV date column is imported as NaN ?
dataset = readtable('time_series_covid19_confirmed_global.csv','readvariablenames',true,'preservevariablename',true);

1 jour ago | 0

Answered
How to display two or more values in one fprintf line?
The trick to sprintf() and fprintf() is that each value in memory advances to the next format element. So if you have r = 1:2; ...

1 jour ago | 0

| accepted

Answered
How can I save multiple variables simultaneously
If you are saving variables into traditional .mat files (-v7 and before), then MATLAB first collects the list of names of variab...

1 jour ago | 0

Answered
Check for optional inputs in a function using exist
I suspect that it is faster to check nargin. Note: starting R2019b, it is possible to use an "arguments" block to do automatic ...

1 jour ago | 0

| accepted

Answered
Can you put matab code in an app for users to edit?
Yes, provided that the app is not being compiled (so the users need a matlab license to execute it.) For all of the possibili...

2 jours ago | 0

Load more