Community Profile

photo

Walter Roberson


Last seen: Today
48.076 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

  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Solver
  • First Review
  • 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

View all

Contributions in
View by

Answered
How can I index Image pixel with 2d logical mtrix ?
output = BEV(Red_idx); is valid MATLAB, and gives a 64x1 vector. When you index an array by a smaller logical vector, the miss...

28 minuten ago | 0

Answered
Need help setting up my for loop
g is a scalar. You are trying to use g(:,i) . That is only going to work when i is 1, which would then be g(:,1) which would be ...

ongeveer een uur ago | 0

Answered
Error: Unrecognized function or variable 'FunExample2'. / Error in Newton Root (line 15)
You have stored FunExample2 and FunDerExample2 inside the same file NewtonRoot.m . There are valid reasons to do something like...

ongeveer een uur ago | 0

Answered
How to display the value of output on plot?
You can use text() or you can use annotate() . I would suggest that text() is much easier to use for this purpose. You could al...

ongeveer een uur ago | 0

Answered
problem in using MATLAB solve functionality
There are no solutions for that. You can solve the first two equations for x and y, and substitute that into the third equation...

ongeveer een uur ago | 0

Answered
two vectors having different sizes
L1 = length(A); L2 = length(B); L = min(L1, L2); A(1:L) .* B(1:L)

ongeveer 2 uur ago | 0

| accepted

Answered
why it read the variable value as imaginary
You are using a series of scripts instead of functions. One of the scripts is clearing the variable i . It might possibly have a...

ongeveer 2 uur ago | 0

| accepted

Answered
understanding unit8 [1*3]
It is a 1 x 3 array (a vector) of values that are datatype uint8 . uint8 datatype is an 8 bit unsigned integer, so each entry ca...

ongeveer 2 uur ago | 0

Answered
"Error using griddedInterpolant .The sample points must be finite."
>> time_sec(95) ans = NaN >> horizontal_radiation(95) ans = NaN

ongeveer 5 uur ago | 0

| accepted

Answered
Can MATLAB Handle a Triple Nested Struct?
Calendar = struct('Month', repmat({struct('month', '', 'Day', cell(31,1))},12,1), 'year', int8.empty); The result is a 12 x...

ongeveer 5 uur ago | 0

Answered
Is it possible to only read header information in an EDF file through edfread
https://www.mathworks.com/help/signal/ref/edfinfo.html edfinfo and look at the StartDate and StartTime properties to get the s...

ongeveer 6 uur ago | 0

| accepted

Answered
Draw objects (arrows, brackets, ...) outside the axis area
plot(rand(1,20)); %your basic data hold on plot(randn(1,20), 'clipping', 'off'); %your brackets etc ylim([0 1]); hold o...

ongeveer 6 uur ago | 0

| accepted

Answered
Streamlined naming outputs from one location
TrialNumber = 4; CT_pattern = sprintf('CTraj%02d.*', TrialNumber); CT_dinfo = dir(CT_pattern); CT_filenames = {CT_dinfo.nam...

ongeveer 6 uur ago | 0

Answered
"Index exceeds array dimensions. Index value 2 exceeds valid range [1-1] for array" --How to solve this?
In Simulink, s.t(1)=0*0.1; defines s.t as being a scalar value that is not permitted to increase in size. In Simulink, you ...

ongeveer 6 uur ago | 0

Answered
Problem with a function
You have defined gammaT as a variable that you multiply by, but it needs to be a function of time. You will likely need somethin...

ongeveer 6 uur ago | 1

Answered
Function with 4 independent variables and 3 parameters
Some options are described at https://www.mathworks.com/help/optim/ug/nonlinear-data-fitting-example.html You can also use the...

ongeveer 6 uur ago | 0

Answered
Find total operations matlab
https://www.mathworks.com/matlabcentral/answers/44352-cpu-cycles-count-for-simulink-model#answer_54380 The above is the only wa...

ongeveer 7 uur ago | 0

Answered
What are the bolded variables in colon mentioned in the code. What is the programmer trying to do with these variables ??
the first one is explained in the comments in the source code https://github.com/azraelkuan/asvspoof2017/blob/master/baselin...

ongeveer 8 uur ago | 0

Answered
How to embedding a matlab exe file in android studio? or an alternative to android studio.
It is true. .exe are in machine language for Intel or AMD x64 systems, but Android phones nearly all use ARM architecture. Al...

ongeveer 8 uur ago | 0

Answered
Coder error - Directly accessing field or property of nonscalar struct or object not supported for code generation
The code is not valid MATLAB unless SignalIndex is either a scalar number or else a logical array that is certain to have exactl...

ongeveer 12 uur ago | 0

| accepted

Answered
3d Plot of a function
create a meshgrid of x and t values, X and T. Then Z = double(subs(u, {x, t}, {X, T})) ; surfc(X, Y, Z)

ongeveer 12 uur ago | 0

Answered
i dont know what is this answer
The e indicates multiplication by 10 to the power of the following digits. 3.2959 times 10 to the power of 38. This is standa...

ongeveer 12 uur ago | 0

Answered
Solve a system of nonlinear equations symbolically
You have a polynomial system. MATLAB is finding all solutions. Your format is only expecting one solution.

ongeveer 12 uur ago | 0

| accepted

Answered
Add all folders/files below a specified point to path.
https://www.mathworks.com/help/matlab/ref/genpath.html genpath is designed for that

ongeveer 18 uur ago | 0

Answered
error in simulink running
You need to cd to a different directory before you try to build your model. You tried to build the model while you are using dir...

ongeveer 22 uur ago | 0

Answered
MATLAB not using the RAM entirely. Is it because I have an academic license?
In all 64 bit versions of MATLAB, the built-in limits are: no array dimension may exceed 2^48-1, even if the array is empty. Th...

ongeveer 23 uur ago | 0

Answered
Calling a function multiple times in a for loop.
psi(k) = test_M(rmv(k));

ongeveer 23 uur ago | 0

| accepted

Answered
why my licence will expire
We do not have enough information about your license. Individual licenses do not expire for Home licenses or most Student licen...

ongeveer 24 uur ago | 0

Answered
loglog plots don't always use log scale
The y axis *is* on log scale. Compare the distance between the bottom (1.0) and the tick above it (1.05) to the distance between...

1 dag ago | 0

| accepted

Answered
Randomisation of matrix for load forecasting
No, not in itself. You could use p as column indices, but when you submit all of the data together then it does not care what or...

1 dag ago | 0

| accepted

Load more