Community Profile

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
Counting the number of appearance of a value in a loop
[G, value] = findgroups(all_indices_pesi(:,2)); count = accumarray(G, 1); num_instances = table(value, count); See findgroups...

etwa 3 Stunden ago | 0

Answered
Access to Matlab 2018a version?
If your license permits you to download previous versions, then https://www.mathworks.com/downloads/ and on the left side you...

etwa 4 Stunden ago | 1

| accepted

Answered
Regularized hypergeometric function in Matlab
syms k desired = hypergeom([], 2, 1/(4*k))

etwa 4 Stunden ago | 0

| accepted

Answered
how to create a STRUCTURE composed of variables from .NC files
source = 'something appropriate'; vars = ["lat", "long", "altitude", "time", "z", "u", "v"]; for var = vars HeavyStruct.(...

etwa 4 Stunden ago | 0

Answered
Can we store multiple subplots under one dataframe?
You can savefig() to save the figure, and openfig() the figure later. The result would depend upon the value of a at the time t...

etwa 4 Stunden ago | 0

Answered
Read the column 2 and 11 from 45 csv files in 45 subfolder hence plot them.
Distance(i) = table2array (data(:,2)); table2array() of a table with a single numeric variable, is going to produce one row...

etwa 4 Stunden ago | 1

Answered
Undefines function 'fsic' for input arguments of type 'cell'
You need to also install https://github.com/shanqing-cai/commonmcode and also https://github.com/shanqing-cai/audapter_mex if ...

etwa 5 Stunden ago | 1

Answered
while solving a couple ordinary differential equation, I'm getting an error of Unable to perform assignment because the left and right sides have a different number of element
The posted code executes for me format long a = 0; b = 30; h = 0.1; o = 3.5; tc = 3.0; tf = 2.3; a1 = 0.1; a2 = 0...

etwa 5 Stunden ago | 0

Answered
figure versus uifigure the best way to manage complex gui
I do not know why uifigure is so much slower than traditional figures. I know people have been grumbling about that for years, a...

etwa 5 Stunden ago | 0

Answered
A matlab docker image with all toolboxes installed.
No, and that is not going to happen. Mathworks only provides docker images based upon Ubuntu. Data Acquisition Toolbox only r...

etwa 6 Stunden ago | 0

Answered
Deleting All the Rows with values Bigger or equal than 10
mask = Output(:,4) >= 10; Output(mask,:) = [];

etwa 6 Stunden ago | 1

| accepted

Answered
How to Merge the cells and name?
You cannot create that kind of table in MATLAB. In order to have a row name span multiple rows, you will need to create a table...

etwa 6 Stunden ago | 0

Answered
May I know what is this error? in gui to stress-strain model in for-end
You currently have delta_L=0; for vec(i) = str2double(query(myDmm, 'READ?')); %vec(i)번째에 읽어들인 값 저장 However, you need to ...

etwa 7 Stunden ago | 0

Answered
Issues using Summation in Matlab
never use symsum to form the sum of a vector of values. The variable of summation for symsum is always symbolic, but symbolic va...

etwa 12 Stunden ago | 0

Answered
Reading 8x8 matrices from file into MATLAB
filename = 'YourFile.csv'; S = fileread(filename); blocks = regexp(S, '#', 'split'); fmt = [repmat('%f,', 1, 7), '%f']; nume...

etwa 16 Stunden ago | 0

Answered
Will the Free Trial of the Deep Learning Toolbox run on my Macbook Pro?
Yes, it will run on your Macbook Pro. However, it will not be able to take advantage of any GPU that you might have. GPUs are n...

etwa 16 Stunden ago | 0

Answered
Sum of 5 consecutive video frames
If you have the frames already in a 3D array, then you might want to consider using movmean or movmedian window = 5; dim = 3; ...

etwa 18 Stunden ago | 0

Answered
keep from evaluating a symbolic expression
You can use displayFormula on the character (or string()) version of the formula, and later convert that to symbolic as_char = ...

etwa 18 Stunden ago | 0

Answered
'MatchFilter' is not a recognized parameter. Is causing Simulink Real-time build to fail.
https://www.mathworks.com/help/releases/R2020a/simulink/slref/simulink.findoptions-class.html?s_tid=doc_ta MatchFilter was not...

etwa 21 Stunden ago | 0

Answered
Extract segments of 1's from binary matrix
You can bwconncomp and pass in a connection array that is a central row or central column of 1s. You would do that twice, once f...

ein Tag ago | 0

| accepted

Answered
Array indices must be positive integers or logical values.
Remember that MATLAB has no implied multiplication, so your code is asking to take 1 divided by (Nt indexed at something), where...

ein Tag ago | 0

Answered
Finding Maximum Consecutive Dry Days in Daily Rainfall Data
This code shows one way of finding all the runs of maximum length. rng(12345) drf = rand(366,1); % mocking up some daily rainf...

ein Tag ago | 0

Answered
related to the fprintf
number_of_shoes = 4; for shoe_number = 1 : number_of_shoes filename = sprintf('SCRW;NAME;SCRW_%d', shoe_number) end

ein Tag ago | 0

Answered
How to I create variables with different names in the workspace using for loop?
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval fo...

ein Tag ago | 1

Answered
num2char? dpath?
<http://www.pages.drexel.edu/~dml46/Projects_Genomic_Coding.html> has code for a function named num2char. It is not clear wh...

ein Tag ago | 0

Answered
do specific work after a specific warning
https://www.mathworks.com/help/matlab/ref/lastwarn.html Use lastwarn, especially the two-output version that lets you get the...

ein Tag ago | 1

Answered
Real-Time Controller with DAQ
Within limitations, yes. I have not done this myself, but I have seen people mention having done it. There are at least three...

ein Tag ago | 0

| accepted

Answered
Storing info of an averaging automated process into an array without extra values
A numeric array cannot store different number of values according to row. You would need a cell array for that.

ein Tag ago | 0

Answered
Image compression channel not working
IMAGEBIN=im2bw(im,0.4); im2bw returns logical data encodedData = step(enc, IMAGEBIN(:,[1])); That kind of encoder d...

3 Tage ago | 0

| accepted

Answered
grey image color restoration after image subtraction
mask = repmat(all(Subtracted == 0, 3), 1, 1, 3); Subtracted(mask) = Original(mask);

4 Tage ago | 0

Load more