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

Error using integer wavelet transform
[cA, cH, cV, cD] = lwt2(double(data), 'LiftingScheme', liftscheme);

etwa 11 Stunden ago | 0

How to check the function call stack during the debugging process
What you might be running into is that callback functions are considered to not have a calling function. Each callback is execut...

etwa 13 Stunden ago | 0

how to padding array with zeros to limit rows (I can choose the limit)
[AB; zeros(21-size(AB, 1),size(AB, 2))]

etwa 22 Stunden ago | 0

| accepted

How do you remove x-axis tick marks and keep the numbers?
plot(rand(1,20)) ax = gca; ax.XAxis.TickLength = [0 0.1];

ein Tag ago | 0

How to write code for solving system of nonlinear inequality
x=-10:1:10; for i=1:length(x) if x(i)>=0 y(i)=6*x(i)^2-5*x(i)+14; elseif x(i)>10 disp('x out of ran...

ein Tag ago | 0

| accepted

How do I find the index of the first element equal to 0 for each row of a matrix in a fast way
You cannot do it with a single find() A vectorized way to do it is M = ones(5,10); M(randperm(50,10)) = 0; M idx = sum(cum...

ein Tag ago | 0

Using a for- loop to extract a range of columns every n-columns
data = rand(64,10000); startcols = 1:2000:size(data,2)-1999; for w = 1:length(startcols) sc = startcols(w); extrac...

ein Tag ago | 0

| accepted

What is a comparison of m file and livescript file?
Livescript can insert text and equations as narration Livescript inserts plots "in-line" or to the right hand side, instead of ...

2 Tage ago | 0

| accepted

Is there a way to modify the path for ".." ( shortcut ) ?
You can change the startup folder; see https://www.mathworks.com/help/matlab/matlab_env/matlab-startup-folder.html The effect ...

2 Tage ago | 0

How add my folder '+op' to the path Matlab?
You can never add a + folder to the MATLAB path. Instead, you add the folder containing the + folder.

2 Tage ago | 0

Spit an array when the value 0 occurs until the value 2
Your request is a bit ambiguous, so I will give two possibilities. loc0 = find(YourArray == 0, 'first'); %use this loc2F = ...

2 Tage ago | 1

How to save an app property to an .m file?
When you save() with -struct then the name that you give must be the name of a full variable. That is, copy app.dataPaths to a ...

2 Tage ago | 0

| accepted

run matlab help function_name from terminal
matlab -nodisplay -nodesktop -r "help function_name"

2 Tage ago | 0

How do i get multiple values all at once from cell array?
Your options: loop cellfun arrayfun (effectively the same as cellfun) cell2mat to form a 3d array, and then index; this is v...

2 Tage ago | 0

t=[1 2 3 4 5] for i=1:4 cmd = sprintf('@(a)%.16g.^a-%.16g.^a', t(i+1), t(i)); F{i} = str2func(cmd); end F

2 Tage ago | 0

| accepted

FAQ: Why is 0.3 - 0.2 - 0.1 not equal to zero?
Consider any finite-length positional notation with a fixed base, B. For example, base 10 and 0.193 meaning 1 * 10^-1 + 9 * 10^-...

2 Tage ago | 1

why 350*0.001 - 0.350 and 351*0.001 - 0.351 are different from zero
Consider any finite-length positional notation with a fixed base, B. For example, base 10 and 0.193 meaning 1 * 10^-1 + 9 * 10^-...

2 Tage ago | 1

Undefined function 'adaptcluster_kmeans' for input arguments of type 'uint8
That function is not part of MATLAB. You need to install https://www.mathworks.com/matlabcentral/fileexchange/45057-adaptive-kme...

2 Tage ago | 0

How to reshape any matrix using while loop or any other method?
A = B(:, 1:6:end) ;

3 Tage ago | 0

How to free memory from C-code in simulink embedded matlab code block
StopFcn will not have access to the persistent variables. Use global and a datastore

3 Tage ago | 0

Can Matlab record an audio with a sampling frequency of 800 hz
audiorecorder cannot be used for this purpose. Although the frequency range supported is operating system and hardware specific,...

3 Tage ago | 0

Do you edit code on Github?
The code you upload to Github should be tested code (with the possible exception of Github collaboration mode)

3 Tage ago | 0

| accepted

Minimisation of a scaler function
The function is ST(fSL .* (exp(scale .* SC))) with varying values of "scale". You did not happen to show the definition of ST ...

3 Tage ago | 0

Good day, Please I tried searching for drive cycle on my Simulink but I didn't find it.
https://www.mathworks.com/help/autoblks/ug/install-drive-cycle-data.html You need Powertrain Blockset

3 Tage ago | 1

| accepted

How to do +,-,*,/ with one scalar and one matrix(IN GUI)?
str2double always returns a scalar when the input is a character vector or character array. It only returns a matrix if the inpu...

3 Tage ago | 1

How to make xtick where there is a tick label in bold?
xticklabels({'','','\bf 1980','','','','','\bf 1985',... '','','','','\bf 1990','','','','','\bf 1995','','','','','\bf 2...

3 Tage ago | 0

Divide an image vertically into two equally luminous parts, ..., calculate the luminance of each part.., PERSONAL NON-FUNDED RESEARCH,
"divide the picture vertically such that the two parts (left and right) have equal luminance" Consider a checkerboard pattern...

3 Tage ago | 0

a single line of code that will take complex variables x and y and define a variable z as the phase of the product of x and y.
https://www.mathworks.com/help/matlab/ref/angle.html but does the angle need to be in degrees or radians? And what range?

3 Tage ago | 0