Community Profile

photo

Walter Roberson


44 350 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

  • First Review
  • 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
Can I use fmincon to solve Mixed Integer Convex Problem?
Mixed integer problems are discontinuous and fmincon can only work with continuous functions. You would need to evaluate once...

ungefär 6 timmar ago | 0

Answered
New column to a table with the dynamic name
Yourtable.(expression) = value The () are part of the syntax.

ungefär 6 timmar ago | 1

| accepted

Answered
integration of a function
Use ./ for the division Please do not open duplicate questions

ungefär 6 timmar ago | 0

| accepted

Answered
Error in an integration of a function
Use ./ instead of / for the division

ungefär 6 timmar ago | 0

| accepted

Answered
How to change the folder path in FOPEN for creating .dat file
Replace the first line with: folder = fullfile('result', 'norm', algo, [ActFunc_Hid '_' ActFunct_Out]); if ~exist(folder, 'dir...

ungefär 16 timmar ago | 0

| accepted

Answered
To convert categorical to double
catdata = categorical([2 7 3 50 5 6 60]); catnames = categories(catdata); converted = str2double(catnames(catdata)).';

ungefär 17 timmar ago | 0

Answered
Trying to solve a system of equations with 14 equations and 14 unknowns
pmp_spd=@(D) Vfr*(Vfr_dim * D^3); That creates a function handle. The only things you can do with a function handle are: displ...

en dag ago | 0

Answered
How to apply pca to audio files (pitch features)?
path_to_directory= dir ('**/*.wav'); % path to the directory for i = 1:length(path_to_directory) filename = fullfile(path...

en dag ago | 0

Answered
Solving a cubic function to get one numeric result?
S = solve(eqn,V,'Real',true,'MaxDegree',3) and sols = solve(a*x^3 - b*x^2 + c*x - d, x, 'MaxDegree', 3) and p = [1 -0.109331...

en dag ago | 0

| accepted

Answered
Ways of finding Jacobian
https://www.mathworks.com/matlabcentral/answers/407316-how-can-i-take-the-jacobian-of-a-function#answer_326202

en dag ago | 0

Answered
Error in for Loop to upload data from multiple CSV Files
You have accidentally created a variable named fullfile

en dag ago | 0

Answered
How can I change the lamp color while the application is running?
Use drawnow() to give MATLAB a chance to update the screen.

en dag ago | 0

| accepted

Answered
Code running, but not being displayed in command window?
You have function F=q4(x) % System of non-linear equations F(1) = x(1)^2+x(2)^2-26; F(2) = 3*x(1)^2+25*x(2)^2-100; %part b ...

en dag ago | 0

Answered
work with numbers in number
x = 40.201109; xs = sprintf('%.6f', x); a = str2double(xs(1:2)); b = str2double(xs(end-3:end-1)); c = str2double(xs(end-2:en...

en dag ago | 0

Answered
Error using ones Size inputs must be integers?
If you want an image the same size as img2 then r = zeros(size(img2), class(img2)); after which you can assign ones into an ap...

en dag ago | 0

| accepted

Answered
Display real time data in GUI.
Variables are only global inside of functions that declare them to be global. You can never force a variable to be global everyw...

2 dagar ago | 0

| accepted

Answered
Create array tm and Tm corresponding to the midpoints of t and T Temperature steps
tm = t(1:end-1) + delt/2 where delt is the vector we discussed in your previous Question.

2 dagar ago | 0

Answered
To do arithmetic operations with large arrays going out of memory space
It is not possible to tell MATLAB to store variables on disk, at least not in the way you are describing. You can tell your sys...

2 dagar ago | 0

Answered
Need to find the local maxima and minima of a cubic function, then write an iterating function.
for j = 0.001:10.1 j increments by 1 else j = j+.001 You are trying to modify the loop control variable. That is legal...

2 dagar ago | 0

Answered
How to arrange data in cell array
reshape(code, 6, []).'

2 dagar ago | 0

| accepted

Answered
fprintf multiple outputs separately
still_in_game = true(1, number_of_players); while any(still_in_game) for player_number = find(still_in_game) %if di...

2 dagar ago | 1

| accepted

Answered
Extract eigenvalues and eigenvectors / Symbolic to numeric / Rayleigh-Ritz Method / Vibro-acoustics
https://www.mathworks.com/help/symbolic/eig.html Symbolic eigenvalue does not support generalized eigenvalues.

2 dagar ago | 0

Answered
combination of integer numbers
[Ag, Bg, Cg, Dg] = ndgrid(0:15); Eg = [Ag(:), Bg(:), Cg(:), Dg(:)]; mask = sum(Eg,2) == 15; selected = Eg(mask,:); a = selec...

2 dagar ago | 0

Answered
MATLAB file to C compiler Command changes\ Makefile from MATLAB code
MATLAB Coder does not support graphics, except some of the Computer Vision routines to "draw" into arrays, and some specialized ...

2 dagar ago | 0

Answered
Conditional calculations on a numeric matrix
mask = input > thresholdvalue; result(mask) = input(mask) * 2; result(~mask) = input(mask) / 2;

3 dagar ago | 0

| accepted

Answered
Preprocessing using readtable()
Use detectImportOptions() on the csv file, and store the result to a variable. Now modify the DataLines property of the import o...

3 dagar ago | 0

Answered
How to convert a variable which has binary data in .mat format to .txt?
save() with the -ascii -double options is one way. However, if I recall, this can lose the last bit or two of precision, so if y...

3 dagar ago | 0

Answered
please help me with this
You have F=[]; inside the loop, so you are throwing away all of the F contents except for the last image.

3 dagar ago | 0

Answered
Simple Message Encryption with Matricies
>> mod(F(1,:),1) ans = 4.2632564145606e-14 0 0.999999999999943 char() truncates ra...

3 dagar ago | 0

| accepted

Answered
Chaotic map, Metaheuristic
The number of sequences is equal to the number number of values representable in the data type you are using, raised to the powe...

3 dagar ago | 0

Load more