
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.
C, MATLAB, Shell, Perl, Fortran
Spoken Languages:
English
Statistiche
RANK
1
of 277.778
REPUTAZIONE
131.320
CONTRIBUTI
36 Domande
58.305 Risposte
ACCETTAZIONE DELLE RISPOSTE
50.0%
VOTI RICEVUTI
17.445
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Content Feed
How can I iterate through all .txt files in a folder to process them with already written code?
projectdir = 'location/of/text/files'; dinfo = dir(fullfile(projectdir, '*.txt')); filenames = fullfile({dinfo.folder}, {din...
38 minuti fa | 0
How we can use fminsearch with a vector as input and return a scaler as an output?
y is 1000 x 1. You are passing scalar 0 as the initial value for fminsearch() so at each step h will be 0 inside your gradient ...
circa 2 ore fa | 0
How can I find the elapsed time between two images from video file with matlab.
Unfortunately, none of the common video formats record absolute time for frames. If you are using videoreader() then you can u...
circa 11 ore fa | 0
textscan does not scan the text as accurate as strread, i have "errors"
a = "C +01.314 +027.11 +01.225 +01.578 +01.579 Air" Result = textscan(a,'%s%f%f%f%f%f%s','Delimiter',' ', 'multi', true) ce...
circa 12 ore fa | 1
how do I turn a piece of code into a parametric optimisation
% % Matrix properties (8552 example) Em = 380E3; % Young's modulus num = 0.22; % Poisson's ratio Vv_vals = [0.01, 0.38, 0.47...
circa 12 ore fa | 0
| accettato
Problems using Plot function
You are plotting one point at a time. By default, plot() does not put in any markers, and plot() can only draw lines when there ...
circa 12 ore fa | 0
| accettato
A unknown bug on matrix
Consider: A = [3 2 1 0 -1 -2 -3] Are you expecting the result to be [3, 2, 1, (0-1-2-3)] --> [3, 2, 1, -6] a vector of 4 eleme...
circa 15 ore fa | 0
| accettato
How to solve this equation?
There are multiple solutions. p=0 is a solution for all a values, but there are also complex solutions -- and you did not rule o...
circa 15 ore fa | 0
how to reduce time for this Convolutional Neural Network to get result?
See https://www.mathworks.com/help/stats/fitcecoc.html#d124e356431 for information on 'options' 'useparallel' for computation in...
circa 16 ore fa | 0
i need wave_gen function but i can't find it!!!
See https://www.mathworks.com/matlabcentral/answers/26814-use-of-wave_gen-function#answer_34917
1 giorno fa | 0
serialport / bluetooth issues
What that second post is telling you is that serialport() has an internal onCleanup that is invoked when serialport() detects th...
1 giorno fa | 0
looking for convenient way to extract matrix from 1*n*n
A = zeros(5,5,5) B = permute(sum(A,1), [2 3 1]); size(B) squeeze() is a convenience function that ends up invoking permute()....
1 giorno fa | 0
tiledlayout() "exceeds array bounds" when repeated running the script, but works when workspace cleared
tiledlayout.Padding = 'compact'; That creates a struct named tiledlayout <https://www.mathworks.com/help/matlab/ref/matl...
2 giorni fa | 0
trying to create a plot of cost per mile when the trailer weight increases in a program I wrote and i cannot get it to work.
You were doing well, but starting from 'diesel' when C==6 then you have elseif TW>2000 && TW<=4000 and...
2 giorni fa | 0
Simplifying equations with trigonometric terms written in terms of degrees and not radians
C2D = @(C) cosd(rad2deg(children(C, 1))) mapSymType(Expression, 'cos', C2D)
2 giorni fa | 1
Error using ' TRANSPOSE does not support N-D arrays. Use PAGETRANSPOSE/PAGECTRANSPOSE to transpose pages or PERMUTE to reorder dimensions of N-D arrays.
Your nc file has lat, long, one depth, and multiple times, making it a 4 dimensional array. You are trying to pcolor() the entir...
2 giorni fa | 1
Unable to use ODE45 to model data, error with "Unable to meet integration tolerances without reducing the step size below the smallest value allowed (4.708773e-14) at time t."
c0=[0.0188,0]; A=beta(3)*c(1)^beta(1); B=beta(4)*c(2)^beta(2); I would think it is highly likely that that ode23t i...
2 giorni fa | 0
Help for matrix in matlab
prod(M, 2) sum(M, 2) min(M, 2) max(M, 2) any(M, 2) all(M, 2) std(M, [], 2) amongst others
2 giorni fa | 0
How to solve "Inf" from table calculation in GUI
your xtes and ytes are exactly the same so subtraction gives 0.
3 giorni fa | 2
uifigure alternatives for gcf, gcbf, gco, gcbo, gca, and any other legacy figure based functions
I used to think that those functions simplify didn't apply to uifigure and children. However someone indicated that the real iss...
3 giorni fa | 0
can you specify a newly created sheet to be at the start of a spreadsheet using writetable?
no, writetable cannot manipulate the tab order. If you happen to be using Windows see https://www.mathworks.com/matlabcentral...
3 giorni fa | 1
| accettato
helps to solve objective function with restriction, to obtain the value of the constant C
The integral of the density function must be exactly 1. The c is a constant multiplier. So if you calculate the integral without...
3 giorni fa | 1
All functions in a script must be closed with an 'end'.
Delete or comment out everything from the "function" line. * Your script never invokes the function * functions inside a scr...
4 giorni fa | 2
min and max Functions Breaking After Conversion From Symbolic to MATLAB Function
Symbolic variables (that are not symmatrix) are scalars. For scalar x, min(5,x) is the same as min([5,x]) Symbolic operations...
4 giorni fa | 1
| accettato
Getting error in Inverse Kinematic block using robotics system toolbox for 2 DOF planner robot
rename your MATLAB\inverseKinematics.m to a different name. The current name is interfering with a built-in model with the same ...
5 giorni fa | 2
| accettato
How to make colorbars symmetric?
In order to have the color scale be consistent between the two, the axes CLim property must be the same for the two plots. In pa...
5 giorni fa | 0
how can improve my code performanece, it uses a syms vector, i tried to delete y=t= sym(zeros(1, m + 3)); and it's faster but the solution of the function its wrong
t(k)=(-(4*S*R*k*(k+1)+4*S*R*(k+1))*t(k+2)+(1+FS-b*S*ra-6*S*R^2*(k-1)*k-12*S*R^2*k)*t(k+1)+(-4*S*R^3*(k-2)*(k-1)+2*...
5 giorni fa | 0
Storing parameters from a for loop in arrays
You have theta1(i, :) = theta(1); theta2(i, :) = theta(1); Notice you are storing theta(1) in both cases. You should ...
5 giorni fa | 0
assign name row to table
Either use LastName = ["Sanchez";"Johnson"]; Sistemi_check.Properties.RowNames=LastName; or else LastName = {'Sanchez';'John...
5 giorni fa | 2
Latex Failing for Big Linear System
cla probes = 1:10; base = repmat('\pi', 1, 300); %900 characters for K = 1:length(probes) msg = "$" + base + repmat('x...
5 giorni fa | 0
| accettato