Community Profile Walter Roberson

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

All
• • • • • • • • • • • • Content Feed

View by

how to make my text in matlab coloured ?
See the File Exchange contribution named cprintf https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-for...

2 hours ago | 0

Hello every one, How can I generate randomly only one number between two values (e.g.: 0.01-1)each time?
Remove the fix() call. fix() asks to take the integer portion of the value (rounding towards 0)

2 hours ago | 0

I have written a code for pressure calculation in bearing. i have found this error. Index in position 1 exceeds array bounds (must not exceed 142). Error in (line 680)
T = (NX+1)*(NY+1); % calling is done as Q(X=1 or Y=2, Node number) for I=1:T x=Q(1,I); y...

3 hours ago | 0

How to get interval of X for a certain value of Y in a plot or array.
idx = find(y >= 0.3); xmin = x(idx(1)); xmax = x(idx(end));

1 day ago | 0

How do I convert tall array duration time vector to HH:mm:ss for merging with tall array datetime vector ?
perhaps [h,m,s] = hms(DURATION_COLUMN); DATETIME_COLUMN = TIME_COLUMN + duration(h,m,floor(s)) or perhaps DATETIME_COLUMN = ...

1 day ago | 0

Can students change scripts in Live Editor without having Matlab installed.
No, they *would* need MATLAB installed for what you describe. However perhaps you can use "MATLAB Online", see http://matlab....

1 day ago | 0

FMINCON requires the following inputs to be of data type double: 'X0'.
fun = @(x)FCVEC06January2022V2; That says that fun is to become an anonymous function that accepts zero or one input arguments,...

2 days ago | 0

binary matrix to decimal number
A = [1 0 1 1 0 0 1 0 ] bin2dec(char(A+'0'))

2 days ago | 1

| accepted

MATLAB function gives me error
Those solid markings appear to me to indicate that you are using a Simulink Bus Creator https://www.mathworks.com/help/simulink/...

2 days ago | 1

Converting symbols in columns to different numeric values
syms GB KC TB TEN picks1 = [GB TB TEN KC]; orders1 = perms(picks1); GBv = [45; 29; 18; 7]; TBv = [127; 60; 34; 11]; TENv =...

2 days ago | 1

Is it possible to reconstruct an image from the number of pixel counts and bins information?
I = imread('pout.tif'); imshow(I) I1 = reshape(sort(I), size(I)); imshow(I1) [c,b] = imhist(I); [c1,b1] = imhist(I1); all(...

2 days ago | 0

| accepted

I need to read an array to see if it has repeated elements (using for loop)
cont =0; for i=1:length(Vec)-1 for j = i+1:length(Vec) if Vec(i) == Vec(j) ...

2 days ago | 0

How does this function work? - echo, assert ...
The function does none of the actual work needed. Instead it overrides the functions that are used to check that the solution wo...

2 days ago | 2

| accepted

Run Simulink Simulation from using Matlab Engine API for C
https://www.mathworks.com/help/matlab/calling-matlab-engine-from-c-programs-1.html There is no specific interface for Simulink...

2 days ago | 0

| accepted

Losing pixels with imrotate
No there is no way. In every case where you rotate by something that is not a multiple of 90 degrees, pixels will change. Con...

2 days ago | 1

How can I define a symbolic function with vector arguments?
You cannot do that in MATLAB. You can use matlabFunction with the 'vars' option to generate a function handle that indexes in...

3 days ago | 0

Simplifying results from rat function
[N,D] = rat(0.642857142857143)

3 days ago | 1

| accepted

How to shifting or move the time axis to the left in a MATLAB plot.
Pass the coordinates of the independent axes to plot() before the dependent coordinates -- plot(x,y)

3 days ago | 0

Unable to find explicit solution
If you look carefully at the graph, you can see a couple of discontinuities at negative t values. At first I thought it was a ...

3 days ago | 0

Hi, I wanted to implement MATLAB code "the scrambled pixel value is further converted to binary information sequence of size 8 bits ".

3 days ago | 0

pathdef.m dont execute in 2020a
User turns out to have F:\feature.m that is interfering with use of system_dependent()

3 days ago | 1

| accepted

How to put conditions to use data from command window
Assuming that CD is a scalar, and that AB and BC are column vectors and that Speed is a row vector: statuses = ["unsuccessful",...

3 days ago | 0

Need Help Understanding a Line of Code Related to Strings

4 days ago | 1

Symbolic summation of vectors/matrices
In MATLAB, it is tempting to use symsum(), but unfortunately that will not work. The difficulty is that the variable of summatio...

4 days ago | 1

| accepted

how to convert an image into bits???
reshape() to reconstruct the image. The remote side will need to know the image size, so either the size will need to be fixed o...

4 days ago | 0

I dont understand, i try to use solve to find x in Matlab Function Block
@Benjamin has shown you how to solve the equation using syms However, syms requires the MATLAB Interpreter, and so is only ava...

5 days ago | 0

| accepted

Symbols to numeric values
I already showed you X = double(sol.X) Y = double(sol.Y) Z = double(sol.Z) ... about 11 hours ago. To get that format of di...

5 days ago | 1

Unique workspace for each instance of Interpreted MATLAB Function block?
https://www.mathworks.com/help/simulink/ug/model-global-data-using-data-stores.html "In this example, the top model uses a sig...

5 days ago | 0