
Walter Roberson
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.
C, MATLAB, Shell, Perl, Fortran
Spoken Languages:
English
Statistics
RANK
1
of 260.649
REPUTATION
123.346
CONTRIBUTIONS
34 Questions
55.213 Answers
ANSWER ACCEPTANCE
52.94%
VOTES RECEIVED
16.090
RANK
of 17.909
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Content Feed
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
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
Regularized hypergeometric function in Matlab
syms k desired = hypergeom([], 2, 1/(4*k))
etwa 4 Stunden ago | 0
| accepted
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
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
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
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
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
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
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
Deleting All the Rows with values Bigger or equal than 10
mask = Output(:,4) >= 10; Output(mask,:) = [];
etwa 6 Stunden ago | 1
| accepted
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
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
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
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
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
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
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
'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
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
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
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
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
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
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
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
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
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
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
grey image color restoration after image subtraction
mask = repmat(all(Subtracted == 0, 3), 1, 1, 3); Subtracted(mask) = Original(mask);
4 Tage ago | 0