Community Profile

photo

Walter Roberson


Last seen: ein Tag vor Aktiv seit 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

Statistiken

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

Abzeichen anzeigen

Content Feed

Anzeigen nach

Beantwortet
Enforcing values in ODE solver
Use events, and remember that events are only detected when a value crosses the trigger, and are not detected when the system st...

etwa 6 Stunden vor | 0

Beantwortet
Getting an fmincon error at initial point
t_LM = (((x(8)-x(7))-(x(6)-x(5)))/log((x(8)-x(7))/x(6)-x(5))); % deltaTLM calcuation - REMEMBER X(9) IS UNCERTAINTY ALSO FIX THE...

etwa 21 Stunden vor | 0

Beantwortet
Defining and calling functions in MATLAB
Create a function called tempC2F function tempC2F that will accept an input argument of a single temperature in degrees Celsiu...

etwa 24 Stunden vor | 1

Beantwortet
Any way to automatically save my LiveScript .mlx file as a Text-based .m file?
No, there is not.

ein Tag vor | 0

| akzeptiert

Beantwortet
I am unable to solve this array dimensional error can someone help please?
function P_battery = EMS(netP, soc) soc_max = 95; % percent battery_max = .116; %kW P_battery = zeros(1, length(netP)); ...

ein Tag vor | 0

Beantwortet
How increase abaqus calling and running speed from Matlab
Create your abaqus object first. Then pass it around by parameterizing functions; http://www.mathworks.com/help/matlab/math/para...

ein Tag vor | 0

Beantwortet
Is it possible to add a new cost function to CHOMP?
There is no way to specify a custom cost function for https://www.mathworks.com/help/robotics/ref/manipulatorchomp.html

ein Tag vor | 0

| akzeptiert

Beantwortet
Processing cell arrays as a batch instead of one by one
cluster_data = iniclu{i,:}; % I assuming 50 cells of 1st row is read into cluster_data when i = 1 and so on You are d...

ein Tag vor | 1

Beantwortet
I have this problem Exiting fzero: aborting search for an interval containing a sign change because no sign change is detected during search. Function may not have a root.
syms V Q = @(v) sym(v); Pr = Q(4); R = Q(08206) / Q(10)^5; T = Q(450); Tc = Q(405.5); Pc = Q(1113) / Q(10)^1; P = Pr*Pc; ...

ein Tag vor | 0

Beantwortet
Time Derivative Properties of Fourier Transform
You cannot -- the fourier transform is based on frequency rather than time.

ein Tag vor | 0

Beantwortet
Confronting dates in a constrain
Perhaps decision_variable * (date(x) > date(y) + duration) leading to date(y) - date(x) + duration multiplied by something. ...

ein Tag vor | 1

Beantwortet
Matlab shuts down during loop using audiowrite
I suspect that you are running into a limit on open files -- I suspect that audiowrite() is not closing files. You could experi...

2 Tage vor | 0

Beantwortet
How do I get my MATLAB code to display an error if the user input number is less than four digits and has less than two distinct numbers?
user = input('Please enter a 4 digit number: ') % User inputs a number digits = num2str(user); if numel(digits) < 4 || l...

2 Tage vor | 0

| akzeptiert

Beantwortet
How do I loop through a matrix and break it up into distinct sections?
mask = ismember(YourData(:,2), [55 56]) .'; %row vector result starts = strfind([0 mask], [0 1]); stops = [starts(2:end)-1, s...

2 Tage vor | 0

| akzeptiert

Beantwortet
Using continous time in Matlab editor
Pi = sym(pi); syms t phi = Pi * ((31*2/360) - (0.028*sin(2*Pi*t))) % Phase shift (pi.d in rad) & t is time phi ...

2 Tage vor | 0

Beantwortet
Does the Symbolic Toolbox Support 0- and 0+ ?
posZ = sym(0); negZ = sym(-0); negZ2 = -sym(0); 1/posZ 1/negZ 1/negZ2 So, no, there is no negative 0 -- if there were then...

2 Tage vor | 0

Beantwortet
Memory management - variable size array
At the MATLAB level, nearly everything is a variable-sized array. There are relatively few objects that enforce fixed-array limi...

2 Tage vor | 0

| akzeptiert

Beantwortet
Unexplicable "Operands to the logical AND .." error from "histogram" command
In R2023a, the first line of histogram.m that is not a comment, is line 134; you are getting the error on line 64. You have som...

2 Tage vor | 1

| akzeptiert

Beantwortet
Obtaining frame forces from Sap2000
You have to do a lot of explicit type casting. See https://www.researchgate.net/publication/337200068_SAP2000-MATLAB_Integratio...

3 Tage vor | 0

Beantwortet
getting data from workspace to Simulink
If you insist on using a From Workspace block, then you need to insert a leading 0 into the vector to act as the time coordinate...

3 Tage vor | 0

| akzeptiert

Beantwortet
can you help me use this command in my matlab r2022a?
power_Microgrid_IslandedOperation_DroopControl

3 Tage vor | 0

Beantwortet
How can i find the lost workspace data if i did not save as .mat file?
Sorry, the data is gone and cannot be recovered. You might be able to make use of the command history to re-do some of the prev...

3 Tage vor | 0

| akzeptiert

Beantwortet
Uiwait does not work app designer
if app.VButton.Value == 1 | app.GButton.Value == 1 break end You are not testing the state of the pause button. You ...

3 Tage vor | 0

Beantwortet
Error when getting function to test testprime
The clear; clc makes your code into a script, and makes the declaration of testprime there into a local function for the scri...

3 Tage vor | 0

Beantwortet
Ones function printing out
The ones is the output of your function. You are running the function by pressing the green Run button, which executes the funct...

3 Tage vor | 1

Beantwortet
Hi I have a problem when I preform the convolution original image with kernel of ones as the size of the kernel increases the output is appearing totally white Image.
Image = imread('cameraman.tif'); Image ranges from uint8 0 to uint8 255 Image1 = double(Image); Image...

3 Tage vor | 0

Beantwortet
Why does this code give me an error?
[bestX, fmin] = fmincon(objectiveFunctionForLocal, gBest, [], [], [], [], lb, ub, @(x) nonlinear_constraint(x), options, initial...

3 Tage vor | 0

Beantwortet
Matlab figure: The legend replaces the graph completely and there is no graph
C:\Users\Elino\OneDrive\Documents\MATLAB\ENCI711\Copy_of_Publish Version\set.m You need to rename that file, or move it so that...

3 Tage vor | 1

| akzeptiert

Beantwortet
Matlab mobile doesn't execute startup.m at startup
The model of MATLAB Online is as-if it were continually running. ... Sort of. The reality is that when you leave a MATLAB Onli...

3 Tage vor | 0

Beantwortet
Getting an indexing error when using functions
uexact = uexact + uelem(x1,x2,k,L); Okay, you are invoking uelem() on a scalar x1 out = integral(@(x) ff(x,x1,x2,k...

3 Tage vor | 1

| akzeptiert

Mehr laden