Community Profile

photo

Walter Roberson


Last seen: Today Attivo dal 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. 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.

Programming Languages:
C, MATLAB, Shell, Perl, Fortran
Spoken Languages:
English

Statistiche

All
  • Most Accepted 2023
  • Most Accepted 2022
  • Solver
  • First Review
  • Most Accepted 2021
  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016
  • Most Accepted 2015

Visualizza badge

Content Feed

Visto da

Risposto
str2sym error
Work around: symfun('force(t)', sym('t')) or syms force(t)

circa 3 ore fa | 0

Risposto
writetable or dlmwrite to save an array as a txt file
M = [ 1.0000 -26.2000 -31.7000 2.0000 -27.1000 -33.9000 3.0000 -25.5000 -30.2000 4.0000 -24.4000 -30...

circa 4 ore fa | 0

Risposto
I keep getting the error message that the variables must be of data type double and it is currently of type sym.
%I'm unsure how else to run this code to solve the 10 eqn system where %the answer comes out in the correct form, please help ...

circa 4 ore fa | 1

| accettato

Risposto
Hi, this is my code, I want to fit 36 graphs in one graph (36 rays in layout view)
N = 2048; L = 1e4; dx = 4e-3; [x0,y0] = meshgrid((-N/2:N/2-1)*dx); [xL,yL] = meshgrid((-N/2:N/2-1)*dx); [fx,fy] = meshgrid(...

circa 5 ore fa | 0

Risposto
Genetic algorithm gives same result everytime
You have a single variable that is integer constrained between 10 and 100. That is only 91 different values to search, at most -...

circa 5 ore fa | 0

| accettato

Risposto
How can I displace x and/or y axes from existing positions?
There is no provided way to do this. You will have to turn axes off, and draw the axes yourself.

circa 20 ore fa | 0

Risposto
Fastest possible prime number detection without using break or return
The fastest possible way of doing any computation depends upon the fine details of your CPU, and upon the fine details of how me...

circa 20 ore fa | 0

Risposto
Processing Multiple Files at once.
[filelist,pathn] = uigetfile('*.*','Please Select a Par File in .dat or .txt', 'multiselect', 'on'); if isnumeric(filelist); er...

circa 20 ore fa | 0

| accettato

Risposto
Uploading .mat files that contain nested structs into a datastore
data = matfile(filename, variables{1}); That is the wrong way to use matfile. The proper way to use matfile is matObj ...

1 giorno fa | 0

Risposto
How can I skip the rest of an if statement?
if n > 1 while true if a == 1 disp('Haha') break % (Here is where I want to skip the res...

1 giorno fa | 0

| accettato

Risposto
ginput error in matlab 2020a
Error in contains (line 36) tf = ~cellfun(@isempty, strfind(s, pattern)); ... Except that contains is a built-in function and ...

1 giorno fa | 0

Risposto
How to determine if angles match
You would get that behavior if prec1 or prec2 are non-scalar and it does not happen that all of the values pass the tests.

2 giorni fa | 0

| accettato

Risposto
How to run a function in app designer?
psi = app.EditField_psi.Value; phi = app.EditField_phi.Value; theta = app.EditField_theta.Value; m = app.EditField_m.Value; ...

2 giorni fa | 0

Risposto
No sound when playing movie in Matlab2020b
%dispMoviesMatlab - ComputerVision Toolbox audiopath = 'C:\Users\maxab\OneDrive\Desktop\Masters\Experiment\Movies\Chosen'; m...

2 giorni fa | 0

Risposto
Where is Shader graphics available in MATLAB
The only access is shading (not very extensive)

2 giorni fa | 0

Risposto
vectorized operations on symbolic functions
syms x1 x2 x3; % symbolic variables y = x1^3/3 + x2^2/2 - x3; % symbolic function y X = rand(500,3); % each row representing a...

2 giorni fa | 0

Risposto
Slice command for terrain
No. Your data cannot be sliced. Perhaps you might want to contour() the data, and get back the contour matrix, and use somethin...

2 giorni fa | 0

Risposto
Extract color map from png apply to grayscale image
Use rgb2ind() on the colored image, and take the second output as being the color map. [~, cmap] = rgb2ind(TheColoredImage); i...

2 giorni fa | 1

Risposto
how to perform a multi variable optimization on matlab
There are several different minimizers possible. Everything except fzero() -- fzero() is restricted to one variable. The trick ...

2 giorni fa | 0

Risposto
Binary GA returns floating point numbers
% Set seed for reproducability rng(42); % Load data and define arrays data = readmatrix('Data/File_S1.xlsx'); X = data(2:e...

2 giorni fa | 0

Risposto
line search minimization problem, error sym is not convertible to double
f = 316.2*(X1^0.5) + 34.3*X2 + (10^8)*(X1^(-0.5))*(1/X2) %symbolic expression %... A=diff(f,X1) B=diff(f,X2) %A1...

3 giorni fa | 0

| accettato

Risposto
Create a list of list and take the mean
cellfun(@mean, aps)

3 giorni fa | 1

Risposto
Unregcognized function or variable 'xotold'
if f2<f1 && f2<f3, xoptold = x2; end You only set xtoptold if that condition is true, but later you use it even if the co...

3 giorni fa | 0

Risposto
Find data from files that are too large to read in
Use buffer-fulls of data for increased efficiency. fread() a block of data of fixed size. Scan backwards through the block look...

4 giorni fa | 0

Risposto
How do I add transparency to a plot in the Live Editor?
Unfortunately, the hack of using a 4-element Color does not work in LiveScript. The work-around is to set the figure Visible pr...

4 giorni fa | 1

Risposto
x axis labels not properly working
You used xticks([-0.8:0.4:0.8]); Instead of xticks([-0.08:0.04:0.08]);

5 giorni fa | 1

| accettato

Risposto
extracting one variable from mux
You do not use a To Workspace block for that purpose; you use a Bus Selector https://www.mathworks.com/help/simulink/slref/busse...

5 giorni fa | 0

| accettato

Risposto
Possibly spurious solutions - Matlab blocked with no answers
Turns out there are some solutions In the below, fullsubs is not actually valid for all entries -- only for entries [5 8 13 16...

6 giorni fa | 0

Risposto
How to find the best combination of angles for minimum turn radius
radius = 72; inner_angle = (0:68).'; outer_angle = (0:68); inner_angle_rad = inner_angle * pi /180; outer_angle_rad = outer_...

6 giorni fa | 1

| accettato

Risposto
How is the work distributed in parfor loop?
You can control how parfor divides up the iterations by using parforOptions() RangePartitionMethod https://www.mathworks.com/hel...

6 giorni fa | 1

Carica altro