Community Profile

photo

Walter Roberson


42,832 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
function loadmatButtonPushed(app, event) [file,path] = uigetfile('*.mat') app.loadmatButton= load( fullfile(path,file) ) end
The above suggests to me that you have a ui control button already that has the name loadmatButton and the handle to that is sto...

6 hours ago | 1

Answered
How I can convert a single char array in a table with 3 columns?
Suppose you have the character vector stored in the variable S. Then: info_struct = regexp(S, '(?<Year>\d{4})\s+(?<Month>[A-Za-...

7 hours ago | 0

| accepted

Answered
How do I read the number of nodes from a ssc file?
S = fileread('BSC019N02KS.ssc'); nodelines = regexp(regexp(S,'nodes.*?end','match','once'),'\r?\n','split'); if isempty(nodeli...

9 hours ago | 0

| accepted

Answered
How to implement a generic 'filter' function using direct form I?
filterdf1 = @(a,b,x) filter( dfilt.df1(a,b), x); This is a three-argument filter function that uses direct type 1 form.

1 day ago | 0

| accepted

Answered
What is the MATLAB function for FILTER in direct-form I?
https://www.mathworks.com/help/signal/ref/dfilt.df1.html edit(which('dfilt.df1')) Will show you the exact code that is u...

2 days ago | 0

Answered
writetable with spaces on header
header = {'Last Name', 'Age', 'Smoker', 'Height', 'Weight', 'Blood Pressure'}; Tcell = [header; table2cell(T)]; writecell(Tcel...

2 days ago | 0

| accepted

Answered
Continuous Graph in a loop
i = 0:1:10; x = 1; B = x * ones(size(i)); mask = i <= 3; B(mask) = i(mask) + 2; plot(i, B,'-*')

2 days ago | 1

| accepted

Answered
How can I select items in a double list?
reshape(T_C,3,[]) Now the groups of 3 appear as columns.

2 days ago | 0

Answered
How to remove a row based on text in a certain column?
mask = contains( string(DFTtable{:,3}), '[warning]'); DFTable(mask,:) = [];

2 days ago | 1

| accepted

Answered
Backslash error ''Warning: Matrix is singular to working precision."
1) Yes, the \ command has changed. Between those versions, the underlying LAPACK libraries were upgraded -- twice, I think. 2) ...

2 days ago | 0

| accepted

Answered
what is the construct algorithm of MATLAB's dfilt.df1 function?
edit(which('dfilt.df1'))

2 days ago | 0

| accepted

Answered
Why does Matlab require a Parallel computing toolbox in order to use more CPU cores?
Not quite. Matlab recognizes some patterns of operations and for sufficiently large matrices automatically calls high performanc...

2 days ago | 1

Answered
Confusion regarding uiswitch function in matlab GUI?
You cannot add uiswitch to GUIDE created GUI. GUIDE created GUI use "traditional figures". App Designer uses UI Figures though a...

3 days ago | 0

| accepted

Answered
how to write a program on matlab
for j = 0:255 S(j+1)= j+1; end for i = 0 :255 j = floor(x(i+1)/gt*2^8); if j==-1 %cannot happen j...

3 days ago | 0

Question


license problems "cheat sheet"
It can be a nuisance to find the meaning of the various license manager error codes, so I have summarized below. Numbered error ...

3 days ago | 0 answers | 12

0

answers

Answered
How to return the state of preivew camera?
%avoid warnings about struct() preventing hiding implementation details old_warning_state = warning('off', 'MATLAB:structOnObje...

3 days ago | 0

| accepted

Answered
Client to worker communication in Matlab
https://www.mathworks.com/help/parallel-computing/parallel.pool.pollabledataqueue.html "You can construct the queue on the wor...

3 days ago | 0

Answered
To write a single datatype image in .tif format.
https://www.mathworks.com/matlabcentral/fileexchange/35684-multipage-tiff-stack

3 days ago | 1

Answered
Help creating a for loop
M = [1 2 3 ; 4 5 6]; M ./ sum(M,2) Note: this code requires R2016b or later. For earlier versions, bsxfun(@rdivide, M, sum(M,...

3 days ago | 0

| accepted

Answered
There is a mistake with such expressions as mod(23^12,24). MATLAB gives an answer of 0 which, given that 23 and 24 are relative primes,
https://www.mathworks.com/help/symbolic/powermod.html https://www.mathworks.com/matlabcentral/fileexchange/38516-powermod

3 days ago | 0

| accepted

Answered
plotting and for loop
You can generate a smooth curve between four points by doing interpolation, such as spline or pchip or makima , However, lookin...

3 days ago | 0

Answered
fourier transform of Rectangular pulse
fourier() is the routine from the symbolic toolbox whose primary purpose is to take the fourier transform of formulas . You do...

3 days ago | 0

Answered
How can I plot 2 vectors of different length?
You know which days had valid measurements. Pass the time coordinate corresponding to those days as the "x" coordinate to plot, ...

3 days ago | 1

Answered
Is there an equivalent function in Matlab 2019 to the earlier version's isunicode function?
isunicode was never part of MATLAB. It is https://www.mathworks.com/matlabcentral/fileexchange/10683-isunicode

3 days ago | 0

Answered
The maximum value assumed by the function on the interval
Step 1: Plot the function to see visually the approximate peak. Find an approximate interval for the peak; it does not have to b...

3 days ago | 0

Answered
Symbolic expression with matrix input and output
The symbolic engine does treat all unresolved symbols as scalars. That is hardcoded into the way it works internally and would b...

3 days ago | 2

| accepted

Answered
How can I use the function millis() for Arduino in Matlab?
You can look at etime or at tic and toc, However there is no way to control arduino without delay. In particular the stand...

4 days ago | 0

Answered
Error: Missing multiplication operator, missing or unbalanced delimiters. To construct matrices, use brackets instead of parentheses.
Your updateimage function is not within a methods section.

4 days ago | 0

| accepted

Answered
save figure "dynamic"
eps are not "dynamic". See https://www.mathworks.com/help/rptgen/ug/mlreportgen.ppt.presentation-class.html and https://www.mat...

4 days ago | 0

Answered
how to separate strings from a datatable?
tiempo = arrayfun(@strsplit, str, 'uniform', 0);

4 days ago | 1

| accepted

Load more