Walter Roberson - MATLAB Central

Statistics

All
MATLAB AnswersCodyFrom 01/11 to 02/25Use left and right arrows to move selectionFrom 01/11Use left and right arrows to move left selectionTo 02/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%

RANK
1
of 297,169

REPUTATION
137,637

CONTRIBUTIONS
37 Questions
60,842 Answers

ANSWER ACCEPTANCE
48.65%

VOTES RECEIVED
18,653

  • Most Accepted 2024
  • Most Accepted 2023
  • Solver
  • First Review
  • Most Accepted 2022
  • Most Accepted 2021
  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016

View badges

Feeds

View by

Answered
elseif that goes through previous statements but with different parameters
Maybe [~, bin] = ismember(e(t), [1 2]); if bin > 0 if rand() < p5(siminfo1state(t,j),siminfo2state(t,j)) if rand...

2 hours ago | 0

Answered
I'm trying to find solutions to variables in a system of non linear eqations, that represent a geometrical puzzle.
syms x y z S2 S h H R R2 AA t t2 OJ b r eqns = [ S==x+y+z, y^2==4*R^2+4*(R2)^2-8*R*(R2)*cosd(b), x^2==r^2+h^2, r/R==h/H, r...

3 hours ago | 0

Answered
syms to another .m file
As @Torsten says, you can just pass symbolic expressions as parameters. However, you need to be careful about assumptions. All ...

4 hours ago | 0

| accepted

Answered
Simulink Threshold with action
Use a "While Iterator" block; https://www.mathworks.com/help/simulink/slref/whileiterator.html Initialize the input signal. ...

6 hours ago | 0

Answered
Speed up this bottleneck line of code
n = 10000; m = 5000; k = 20; tic a = rand(n,m); b = rand(n,m); c = rand(m+k,n)*1.1-0.1; toc ind1 = repmat([ones(1,m/...

6 hours ago | 0

Answered
Integrating a very long expression containing symbolic values
How can I integrate such an expression? You can wait however many months it takes. I would point out that you have not restric...

22 hours ago | 0

Answered
Curly braces within a subscript?
text(0,1,-0.075,'\fontname{Times} \fontsize{14}\bf \it e_{\{2\}}');

22 hours ago | 0

Answered
How to make ode45 store/return only results of every n-th time step to reduce memory use?
Set your tspan to be a vector of three elements (more correctly, use more than 2 elements). When you call ode45(), set it up to...

1 day ago | 0

Answered
I keep getting an error message in my code
plot(t,data_na(i,:),'color',col(:,i),'LineWidth',2); My guess is that you need plot(t,data_na(i,:),'color',col(i,:),'LineWidth...

2 days ago | 0

Answered
I am working on a program for class and I am having trouble understanding what the problem is asking. Can someone advise me on how I should write the code?
Create a program that asks the user the following: which lot are you using? You can use input or questdlg or inputdlg or menu o...

2 days ago | 0

| accepted

Answered
MATLAB Indexing type dependence (bug?)
eps(single(67347456+50)) single precision numbers are 8 apart by the time of 67347456

2 days ago | 0

Answered
Diferent answers to same cmd
A=[-.01 .1 0 32.2;-0.4 -.8 180 0;0 -.003 -.5 0;0 0 1 0] Your screen image shows you using -32.2 rather than 32.2

2 days ago | 1

Answered
loading multiple.im7 images into Matlab using readimx function
filename = 'C:\....\n_2000_075'; im7_files = dir([filename,'/*.im7']); imgNum = length(im7_files); ...

2 days ago | 0

Answered
ERROR while calculating Euclidean distances to multiple tables in cell array
Use for j = 1:width(C_all_steps_no_break{i})

3 days ago | 0

Answered
i am trying to figure out a way to store data from my rasberry Pi 5 sensors in an array on MatLab, i am new and wanted some guidance as to how i can add that.
near the top insert temperatures = []; pressures = []; temp_fs = []; Altitudes = []; Then before temperature = readTempe...

3 days ago | 0

Answered
How do you recieve your transmission, Live-script
sdrtx() supports BISTLoopbackMode

3 days ago | 0

Answered
Cannot open Matlab 2024b (apple silicon)after updating to MacOS 15.3.1,m2pro macbookpro
This is not happening to me on Intel MacOS 15.3.1 However, it sort of sounds like the problem that was recently faced opening o...

4 days ago | 0

Answered
Can someone please explain how this function? It is for simultaneously recording with the input(X) being white noise at FS 44100hz
These days, since R2017a, the provided code should be replaced. Instead the provided code should use audioPlayerRecorder https:/...

4 days ago | 0

Answered
multiple equations to steady-state system to transfer function
The Control System Toolbox functions, such as ss and tf do not support symbolic variables at all. There are very very few functi...

4 days ago | 0

Answered
利用2024a版本下的runtime进行complier程序封装后,怎么在win7系统上使用?
R2012a was the last release that was compatible with Windows 7. R2021b was the last release that was compatible with Windows 7 ...

4 days ago | 0

Answered
Is there a way to make MATLAB show time derivative with symbol_dot
syms x(t) y(t) x_dot(t) y_dot(t) J = jacobian(x*y) K = subs(J, {diff(x,t), diff(y,t)}, {x_dot, y_dot}) However!! In the expre...

4 days ago | 0

Answered
Column Format in a Table when using writetable
varfun calling compose specifying a character vector format (so getting out cell array of character vectors.) Repeat as often ...

4 days ago | 0

Answered
Plotting around zero deg. Angle
When you specify a vector for x for imagesc, MATLAB ignores everything except for the first and last entries. It does not care t...

5 days ago | 0

Answered
How to stop while loop with the Command Window ?
Your existing code never reads from the keyboard, so the keyboard is effectively locked out during execution (well, not locked o...

5 days ago | 0

Answered
ode45 code for 2 body problem
Use axis equal Your x axis range is different from your y axis range, so you are seeing a distorted view.

5 days ago | 0

Answered
Plotting the graph of only the last iteration
syms T U for n=1:10 y=int(H(U),0,T); yy= r0 + ((1-a)./M)*H(t).*r1 + (a./M)*y; r1=yy; end The output in y is symbolic -- ne...

5 days ago | 0

| accepted

Answered
how to send parameter function between app
Methods are also passed the object they relate to, unless they are marked as being "static"

5 days ago | 0

Answered
How to get consistant results when testing code performance
You could potentially code MATLAB-level sim() calls, inside a timeit However according to https://steveeddins.com/story-of-tim...

5 days ago | 0

Answered
How to learn System Composer
There is a free System Composer Onramp course; https://matlabacademy.mathworks.com/details/system-composer-onramp/orsc

6 days ago | 1

Answered
I have some questions about the example "Denoise Signals with Generative Adversarial Networks"
When you openExample('deeplearning_shared/DeepSignalDenoiserExample') then the directory that you are automatically cd()'d to ...

6 days ago | 0

| accepted

Load more

Go to top of page