
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,699
REPUTATION
123,384
CONTRIBUTIONS
34 Questions
55,217 Answers
ANSWER ACCEPTANCE
52.94%
VOTES RECEIVED
16,095
RANK
of 17,911
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
How to correctly optimize parameter using gradient descent
for k=1:(length(t)) % Number of Iterations ghat=[ghat ghat0]; It looks like you might be intending ghat to be a record of ever...
11 hours ago | 0
regexp returns unwanted 0x0 string cells
regexp() accepts for its first parameter: * character vector * string scalar * cell array of character vectors * nonscalar...
23 hours ago | 0
| accepted
Error "Arrays have incompatible sizes for this operation" when try to integrate
quadgk and integral pass in vectors for the first parameter. @(xi,q)1./[q1te(xi,q)+q0te(xi,q)].*[1.*(q0te(xi,q)-q1te(xi,q))...
23 hours ago | 0
| accepted
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...
1 day ago | 0
| accepted
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...
1 day ago | 1
| accepted
Regularized hypergeometric function in Matlab
syms k desired = hypergeom([], 2, 1/(4*k))
1 day 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.(...
1 day 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...
1 day 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...
1 day 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 ...
1 day ago | 1
| accepted
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...
1 day 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...
1 day ago | 0
| accepted
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...
1 day ago | 0
Deleting All the Rows with values Bigger or equal than 10
mask = Output(:,4) >= 10; Output(mask,:) = [];
1 day 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...
1 day 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 ...
1 day 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...
1 day ago | 1
Reading 8x8 matrices from file into MATLAB
filename = 'YourFile.csv'; S = fileread(filename); blocks = regexp(S, '#', 'split'); fmt = [repmat('%f,', 1, 7), '%f']; nume...
1 day 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...
1 day 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; ...
2 days 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 = ...
2 days 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...
2 days 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...
2 days 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...
2 days 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...
2 days 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
2 days 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...
2 days 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...
3 days 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...
3 days ago | 1