photo

Walter Roberson


Last seen: Today|Active 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. I am currently caught up to T0099119; if you are waiting on a reply from me for an older issue, please send me a reminder.

Programming Languages:
C, MATLAB, Shell, Perl, Fortran
Spoken Languages:
English

Statistics

All
  • Most Accepted 2021
  • Roberson Cup
  • Solver
  • First Review
  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016
  • Most Accepted 2015
  • Most Accepted 2011
  • Most Accepted 2012

View badges

Content Feed

View by

Answered
灰色图像颜色恢复后图像subtraction
mask = repmat(all(Subtracted == 0, 3), 1, 1, 3); Subtracted(mask) = Original(mask);

11 hours ago | 0

Answered
Concatenate together two cell arrays
BB = cellfun(@(c,d) [c;d], CC, DD, 'uniform', 0);

14 hours ago | 1

|accepted

Answered
I tried to solve 6 couple differential equation, and getting an error which is " Index exceeds the number of array elements. Index must not exceed 2."
x = tspan(1):h:tspan(6); That line is expecting that tspan is a vector or array with at least 6 elements Working backwards f...

15 hours ago | 0

|accepted

Answered
Why do I recieve an error when trying to change the Line Width of a plot line?
//www.tianjin-qmedu.com/help/curvefit/cfit.plot.html#namevaluepairarguments plot() of cfit or sfit objects is not the regula...

1 day ago | 0

Answered
Error using integer wavelet transform
[cA, cH, cV, cD] = lwt2(double(data), 'LiftingScheme', liftscheme);

2 days ago | 0

Answered
How to check the function call stack during the debugging process
What you might be running into is that callback functions are considered to not have a calling function. Each callback is execut...

2 days ago | 0

Answered
how to padding array with zeros to limit rows (I can choose the limit)
[AB; zeros(21-size(AB, 1),size(AB, 2))]

3 days ago | 0

|accepted

Answered
How do you remove x-axis tick marks and keep the numbers?
plot(rand(1,20)) ax = gca; ax.XAxis.TickLength = [0 0.1];

3 days ago | 0

Answered
How to write code for solving system of nonlinear inequality
x=-10:1:10; for i=1:length(x) if x(i)>=0 y(i)=6*x(i)^2-5*x(i)+14; elseif x(i)>10 disp('x out of ran...

3 days ago | 0

|accepted

Answered
How do I find the index of the first element equal to 0 for each row of a matrix in a fast way
You cannot do it with a single find() A vectorized way to do it is M = ones(5,10); M(randperm(50,10)) = 0; M idx = sum(cum...

3 days ago | 0

Answered
Using a for- loop to extract a range of columns every n-columns
data = rand(64,10000); startcols = 1:2000:size(data,2)-1999; for w = 1:length(startcols) sc = startcols(w); extrac...

3 days ago | 0

|accepted

Answered
What is a comparison of m file and livescript file?
Livescript can insert text and equations as narration Livescript inserts plots "in-line" or to the right hand side, instead of ...

4 days ago | 0

|accepted

Answered
Is there a way to modify the path for ".." ( shortcut ) ?
You can change the startup folder; see //www.tianjin-qmedu.com/help/matlab/matlab_env/matlab-startup-folder.html The effect ...

4 days ago | 0

Answered
How add my folder '+op' to the path Matlab?
You can never add a + folder to the MATLAB path. Instead, you add the folder containing the + folder.

4 days ago | 0

|accepted

Answered
Spit an array when the value 0 occurs until the value 2
Your request is a bit ambiguous, so I will give two possibilities. loc0 = find(YourArray == 0, 'first'); %use this loc2F = ...

4 days ago | 1

Answered
How to save an app property to an .m file?
When you save() with -struct then the name that you give must be the name of a full variable. That is, copy app.dataPaths to a ...

4 days ago | 0

|accepted

Answered
run matlab help function_name from terminal
matlab -nodisplay -nodesktop -r "help function_name"

4 days ago | 0

Answered
How do i get multiple values all at once from cell array?
Your options: loop cellfun arrayfun (effectively the same as cellfun) cell2mat to form a 3d array, and then index; this is v...

4 days ago | 0

Answered
能不能把下面储存在元胞里面的t(i)换成具体的值,是不是有强制计算什么的
t=[1 2 3 4 5] for i=1:4 cmd = sprintf('@(a)%.16g.^a-%.16g.^a', t(i+1), t(i)); F{i} = str2func(cmd); end F

4 days ago | 0

|accepted

Answered
FAQ: Why is 0.3 - 0.2 - 0.1 not equal to zero?
Consider any finite-length positional notation with a fixed base, B. For example, base 10 and 0.193 meaning 1 * 10^-1 + 9 * 10^-...

4 days ago | 1

Answered
why 350*0.001 - 0.350 and 351*0.001 - 0.351 are different from zero
Consider any finite-length positional notation with a fixed base, B. For example, base 10 and 0.193 meaning 1 * 10^-1 + 9 * 10^-...

4 days ago | 1

Answered
Undefined function 'adaptcluster_kmeans' for input arguments of type 'uint8
That function is not part of MATLAB. You need to install //www.tianjin-qmedu.com/matlabcentral/fileexchange/45057-adaptive-kme...

4 days ago | 0

Answered
How to reshape any matrix using while loop or any other method?
A = B(:, 1:6:end) ;

4 days ago | 0

Answered
How to free memory from C-code in simulink embedded matlab code block
StopFcn will not have access to the persistent variables. Use global and a datastore

4 days ago | 0

Answered
Can Matlab record an audio with a sampling frequency of 800 hz
audiorecorder cannot be used for this purpose. Although the frequency range supported is operating system and hardware specific,...

5 days ago | 0

Answered
Do you edit code on Github?
The code you upload to Github should be tested code (with the possible exception of Github collaboration mode)

5 days ago | 0

|accepted

Answered
Minimisation of a scaler function
The function is ST(fSL .* (exp(scale .* SC))) with varying values of "scale". You did not happen to show the definition of ST ...

5 days ago | 0

Answered
Good day, Please I tried searching for drive cycle on my Simulink but I didn't find it.
//www.tianjin-qmedu.com/help/autoblks/ug/install-drive-cycle-data.html You need Powertrain Blockset

5 days ago | 1

|accepted

Answered
How to do +,-,*,/ with one scalar and one matrix(IN GUI)?
str2double always returns a scalar when the input is a character vector or character array. It only returns a matrix if the inpu...

5 days ago | 1

Answered
How to make xtick where there is a tick label in bold?
xticklabels({'','','\bf 1980','','','','','\bf 1985',... '','','','','\bf 1990','','','','','\bf 1995','','','','','\bf 2...

5 days ago | 0

Load more