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
Statistics
RANK
1
of 277,486
REPUTATION
130,520
CONTRIBUTIONS
36 Questions
57,972 Answers
ANSWER ACCEPTANCE
50.0%
VOTES RECEIVED
17,298
RANK
of 18,674
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
Channel bandwidth defination 5g
The baseband component carrier waveform in this example is characterized by multiple subcarrier spacing (SCS) carriers So this ...
8 hours ago | 0
matlab equation to latex
The latex function does not have any option to add that in automatically, so you would need to use text manipulation to add it i...
9 hours ago | 0
Error using parameters in fsolve()
When you use fsolve, the function you pass to fsolve must accept exactly one variable. If you are trying to model multiple model...
10 hours ago | 0
| accepted
How do I record from two spectrometers simultaneously
The OceanOptics programming manual is clear that the drivers are written in Java, and that The wrapper.getSpectrum() met...
1 day ago | 1
| accepted
Contour Plot with Boolean Indices (z must be at least a 2x2 matrix)
X = 1:1:5; Y = 1:1:10; [X,Y] = meshgrid(X, Y); Z = X; bool = Y <= 5; Z(bool) = Y(bool); contour(X,Y,Z)
1 day ago | 0
| accepted
Pause function in matlab for 1 millisecond
The Windows task scheduler runs every 15 ms, so you cannot get 0.001 resolution without resorting to something like busy-wait. ...
1 day ago | 0
3D plot with specific values
x = 1:7; y = 1:9; z = randi([0 800], length(y), length(x)); surf(x, y, z) Except you would use your actual Z data.
1 day ago | 0
| accepted
Putting a cell into a .mat file
%% Loading images imgfolder = 'Images'; % Checking how many items are in the folder list = dir( fullfile(imgfolder, '*.ti...
1 day ago | 0
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe
Orientation >= -3pi/4 MATLAB does not have any implied multiplication. 3pi is invalid in MATLAB. Side note: I recommend using ...
1 day ago | 0
I no longer have acces to Matlab after a reinstall even though it was working fine before that
As a student, there are two possibilities: the student can purchase a Student License or Student Suite License, typically direc...
1 day ago | 0
Can Web App collect Environment Variables from client PC hosting web browser?
.. maybe? You can link in Javascript to App Designer, and Javascript can access environment variables https://dmitripavlutin.c...
1 day ago | 0
How to plot subplots in one figure to showing 4 seasons of chlorophyll-a data?
Try % Create a new figure fig = figure; % Add the NEM subplot ax = subplot(fig, 2, 2, 1); imagesc(ax, lon, lat, NEM); co...
2 days ago | 0
how i remove blue portion from graph
It appears that you have created a surface from a 2D array that has a row of 0 on the top and left edges. Depending exactly ho...
2 days ago | 0
| accepted
Which reference should I cite when using the fmincon with interior point method
/matlabcentral/answers/1693295-how-to-cite-matlab-2022#answer_939675 talks about how to cite MATLAB its...
2 days ago | 0
How can remove these outlier from the files sigle vector ?
clean_m = m; clean_m(k) = []; In the special case that you do not need the original m afterwards you can simplify down to m(k...
2 days ago | 0
How to increase sampling rate without change of the signal bandwidth
resample and then put it through a low pass filter at 600 Hz . The source rate is 600 Hz so logically the low-pass should leave ...
2 days ago | 0
matrix of data into a formula
This is to filt Y = ax + bn + cs + dz + constant xvec = list of valid x values, in the order used to construct Y nvec = list o...
2 days ago | 0
Plotting a figure, with the color of the plot based on a secondary variable
plot() does not have the ability to plot an individual line with different colors for different vertices. I suggest plot(theta,...
2 days ago | 0
| accepted
addpath command error after macbook update
See https://kb.synology.com/en-us/C2/tutorial/How_to_enable_Full_Disk_Access_on_a_Mac for how to grant full disk access -- thoug...
2 days ago | 0
How to match table values to variables?
als = T.Altitude; orbits = categorical(T.Orbit); [als, idx] = sort(als); orbits = orbits(idx); Now you can discretize with t...
2 days ago | 0
Modify an array elements using a for loop
As an outline, for index_variable = start_value : increment : final_value if some_array(index_variable) satisfies some con...
2 days ago | 0
| accepted
How to save a function handle to a .m file
myfunc = @(x,y,z) x.^2+y+z; writelines("myfunc = " + func2str(myfunc), "myfunc.m") %crosscheck dbtype myfunc.m
2 days ago | 0
Why is fscanf reading a 0 from my input file?
Your code has Height = fscanf(fid, '%s', 1); %Change height of Node B,D,F with a varrying theta if (Height ...
2 days ago | 0
| accepted
How do I prevent this array from displaying in the live editor?
mean_error() is not a bat365-provided function. It is a third-party function or one of your functions, and inside it there is...
2 days ago | 0
| accepted
Communication between matlab and arduino
Considering the low frequency at which you are probing (every half second or every 10 seconds), it would probably be easier for ...
2 days ago | 0
Displaying Output in Command Window
One way would be X = " Damping Ratio: " + dr + " Period: " + T + " Undamped Frequency: " + wn + " Damped Frequency: " + wd + " ...
2 days ago | 0
Error in Double Integration problem
syms q theta q becomes a scalar symbolic variable q=sqrt(qx^2+qy^2); but now it is an expression fun = matlabFunction(Phi,'V...
2 days ago | 0
How to stop pi appearing as a text in the disp result?
sympref('FloatingPointOutput', true); syms x f= cos(x); t6= taylor(f,x); val=subs(t6,x,pi/4); disp(val); I do not recommen...
2 days ago | 0
Creating an 8 bit uniform scalar quantizer
quantize() or histogram (the 'bin' output) or rescale to 0 to 255*(1-eps) and floor()
3 days ago | 0