Community Profile

photo

Walter Roberson


43,069 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
Deblank an empty vector
"Because Reasons" The preservation of the shape of empty vectors is not suggested anywhere in the documentation, so this is not...

2 hours ago | 0

Answered
How to do one hot encoding of unusual letters in matlab?
https://machinelearningmastery.com/why-one-hot-encode-data-in-machine-learning/ describes One-Hot Encoding (a term I was not awa...

2 hours ago | 0

Answered
I want to show all the ticks using figure properties on y-axis which are {10^0 , 10^-2 , 10^-4 , 10^-6 , 10^-8}
yticks(fliplr([10^0 , 10^-2 , 10^-4 , 10^-6 , 10^-8]))

3 hours ago | 0

Answered
How can i assign certain length for each column of exported text file?
None of the Mathworks supplied tools for writing out matrices support that, so you will need to construct it yourself. col_widt...

19 hours ago | 0

Answered
Plotting legend as a separate figure
You just might be able to copyobj the legend to the new figure and then delete the old legend but I suspect that this will not w...

23 hours ago | 0

Answered
What is MATLAB-MCR ECCN and CCATS
https://www.mathworks.com/matlabcentral/answers/413183-please-provide-the-export-control-number-eccn-for-matlab-compiler-runtime...

23 hours ago | 0

Answered
Parameterization of a set of vectors by n number of equally spaced points
newx = linspace(min(x), max(x), 200); newy = interp1(x, y, newx);

1 day ago | 0

Answered
fmincon linear inequality constraint
A = a_matrix b = -a_constant and those go as the third and fourth parameters of fmincon fmincon(objective_function, x0, A, ...

1 day ago | 1

| accepted

Answered
If statement is not working
In MATLAB, the test if A > B is treated the same as if it had been if all(A(:) > B(:)) Your angle1 is a vector. Some of the ...

1 day ago | 1

| accepted

Answered
part of file name
s = 'Hello_World_2020'; c = regexp(s, '_', 'split') ; c{2} You can also use strsplit() instead of regexp. On the othe...

1 day ago | 2

| accepted

Answered
Out of memory. The likely cause is an infinite recursion within the program.
Your function is named Vout but inside it you have volume_out=Vout(t(n))*DT; Which involves the function you are defini...

1 day ago | 0

Answered
How to change multiple animatedline() axes?
animatedline defaults to being associated with the current axes at the time it is executed. Your code for that is okay. The p...

1 day ago | 0

Answered
switching between black/white and color
No. However, you could probably adapt the freezeColors File Exchange contribution so that instead of replacing mapped and pse...

2 days ago | 0

| accepted

Answered
How I can load Machine learning Toolbox?
https://www.mathworks.com/matlabcentral/answers/101885-how-do-i-install-additional-toolboxes-into-an-existing-installation-of-ma...

2 days ago | 0

| accepted

Answered
Getting error Unable to perform assignment because dot indexing is not supported for variables of this type
You cannot skip arguments to fmincon (except for one near the end). Before you pass in options you need to pass in objective...

2 days ago | 0

Answered
"Undefined function or variable 'imsplit'."
<https://www.mathworks.com/help/images/ref/imsplit.html> Requires R2018b You should be using the "doc" function in your MA...

2 days ago | 1

| accepted

Answered
MATLAB Active Contour Open Source Code
https://www.mathworks.com/matlabcentral/fileexchange/19567-active-contour-segmentation

2 days ago | 0

Answered
Is there anyway to load 2011b to Win 10?
Yes. I have done it in the past. It is not supported, and you can expect there could be problems with serial ports, parallel por...

2 days ago | 0

Answered
How do I create a session that is limited by time
I have only found four ways in MATLAB to force a function to end without its cooperation: # Java robot class to send control ...

2 days ago | 1

Answered
In what order the transfer of functions take place in Fmincon?
fmincon is invoked first and controls all the other calls. The initial value will never be used if it does not fit within the...

3 days ago | 0

| accepted

Answered
Stop uitable from appending to cell when you type
Use the uitable cell selection callback. When the callback fires, look at the position indicated in the event data, and set that...

3 days ago | 0

Answered
Error in imabsdiff of two images
You are trying to take the image difference between file *names*. You need to read in the files and compare the contents.

3 days ago | 1

| accepted

Answered
output of k means clusters "idx"
idx will be a vector which has as many entries as there are rows in X. The j'th entry, idx(j) tells you the cluster number that...

3 days ago | 0

| accepted

Answered
How do I setup ROI once and it will apply to all other images?
imageFolder = dir('C:\Users\85042513\MATLAB\Projects\BAT CVE\Images\OK\*.jpg'); numfiles = length(imageFolder); ori_roi = cell...

3 days ago | 1

| accepted

Answered
Data import from csv file
These days we recommend readtable() -- or if you have R2019a or later and your data is entirely numeric, then possibly readmatri...

3 days ago | 0

Answered
solve a system of equations symbolically with R2018a
You are using R2018b or later. solve() no longer accepts character vectors for equations. Furthermore, each of your equations h...

3 days ago | 0

Answered
Issue Saving image with text overlay to png
I recommend you take a different approach. Instead of plotting on the image and text() on the image, use the Computer Vision ins...

3 days ago | 0

Answered
How can I get the index numbers of cells that form a specific string?
This is an algorithm question rather than a MATLAB question, really. Start with an empty cell array of leading substrings, and ...

3 days ago | 0

Answered
convert from datetimes to double
datenum() the datetime object. This is not preferred. Consider using a table object or better yet a timetable

3 days ago | 0

Answered
M-script error while run it
You ask to sim() project3test . However if you look carefully at the first of your two images you will see that your real model ...

3 days ago | 1

| accepted

Load more