已回答
How do I complete my matlab code for a given formula.?
The first thing you have to do is figure out which of the two clusters corresponds to which condition. kmeans() clustering with...

1 month 前 | 0

| 已接受

已回答
Variable q5 must be of size [1 2]. It is currently of size [1 1]. Check where the variable is assigned a value.
syms x y f(x,y)=x-x*y^2+sqrt(y); u = sym([2,9]); part1 = u/norm(u) part2 = jacobian(f(x,y),[x,y]) q5 = dot(part1, part2) Y...

1 month 前 | 0

已回答
MATLAB does not run on new iMAC
You need to deactivate on your old Mac and reactivate on your new Mac.

1 month 前 | 0

已回答
Which function used to use in M-Script to remove the variables
It is not possible to create a variable with a name similar to 1Tn007 What can happen is that if you load() a .mat that was ge...

1 month 前 | 0

已回答
Need Help Simplifying code
Replace pick=find(max(playerInfo(2,:))==playerInfo(2,:)); pick=pick(1); with [~, pick] =...

1 month 前 | 0

| 已接受

已回答
Legend according to colours of the bars
questionnaire = {'A', 'B', 'C', 'D', 'E', 'F'}; for i = 1:numel(arrays) subplot(4, 1, i); values = arrays{i}(:, 2);...

1 month 前 | 1

| 已接受

已回答
why i got this error when i want to use GPU to accelerate the simulation?
In MATLAB R2021b, only the following are supported for GPU Coder work: Microsoft Visual C++ 2019 product family Microsoft Vis...

1 month 前 | 0

| 已接受

已回答
Can I create a stand-alone Windows application from my Mac that permits parallel processing?
There is no support for building for a Windows target on a Mac or Linux. ... You could potentially use Parallels.

1 month 前 | 0

| 已接受

已回答
Will Quality of Documentation be better in 2024 Products?
No, it will not improve in R2024a.

1 month 前 | 2

已回答
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.

1 month 前 | 0

已回答
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...

1 month 前 | 0

已回答
"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

1 month 前 | 0

已回答
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...

1 month 前 | 0

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

1 month 前 | 0

| 已接受

已回答
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...

1 month 前 | 0

已回答
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...

1 month 前 | 0

已回答
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 ...

1 month 前 | 0

已回答
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...

1 month 前 | 0

已回答
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...

1 month 前 | 1

| 已接受

已回答
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...

1 month 前 | 0

已回答
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-...

1 month 前 | 0

已回答
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...

1 month 前 | 0

| 已接受

已回答
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...

1 month 前 | 1

| 已接受

已回答
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

1 month 前 | 0

已回答
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...

1 month 前 | 0

已回答
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...

1 month 前 | 1

已回答
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) = [] ...

1 month 前 | 0

已回答
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);

1 month 前 | 0

| 已接受

加载更多