
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
Content Feed
Number of values stored are more than the ratio of stop Time/Step size ?
See https://www.mathworks.com/help/simulink/ug/choose-a-solver.html and https://www.mathworks.com/help/simulink/ug/managing-samp...
5 hours 前 | 1
Error 2, 753 when trying to activate key
First off: if you were installing the license server facilities, then the resulting MATLAB would not need to be activated -- bec...
5 hours 前 | 0
error to assign string in field struct's
Compare: Sis(73).Slipp = 'example'; [Sis.SlippSource] = testfun(); function output = testfun() output = 123; end
10 hours 前 | 1
| 已接受
Licence manager changes / Activate and manage devices
Notice that the "Option" field is "Total HeadCount". The implication is that the license is not an individual license -- the "Ma...
13 hours 前 | 0
ascribe zeros to an array
frequencies = linspace(0, 2400, 250); spectrum = rand(size(frequencies)); subplot(2,1,1); plot(frequencies, spectrum); title...
13 hours 前 | 0
How can I resolve the error in output for a WSN simulation in MATLAB
endToEndDelay = endToEndDelay + (t - transmissionTimes(node)); You never reset endToEndDelay, so it becomes unclear...
1 day 前 | 0
| 已接受
how to use vpasolve to solve the equation sin(x)==0 in the range of (0,5] instead of [0,5]?
vpasolve() does not support open or semi-open intervals. The trick is to use syms x sol = vpasolve(sin(x)==0, x, [1e-63 5]) ...
1 day 前 | 0
Subs returns empty sym n-by-0
subs(expr,sol) If sol is a struct output of solve() with returnparameters but there were no auxiliary variables introduced ...
1 day 前 | 0
Iterate through a matrix to find specific entry
Reminder: length is defined as: 0 if any dimension of the array is 0 max() of the dimensions of the array otherwise You appea...
1 day 前 | 0
Strange limitations on script files?
Not allowing function definitions in the middle of a script file removes ambiguity about whether code after a function definitio...
1 day 前 | 0
Why is triplequad not recommended? In my case it works better than integral3
triplequad invokes dblquad which invokes quad . Because quad() requires that the limits are finite, then dlbquad() and triplequ...
1 day 前 | 0
What is a simple way to check if a collection of vectors all have the same number of elements
a = rand(3,1); b = rand(3,1); c = rand(4,1); d = rand(3,1); vecs = {a,b,c,d}; n = cellfun(@numel,vecs,'uniform',0); if...
1 day 前 | 0
Why isn't my code iterating more than once?
r1_real=me(1,K); r2_real=me(2,K); b1_real=me(3,K); b2_real=me(4,K); Those are all scalars. x=(r1_real(1,K).^2-r2_real(1,K)....
2 days 前 | 0
提问
convert patch structure to graph() object?
Is there an easier / better way to convert a patch() faces / vertices structure to a graph object? %Where S is a struct with fa...
2 days 前 | 2 个回答 | 0
2
个回答how to set y-axis as log scale?
The best way to create that type of axes is to use the semilogy function. Alternatively, you can set the ‘YScale’ property on th...
2 days 前 | 51
| 已接受
calculate volume from iso-surface coordinates (x,y,z).
If you use boundary then it has an optional second output which is the volume. However, I would not expect boundary() to be abl...
2 days 前 | 1
Accepting multiple values for a function. I want my function to accept multiple values for beta
U(1,[4 5]) = [ alpha-beta, beta ]; when beta is a vector, then you have a problem: you need different 5 x 5 U matrices for each...
3 days 前 | 0
The function textscan is problematic and has serious bug!
You coded if totalNumFigureBad == totalNumFigureGood disp('The textscan is problematic!'); end and if counterBad == cou...
3 days 前 | 0
.csv using readtable doesn't make difference between the value 1 and 01
filename = "23_Time Cards_Practice 1.CSV"; opt = detectImportOptions(filename); opt = setvartype(opt, 1, 'string'); opt = ...
3 days 前 | 0
Is it possible to code png's similar to a grid?
Would it be possible to take a larger (let's say 100 x 100) png, and turn it into a grid so that a smaller (10 x 10) png can be ...
3 days 前 | 0
Does 2023a release allows FMI 3.0 export (creating FMU 3.0)?
R2023a does not support FMU 3.0 R2023b is already released (a week ago), and it does support FMU 3.0; https://www.mathworks.com...
3 days 前 | 1
Failure of dimensional analysis for a rule
I am baffled about what unit (grams ^ 0.35) would be. Should that be interpreted as (grams ^ (35/100) so that the unit would be ...
3 days 前 | 0
A problem that appears in the shell commands what should I do?
If you are using MacOS then see https://www.mathworks.com/matlabcentral/answers/488382-switchng-folder-to-desktop-in-catalina-10...
3 days 前 | 0
When are previous version of MATLAB at end of life?
https://www.mathworks.com/support/requirements/platform-road-map.html Note: If you have a current subscription to MathWorks So...
3 days 前 | 0
How can I modify a list of existing variables programmatically?
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval fo...
4 days 前 | 1
Storing a table in a struct in embedded loops
DATA is a struct, so dynamic field names for it must obey the limitations for struct field names. struct field names must be val...
4 days 前 | 0
Why does the rand function in the assignment statement within the class's property only work once?
Named variables in MATLAB have a symbol table entry that appears to be a fixed size, and which appear to hold little more than t...
4 days 前 | 1
green arrow for current line and variable values not displaying during debug pause at breakpoint
The highlight might not align properly if you edit the file during debugging.
4 days 前 | 0
Code error trying to find the max h
You have I divided by h where I is the size of r. But r and h are row vector of different lengths. If each h has a correspond...
4 days 前 | 0
EEGLAB pop_clean_rawdata function
In https://github.com/sccn/clean_rawdata/blob/master/clean_channels.m we can see that the blocks numbers correspond to the numbe...
5 days 前 | 0
| 已接受