Community Profile

photo

Walter Roberson


42.598 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

  • 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
How to pcolor and convert a matrix 4D to 2D?
slice() is the easiest way, but you can just index and squeeze() and pcolor if the depth is one of the levels exactly matching a...

circa 3 ore ago | 0

Answered
how convert pixel to mm for a mat file using Matlab?
Pixels have no inherent size. 11x11 matrix of pixels could be representing picometers or gigaparsecs. You need some kind of refe...

circa 5 ore ago | 0

Answered
vec2ind problem?
The behavior for that case is undefined, so it is permitted to return anything it wants.

circa 7 ore ago | 0

Answered
GUI break button in a while loop
At the end of the while loop you need to add handles = guidata(gcf); so that the local copy of handles gets updated with the m...

circa 7 ore ago | 0

Answered
Solving derivative in point takes to long
The language used by the symbolic toolbox has never been compatible with execution by taking the character version of a symbolic...

circa 8 ore ago | 0

Answered
Is it not possible to run a dockerized .NET program developed in Windows, using the Matlab Runtime in a linux container?
The runtime is not cross platform. MCR is operating system specific and can only be used to run code that you could run in MATLA...

circa 9 ore ago | 0

Answered
hyper text display problem: " and ' inside href = " "
Code the inner " as " or "

circa 17 ore ago | 0

Answered
What does the following message mean?"Unable to perform assignment because the size of the left side is 50-by-150 and the size of the right side is 50-by-150-by-3."
50x150x3 means 50 rows, 150 columns, and 3 color planes. Your image july is an RGB image, even if it looks grayscale. You probab...

circa 23 ore ago | 0

| accepted

Answered
Can you help me with ode45?
[t,y] = ode45(@odefun,tspan,y0)

1 giorno ago | 0

Answered
How to i make the equivalent of the function scatter3 from matlab into Simulink ?
You can call scatter3() from a MATLAB Function Block in Simulink. You will probably want to use persistent to remember the axes...

1 giorno ago | 0

Answered
solving memory problem for this code
You cannot fix that. combnk(1:n,newn) takes all combinations of 1:n, newn at a time, where your n is 42, and newn is 41 down to ...

1 giorno ago | 0

Answered
Overlay curves on an existing surface plot
plot() pretty much creates lines with Z coordinate 0. surf() is going to be using 3D coordinates. Unless your surface happens to...

2 giorni ago | 0

Answered
How to adjust the same size of each subplot in one figure?
I confirm that subplot() allocates different OuterPosition widths for different subplots -- even just for empty graphs. However ...

2 giorni ago | 0

| accepted

Answered
Subscripted assignment dimension mismatch.
function all_sxint = main D=1; %L=0; Pr=1; R=0.1; Sc=1; xa=0;xb=6; Lv = [-2.5:0.025:0]; nLv = length(Lv...

2 giorni ago | 0

| accepted

Answered
why is my code not working?
Fm0 = linspace(0.01,0.02,100); Fm= (0.25).*(((log((2.7*10^-5)+(2.51.*((Rey.*sqrt(Fm0).^-1))))).^-1).*((log((2.7*10^-5)+(2.51.*(...

2 giorni ago | 0

| accepted

Answered
Why my result is 0×1 empty double column vector
function[u_g] = viscosity(Pm) % viscosity() calculates viscosity of the gas at given reservoir % temperature and pressure. M_ai...

2 giorni ago | 0

Answered
Usage of heaviside command valid/legal for discrete time ?
heaviside() is part of the Symbolic Toolbox. It is implemented by two different functions, one of which is used when the input i...

2 giorni ago | 1

| accepted

Answered
error while executing textbook MATLAB code?
In your release of MATLAB, ezplot() was not compatible with plotting symbolic expressions, and fplot() had to be used instead. ...

2 giorni ago | 0

| accepted

Answered
Guidance from MATLAB(Mathworks) staff?
There are no applicable tags. Everyone who answers questions here is a volunteer who answers in their own time, when and if th...

2 giorni ago | 1

| accepted

Answered
use of train and test data
You use round(PTrain*numImageFiles) as the upper limit for train_idx, and you use the same round(PTrain*numImageFiles) as the lo...

2 giorni ago | 0

| accepted

Answered
Array indices must be positive integers or logical values. How to solve?
A3 (sigma3 / Ua) is a request to either call a function named A3 passing in sigma3/Ua as a parameter, or else to index a variab...

2 giorni ago | 0

Answered
how to set handles based on index in MATLAB UI control table
In order to highlight or add a background for an individual entry of a uitable, you have three choices: Go in at the java level...

2 giorni ago | 1

Answered
How to Add Image Classes?
Target_Data = repmat((1:4).', Total_Images/4, 1);

2 giorni ago | 0

| accepted

Answered
Microsoft SDK 7 does nt recognize fmax and fmin functions from math.h header
Sdk7.1 was 2010 timeframe and did not support C99 and in particular did not support those functions. https://social.msdn.mic...

2 giorni ago | 0

Answered
do the MCR fee free?
Mathworks has never charged for mcr. Versions from r2012a are available for free download. Before r2012a, it was the responsi...

2 giorni ago | 0

| accepted

Answered
Generating matrix of integers with distinct rows
https://en.m.wikipedia.org/wiki/Combinatorial_number_system Generate N integers in the range up to combs(P, M). Use the combi...

2 giorni ago | 0

Answered
out of memory and unable to save pathdef.m
It sounds as if you accidentally introduced a third party isrow.m Give the commands restoredefaultpath rehash toolbox...

2 giorni ago | 0

Answered
non linear equation solution problem
The equation is too complicated for MATLAB. The solutions are: ln = @log; k = exp(-(ln(73/(100*xe-73))*ln(25/9)+ln(75)*ln(543...

3 giorni ago | 1

| accepted

Answered
Matlab's curve fitting toolbox results make no sense
You are not getting a good fit. You should be normalizing your data: [p, ~, mu] = polyfit(x, y, 6); plot(x, polyval(p, x, mu))...

3 giorni ago | 1

| accepted

Answered
why this type of error
That took a bunch of searching. You appear to be using readMatrix from a chirp scaling program at pudn http://www.pudn.com/Down...

3 giorni ago | 0

| accepted

Load more