Answered
I am supposed to assign a license to a colleague but I cannot find the license center.
https://www.mathworks.com/mwaccount/ is the license centre.

6 days ago | 0

Answered
Shift in lines when creating videos using VideoWriter
This is a known problem in R2023b for the Apple Silicon Possibly it only happens when you only write a single frame to the movi...

6 days ago | 0

Answered
"Could not find version 7.17 of the MCR" error while running Matlab2013b with DKE, even after downloading Compiler 7.17 and 8.2
mcr 7.17 corresponds to r2012a https://www.mathworks.com/products/compiler/matlab-runtime.html

6 days ago | 0

Answered
Creating a loop to assign 20 players to two teams and deleting columns
numPlayers = 20; ftPercent = randi([50,90],1,numPlayers); avgNumTurnover = randi([0,8],1,numPlayers); playerInfo = [1:1:numPl...

6 days ago | 0

Answered
Converting table data from Celsius unit to Fahrenheit unit
Result = T(:,10:17) * (9/5) + 32 ;

6 days ago | 0

| accepted

Answered
Im creating a nested treemap, but the output is giving different colors for the legend and treemap
legend() does not permit passing in an N x 3 array of legend colors. legend() does not permit setting Color at all. legend() p...

6 days ago | 0

Answered
I can't minimize fval value using this code
You have constraints = @(capplcsz_opt) constraint_GA(capplcsz_opt, Vmax, Vmin); when you should have constraints = @(capplcsz...

6 days ago | 0

Answered
How to interface symbolic solutions with numeric ode solvers
When you symfun(), an anonymous function is generated that does not use the symbolic toolbox. The traceback for the anonymous ...

6 days ago | 0

Answered
Error of array exceeds maximum array size preference
Preferences -> Workspace -> MATLAB Array Size Limit Turn off "Limit array size to a percentage of RAM" Meanwhile, make sure t...

7 days ago | 0

Answered
App designer button down callback with keypress
You need to check the figure property "SelectionType" The ability to check the details of modifiers is for figure WindowKeyPres...

7 days ago | 1

| accepted

Answered
I was trying to find the optimised design variables using GA in MATLAB. When I run the program it was running and running. Can anyone please check the loops used in the codes?
Your objective function calls [~, ~, ~, ~, ~, ~, ~, ~, ~, ~, ~, ~, E_MCP, E_PIP, E_DIP] = calc_EFG(x); Your nonlinear...

7 days ago | 0

Answered
How can i restrict the cross cursor in ginput function into a specific UIAxes instead of it showing in the whole appdesigner figure?
You can do something using the undocumented overobj() but see https://www.mathworks.com/matlabcentral/answers/327043-change-the-...

7 days ago | 0

Answered
how to pass initial guess to ga(),this is my sample code and i want to initialize complex initial guess in the code please help
In order to pass in an initial guess, you need to create an options structure and set InitialPopulationMatrix specifies an ini...

7 days ago | 0

| accepted

Answered
getting the error "Conversion to logical from string is not possible" while using UI table
app.Channels = string(subsystem.ChannelNames); app.Channels will store channel names app.SelectedChannels = app.Channe...

8 days ago | 1

| accepted

Answered
I need help trying to code an mn by mn A matrix to be use to calculate temperature
if i >= 2 && i <= c-1 if j >= 2 && j <= d-1

8 days ago | 0

Answered
Reference to non-existent field 'folder'.
In sufficiently old versions of MATLAB, there is no .folder field in the results of dir. I think .folder was added roughly R20...

8 days ago | 0

Answered
Incorrect rendering of legend in an error bar plot having both verticle and horizontal error bars.
You do not have 6 lines plus constant lines. You have lots and lots of errorbar() objects, some of which happen to have the sam...

8 days ago | 1

Answered
I am wanting to delete these entries of vector x when x = 0. How do I do this. Matlab gives me an error right now saying index cannot exceed 38 but I don't know what's wrong.
@Torsten's recommendation of x(x==0) = [] is the best. But alternately, for i = 56:-1:1 if x(i) == 0 x(i) = [] ...

8 days ago | 0

Answered
vectorization examples for efficiency
x = 0:1/99:1; zeros(size(x)); x+1 a=[x;x]; [2*x; x] repmat([1;1;0],1,10);

9 days ago | 0

| accepted

Answered
how to enter exponential multiplication with a time dependent array
You need to decide whether you are doing array indexing, or are creating a formula. t=0:0.06:3; fa(t)=10*exp(-5*t) is interpr...

9 days ago | 0

Answered
Getting the error "Dimensions of arrays being concatenated are not consistent" but I can't tell why. (See my code in the body of this post)
(y(1))^2 + (y(2))^2 -2*y(2)+2 (y(3)^2) - 5 Inside [] that is interpreted as (y(1))^2 + (y(2))^2 -2*y(2)+2, (y(3)^2) - 5 You a...

9 days ago | 0

Answered
Why does my code say incorrect number or types of inputs or outputs for function specifyCoefficients?
There is no 'Face' parameter for that call.

9 days ago | 0

Answered
Index exceeds number of array elements
You accidentally created a variable named log or named exp

9 days ago | 0

Answered
why iam getting error
The colon operator always has to be followed by a second parameter, except when it is being used as the sole index to an array. ...

10 days ago | 0

Answered
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)untitled('pushbutton1_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIContr
The .fig file was saved containing a reference to push​button1_Ca​llback but there is no push​button1_Ca​llback defined in your ...

10 days ago | 0

Answered
Hello, I have an array of values in "In", I would like to extract the samples in "In" between the indices specified in "SIdx" and "EIdx". SIdx and EIdx are also arrays.
In = 1:100; SIdx = [1 9 33 76]; EIdx = [5 13 42 83]; Out = arrayfun(@(S,E) In(S:E), SIdx, EIdx, 'uniform', 0).'

10 days ago | 1

Answered
How does wblrnd generate random numbers?
Each time a random number is generated, the current seed changes to another seed, in a complicated but deterministic manner. rn...

10 days ago | 1

| accepted

Answered
Is there a way to refer to elements in Matlab App using variables?
for r = 1 : 3 for c = 1 : 3 app.Button(r,c).Text = app.images(app.grid(r,c),1); end end

10 days ago | 0

Answered
Installing real time kernel on RHEL 9 (RedHat Enterprise 9)
You are using RedHat 9.3, but currently it is restricted to RedHat 9.2 https://www.mathworks.com/help/sldrt/release-notes.html ...

11 days ago | 0

| accepted

Answered
Data types in TABLE
Excel itself recognizes: numbers (including dates) text logical error such as #VALUE! Excel is unable to distinguish betwee...

11 days ago | 0

| accepted

Load more