Community Profile

photo

Walter Roberson


44.565 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
Empty 0-by-1 when using solve:
The equations are inconsistent. If you solve the first 7 equations for [x1, x2, x3, x4, x5, x7, x8], and substitute those in to ...

etwa 10 Stunden ago | 0

Answered
Call function multiple times but execute once
https://www.mathworks.com/help/matlab/ref/memoize.html

etwa 11 Stunden ago | 1

Answered
plot loop in a legend
plot(Temperatura(:,Dmod(n)),Quota,'-', 'DisplayName', ID{nvar}) hold on plot(Tmis(:,Dmis(n...

etwa 11 Stunden ago | 0

Answered
Multiple function handle in varfun
You can use @(v) [mean(v), std(v)] as the function, and splitvars() afterwards.

etwa 11 Stunden ago | 0

Answered
How do I use the pcode to regenerate?
You would need the source code r2t.m You appear to be using https://www.rmr.tu-darmstadt.de/lehre_rmr/elearning_rmr/rt2_mat...

etwa 16 Stunden ago | 0

Answered
How to turn a camera webcam into a video.
camera = VideoReader('slow.avi') nnet = alexnet; % Load the neural net pic = image([]); while hasFrame(camera) pict...

ein Tag ago | 1

| accepted

Answered
How to create a circle within a matrix
x=-.10:.002:.10; %note change from 0.02 to 0.002 [X,Y]=meshgrid(x); % xy space v1=zeros(size(X)); % previo...

ein Tag ago | 1

| accepted

Answered
how save results?
save() permits using a wildcard, such as save('filename.mat', 'z_room*') save() also permits a -regexp option for more complic...

ein Tag ago | 0

| accepted

Answered
Function: Compare each Element of 2 Matrix for zero and non-zero
Z2 = Z^2; output = all(all(~Z2 | Z));

ein Tag ago | 0

Answered
bin_data=imbinarize(r_data);
You need to have the Image Processing Toolbox installed and licensed. Note: imbinarize was new in R2016a, but you do have a ver...

ein Tag ago | 0

Answered
Using a network license on personal computer
Network licenses can be configured to permit "borrowing". See https://www.mathworks.com/help/install/license/borrow-licenses.htm...

ein Tag ago | 0

Answered
How to get cluster more than 2 if i have :
Cluster1 = Y1 > Y2 & Y1 > Y3 & Y2 > Y3 Cluster2 = Y1 > Y2 & Y1 > Y3 & Y2 <= Y3 Cluster3 = Y1 > Y2 & Y1 <= Y3 %Y2 < Y...

ein Tag ago | 0

Answered
Extra commas when using fprintf
Replace fprintf("%.4f," ,M(:,:,i)); With Temp = M(:, :, i) ; fprintf("%.4f," ,Temp(1:end-1) ); fprintf("%.4f...

ein Tag ago | 0

Answered
Error Movie contains unitialized frames
Zach(i,size(r,2)) = getframe; You are creating a 2d array of frames in which you assign into the last column. The other col...

ein Tag ago | 0

Answered
Call a function in a sub directory?
cd to the inner directory and create a handle to the function, and cd back. Now when you invoke the handle you get the inner fun...

ein Tag ago | 0

Answered
Genetic Algorithm Optimizatioin - Error
D:\Matlab\mrst-2018a\modules\octave\rng.m You need to get that off of your MATLAB path. There is also a fair risk that other ...

2 Tage ago | 0

| accepted

Answered
How to solve nonlinear equation with unknown variables?
No, it should not give you a real number. You did not tell MATLAB that x is restricted to reals, so it is proper that solve() re...

2 Tage ago | 0

| accepted

Answered
Why .fig file looks different in different MATLAB versions ?
As of R2014b, Handle Graphics 2 (HG2) started being used. One aspect of HG2 is that uicontrols no longer automatically render on...

2 Tage ago | 0

Answered
How to find index of rows without -999
find(~any(YourArray == -999,2))

2 Tage ago | 0

| accepted

Answered
Make comet move with respect to a function
You cannot do that with comet(). comet() requires that you pre-define all of the points, and it moves them however fast it wants...

2 Tage ago | 0

Answered
save a probability matrix (range [0, 1]) as grayscale image with range [0,1]
For the low level stuff: https://www.mathworks.com/matlabcentral/answers/7184-how-can-i-write-32-bit-floating-point-tifs-with-n...

2 Tage ago | 0

Answered
index exceeds array bounds
disp=("Acceleration is now equal to: ") That line redefines disp from being a function into being a scalar string object. You n...

2 Tage ago | 1

Answered
editing a string using GUI editable text/popup within guide
user_input_food = handles.food_textbox.String; %assuming you named the edit uicontrol food_textbox user_input_amount = h...

2 Tage ago | 0

| accepted

Answered
index variable based on time points
output = zeros(size(mri,1), size(mri,2), 35, 40, class(mri)); for t = 1 : 40 output(:,:,:,t) = mri(:,:,35*(t-1) + (1:35));...

3 Tage ago | 0

| accepted

Answered
Minimize Function with multiple inputs
We end up with a fuel flow rate, which I need to minimize by variying the 4 variables. You have a single objective. You can use...

3 Tage ago | 0

Answered
What plans are there for native support on ARM v8 64 bit CPUS
You need to contact your sales representative and enter into a Non-Disclosure Agreement to get information on that topic. My own...

3 Tage ago | 0

Answered
how to evaluate definite integral
Your ep is 1 x 11 so for each scalar x your f would want to return 1 x 11. integral() does not expect that: integral() expects t...

3 Tage ago | 0

| accepted

Answered
Trouble with 'global' & 'ode45' with plot in TDM spr-mass-damp. system
[t,x] = ode45(@ydot,(0:1),[0 0 0 0]); z = x(((3/4)*end:end),1); When you pass a vector of exactly 2 elements in as the...

3 Tage ago | 0

Answered
How to reduce For loop execution time?
>> tic;s = sum(exp(-sum((reshape(proc(1:3), [], 1) * (1:1000000000)).^2))); toc Elapsed time is 55.136908 seconds. This was sl...

3 Tage ago | 0

| accepted

Load more