# Walter Roberson

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

**Statistics**

RANK**1**

of 257.964

REPUTATION**122.303**

CONTRIBUTIONS

**34** Questions

**54.814** Answers

ANSWER ACCEPTANCE **
52.94%
**

VOTES RECEIVED**15.913**

RANK

of 17.781

REPUTATION**N/A**

AVERAGE RATING**0.00**

CONTRIBUTIONS**0** Files

DOWNLOADS **0**

ALL TIME DOWNLOADS**0**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

I tried to do Monte Carlo simulation in MATLAB, but it cannot be run! Can anyone help me?

You define a function but do not invoke the function. The function does not have access to any of the variables you define be...

ongeveer een uur ago | 0

I tried to show effect of uncertain parameters on bi-variate function with color map and aslo highlight changes to max and min,I am not sure the function I wrote is right!!!

y=lhsnorm(50,10,10,"on"); [xmin,fval]=fminsearch(@(x)Z(x,y),x0,options) %min The y referred to there is being "captured" fr...

ongeveer 9 uur ago | 0

synonyms functions for uigetfile or uiopen

You can use uigetfile() with 'multiselect', 'on' . The first output of uigetfile() will be numeric if the user cancelled. The...

ongeveer 9 uur ago | 0

how do I know if a vector is equal to any of vectors in matrix?

transpose mem_mat and use ismember with the 'rows' option.

ongeveer 11 uur ago | 0

İnvisible plots and a error

clear; clc; y0=3; x0=1:5; for i=1:5 l(i)=sqrt(x0(i)^2+y0.^2); Q(i)= atan(y0/x0(i)); end figure(1) plot(x0...

ongeveer 11 uur ago | 0

Why do I receive Arrays have incompatible sizes for this operation

You have an if that is then followed by a comparison not by an assignment. Level_Either_Side == [Level_Either_Side Sor...

ongeveer 11 uur ago | 0

How can I extract rows using column values?

classes_needed = [49, 55, 11, 32, 13, 29, 30, 20, 33, 43, 24]; mask = ismember(emnist(:,1), classes_needed); subset = emni...

ongeveer 11 uur ago | 2

| accepted

Find x-value of cfit function.

See John's solution at https://www.mathworks.com/matlabcentral/answers/320275-finding-values-from-cubicinterp-fit#answer_250485 ...

ongeveer 12 uur ago | 1

| accepted

How can I plot a similar graph like below in MATLAB using txt file

data = readmatrix('test1.txt'); plot(data(:,1), data(:,2:4)); legend({'Fx [kN]', 'Fy[kN]', 'Fz [kN]'})

ongeveer 12 uur ago | 0

| accepted

Plot graph in App Designer

Change plot(app.UIAxes,gain,f); to bodeplot(app.UIAxes, gain, {0,f} );

ongeveer 12 uur ago | 0

How To Write a Long-Decimal Number Data With Fprintf?

kode_annual = string(transpose(annual_equation)); change that to kode_annual = compose("%.10g", annual_equation); It is impor...

ongeveer 13 uur ago | 0

How to export plot with multiple axes.

I would suggest that you create a uipanel(), and parent the axes to the uipanel, and then exportgraphics() the uipanel. Or, exp...

ongeveer 13 uur ago | 1

Index value for button group

https://www.mathworks.com/help/matlab/ref/uibuttongroup.html#mw_64460ebb-84cc-4b21-8e3c-1da7ae15c44d SelectedObject for a uib...

ongeveer 14 uur ago | 0

| accepted

i have an error in imshow

There are three possibilities: * you might have a corrupted MATLAB installation * you might have a file named Image.m on you...

ongeveer 18 uur ago | 0

Second plot accidently with legends from first plot

cla can be used. But a lot of a time, you just hold off and let it reset itself. When I look at your plot, I wonder if you ...

ongeveer 18 uur ago | 0

Scatter plot with different colours,

[~, basenames] = fileparts(FileNames); First4 = cellfun(@(S) S(1:4), basenames, 'uniform', 0); G = findgroups(First4); nG = m...

ongeveer 18 uur ago | 0

HOW TO FIND THE TEMPERATURE VALUE IN THE THERMAL CAMERA IMAGE?

See https://www.mathworks.com/matlabcentral/answers/1723490-how-do-i-map-grayscale-values-to-get-temperature#comment_2169050

ongeveer 20 uur ago | 0

Algorithm conversion to Matlab Code

https://people.sc.fsu.edu/~jburkardt/m_src/ziggurat/ziggurat.html

ongeveer 20 uur ago | 0

Error opening file: Dot indexing is not supported for variables of this type. When opening a JPG image

The library contains executables for Windows and Linux but not for Mac. You need to cd into the library and use mex to compile j...

1 dag ago | 0

Symbolic Toolbox finds no solution to biquadratic equation

syms A B C D E x R = solve(A*x^4 + B*x^3 + C*x^2 + D*x^1 + E*x^0, x, 'maxdegree', 4); now use coeffs on your original ex...

1 dag ago | 0

Index exceeds the number of array elements (2).

max() of a 2d array is a vector so I is a vector. all_results(I) is a vector. You are trying to assign that vector to a scalar l...

1 dag ago | 0

| accepted

How can the script decide when to send a variable as a function input or not?

No mask flag is needed function processedImage = image_processing_function (filename, mask_BW) image = double(imread (fi...

1 dag ago | 1

| accepted

How to use indexing to identify data in data(1, :) from points identifed in data(2,:)?

You have a right-hand side expression of the form (A, (B, C)) That has no meaning in MATLAB. MATLAB does not define a...

1 dag ago | 0

| accepted

Is the Matlab feature "Ctrl+Scroll to increade/decrease value" still present in 2021b or newer?

No, and it is not expected to return. MathWorks recommends using the Livescript widgets that permit the user to modify a value. ...

1 dag ago | 0

how to solve "Matrix dimensions must agree."

T(P+1,m,k)=(dt/Cm(m))*(((T(p,m)-T(p,m-1))/Rm(m))+((T(p,m+1)-T(p,m))/Rm(m))+((T(p,k)-T(p,k-1))/Rk(k)))+T(p,m,k); nothing pre...

1 dag ago | 0

Trying to plot a 2D K vs Kh giving me the bellow error (Warning: Matrix is singular to working precision.) How do I solve this?

In MATLAB the / operation is Matrix Right Division. A/B is approximately A*pinv(B) where * is algebraic matrix multiplication an...

1 dag ago | 0

I generate some points with latin hypercube sampling and also by for loop I tried to separate out(i,j) to 4 kinds for plotting .but it only plots like below picture.

if out(i,j)>5 scatter(size(LHsampling,1),out(i,j),'s','r'); hold on; elseif out(i,j)>50 Un...

1 dag ago | 0

| accepted

How do I fix this error?

if states(j,1) == 0 [a]= 1; elseif j >= (2^i) [a] =0; end what i...

2 dagen ago | 0

| accepted

How to generate repeat column labels

array2table(data,'variablenames', "Cell" + (1:100))

2 dagen ago | 1

| accepted

How do I map grayscale values to get temperature?

"I want to know if i can use these GL values to get corresponding temperature with any equation or any function." No, there i...

2 dagen ago | 0