Community Profile

photo

Walter Roberson


Last seen: Today
48 187 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
Input arguments to function include colon operator. To input the colon character, use ':' instead
x1k = @(u1k,x1k) exocstrstateFcnCT1(x1k,u1k); That is a function handle y1 = x1k; That copies the function han...

ungefär 3 timmar ago | 0

Answered
Using eval function for execute a power flow with DC system embedded
Don't *do* that! casefile = sprintf('case_ieee30_test%d.mat', i); savecase(casefile, baseMVA, bus, gen, branch); And...

ungefär 4 timmar ago | 0

Answered
help me to matlab script
sympref('heavisideatorigin', 1) x = @(t) heaviside(t)

ungefär 8 timmar ago | 0

Answered
FEVAL Error in Implementing Bisection - Function to evaluate must be represented as a string scalar, character vector, or function_handle object.
that code expects you to pass a function handle as the first parameter.

ungefär 8 timmar ago | 0

| accepted

Answered
do you have a rate for retirees?
For personal interest there is the Home license. Unfortunately that does not allow access to some of the toolboxes, and is limit...

ungefär 8 timmar ago | 0

Answered
What does Sel do in this code?
http://matrix.etseq.urv.es/manuals/matlab/toolbox/mutools/sel.html Very old MATLAB! It looks to me as if is just doing ind...

ungefär 9 timmar ago | 1

| accepted

Answered
How to select between two identically named built-in functions?
When Mathworks constructs function names it ensures that if there is the same function name, that all except possibly one of the...

ungefär 14 timmar ago | 0

Answered
how to save jpeg after compression code ?
save it any way you like, such as using save() into a .mat file, or write the information into different sheet names of xlsx fil...

ungefär 15 timmar ago | 1

| accepted

Answered
how to generate and precise double value?
randi([0 10], size(x))./10

ungefär 17 timmar ago | 0

| accepted

Answered
Log Parsing using MATLAB
S = fileread('data_file.txt'); line_matches = regexp(S< '^.*\sharber4797\s.*$', 'lineanchors', 'dotexceptnewline')

ungefär 17 timmar ago | 0

Answered
How to get value of X based on a specific value of Y in Graph
x100 = interp1(y, x, 100, 'linear', 'extrap')

ungefär 18 timmar ago | 1

| accepted

Answered
Bisection Method Error - Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
rtns=makereturns(20,2); 20 x 2 Q = cov(rtns) 2 x 2 a = [0;1]; B = [1;-1]; 2 x 1 each V = a.*Q*a + 2*a.*Q*B*x + B.*Q*B*x^2 ...

ungefär 18 timmar ago | 0

| accepted

Answered
Unrecognized function or variable 'phload.'
You are passing phload into toploadph, but toploadph is not passing it into FE which needs it. We can also predict that FE is n...

ungefär 18 timmar ago | 0

Answered
convert a function into optimization expressions
The solvers are not compatible with symbolic work. The problem-based approach does not permit you to inject your own functions....

ungefär 18 timmar ago | 0

| accepted

Answered
Function with Non Constant Variable
syms x output = S(3, 1, x, 2); disp(output) output = S(3, 1, 4, 2); disp(output) function SF = S(F, a, x, n) if isa(a, '...

ungefär 19 timmar ago | 0

Answered
Function with Non Constant Variable
syms x output = S(3, 1, x, 2); disp(output) output = S(3, 1, 4, 2); disp(output) function SF = S(F, a, x, n) if isa(a, '...

ungefär 19 timmar ago | 0

Answered
Error in entropy function
The entropy function only permits a single parameter. You are probably thinking of the wentropy function, which does permit 'sh...

ungefär 23 timmar ago | 0

Answered
Invalid use of operator.
The syntax for anonymous functions is @(list of variables) body Instead you have @(expression) -Tsf

ungefär 24 timmar ago | 0

Answered
how can I change a character string from low case to upper case without using the formula of 'low()' and 'upper()' ?
Subtract 32 from the character code. Which you might want to phrase as variable - 'a' + 'A'

ungefär 24 timmar ago | 0

Answered
Help with ODE45 Running Forever
For t1 you have a sin wave with frequency 17563117453.348 being integrated over 0 to 10*pi . This is a quite high frequency and ...

en dag ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds
4027.93116292808 - 3784.63252459062i That is not two columns: that is a single column that is complex-valued. signal = csv ./ ...

en dag ago | 0

Answered
Can i run matlab on i3 (dual core) with SSD and 8GB RAM
Yes, MATLAB will run on a dual core i3 with 8 Gb and SSD. Four core or more is recommended but it will run on two core https://...

en dag ago | 0

Answered
How to find the x and y values at the max of a curve?
CBE350HW10PT1 %invoke the function function CBE350HW10PT1 tspan = [0,2000]; conc = [0.02,0,0]; [t, c] = ode45(@odefun3,ts...

en dag ago | 1

| accepted

Answered
When i tried to change the training function in nntrain , from trainlm to traindx, i get the error :
The message is correct. Mathworks does not supply any function named traindx . It does, however, supply a function named traing...

en dag ago | 0

| accepted

Answered
Numbers in command window printed 10000 times smaller
My recommendation would be that you go into Preferences -> Command Window -> Text Display, and choose numeric display "long g",...

en dag ago | 0

Answered
more then one tag on object in figure
No. The Tag field of an object must be a character vector or a scalar string. The only way to store multiple tags would be to en...

en dag ago | 0

Answered
How to check whether the function invertible or not?
If all you are given is a function handle, and you are not permitted to examine the source code, then it is not always possible ...

en dag ago | 0

Answered
Execution time of functions used in anonymous function creation
What is the best way to force immediate execution of a function that is being used as part of an anoymous function? stackAnalye...

en dag ago | 0

| accepted

Answered
What is wrong with my Gompertz Equation?
V=p(1)*(p(2)/p(1)).^exp(-p(3)*t); Notice the .^ instead of ^ . Your t is a vector, and the ^ operator is the matrix power oper...

en dag ago | 0

Answered
Error using mex Unknown file extension ' '. Matlab Ubuntu
mex does not accept directory names as individual arguments: it thinks you are specifying files to be compiled and then complain...

en dag ago | 0

Load more