Respondida
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...

más de 2 años hace | 0

| aceptada

Respondida
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...

más de 2 años hace | 1

| aceptada

Respondida
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

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 0

Respondida
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...

más de 2 años hace | 1

Respondida
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) = [] ...

más de 2 años hace | 0

Respondida
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);

más de 2 años hace | 0

| aceptada

Respondida
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...

más de 2 años hace | 0

| aceptada

Respondida
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...

más de 2 años hace | 0

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

más de 2 años hace | 0

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

más de 2 años hace | 0

Respondida
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. ...

más de 2 años hace | 0

Respondida
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 ...

más de 2 años hace | 0

Respondida
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).'

más de 2 años hace | 1

Respondida
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...

más de 2 años hace | 1

| aceptada

Respondida
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

más de 2 años hace | 0

Respondida
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 ...

más de 2 años hace | 0

| aceptada

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

más de 2 años hace | 0

| aceptada

Respondida
Creating symbolic function with array for argument
You cannot create symfun that expect non-scalars as parameters. symfun takes all of the provided parameters, horzcat()'s them ...

más de 2 años hace | 0

| aceptada

Respondida
How to solve incosistent scientific format ?
Use strcmpi

más de 2 años hace | 1

| aceptada

Respondida
How do I include an image labeler in my application?
Helper apps such as Image Labler cannot be compiled.

más de 2 años hace | 0

Respondida
How can I change the colour of the axes?
ax.GridColor = 'k'; ax.GridAlpha = 1;

más de 2 años hace | 1

Respondida
Error in fitlm function
% Load data df = readtable('input_file.csv','VariableNamingRule','preserve'); dependent_vars = {'act_y_ha', 'act_per_ha'};...

más de 2 años hace | 0

| aceptada

Respondida
Inverse of a symmetric matrix consisting of submatrices is desired.
N = symmatrix('N', [12 12]); B1 = symmatrix('B1', [12,5]); C1 = symmatrix('C1', [2,5]); B2 = symmatrix('B2', [12,4]); C2 = sym...

más de 2 años hace | 0

Respondida
Error in reading variables in netcdf files
data_specific=netcdf.open(fullFileName); %... lat=data_specific{'latitude'}(:); data_specific will be an ncid (netcdf i...

más de 2 años hace | 0

| aceptada

Respondida
I'm trying to get this plot to show me a function I can code in desmos, but is giving me the wrong plot in matlab. Any help would be appreciated
clc, close all, clear vars % Pieces of the function Q = 9.4*10^-6; % C q = 2.4*10^-5; % C e = 8.854*10^-12; % C^2/(Nm^2): pe...

más de 2 años hace | 1

| aceptada

Respondida
Error using ^ when integrating a function
fun = @(r) (1+erf((-36.38+2.56.*log(5+((138.4-r)/4).*((26.964*2.71828.^(-0.0238*r)).^(4/3)))-5)/sqrt(2)).*r); Use vectorized op...

más de 2 años hace | 3

| aceptada

Respondida
Not enough input arguments for ode45
[time, state_values] = ode45(@(t,Y, updated_state) DPIC(t, Y, updated_state), tspan, IC); ode45() only has two values available...

más de 2 años hace | 0

Respondida
i want to know if a image can be made with the magnitude data of an FMCW radar?
imagesc(X_data, Y_data, Magnitude_data) or just imagesc(Magnitude_data)

más de 2 años hace | 1

| aceptada

Respondida
How to add graphs to genetic algorithm
what is meaning of "ga stopped because the average change in the penalty function value is less than options.FunctionTolerance a...

más de 2 años hace | 1

Cargar más