回答済み
Fastest possible prime number detection without using break or return
The fastest possible way of doing any computation depends upon the fine details of your CPU, and upon the fine details of how me...

5ヶ月 前 | 0

回答済み
Processing Multiple Files at once.
[filelist,pathn] = uigetfile('*.*','Please Select a Par File in .dat or .txt', 'multiselect', 'on'); if isnumeric(filelist); er...

5ヶ月 前 | 0

| 採用済み

回答済み
How can I skip the rest of an if statement?
if n > 1 while true if a == 1 disp('Haha') break % (Here is where I want to skip the res...

5ヶ月 前 | 0

| 採用済み

回答済み
ginput error in matlab 2020a
Error in contains (line 36) tf = ~cellfun(@isempty, strfind(s, pattern)); ... Except that contains is a built-in function and ...

5ヶ月 前 | 0

回答済み
How to determine if angles match
You would get that behavior if prec1 or prec2 are non-scalar and it does not happen that all of the values pass the tests.

5ヶ月 前 | 0

| 採用済み

回答済み
How to run a function in app designer?
psi = app.EditField_psi.Value; phi = app.EditField_phi.Value; theta = app.EditField_theta.Value; m = app.EditField_m.Value; ...

5ヶ月 前 | 0

回答済み
No sound when playing movie in Matlab2020b
%dispMoviesMatlab - ComputerVision Toolbox audiopath = 'C:\Users\maxab\OneDrive\Desktop\Masters\Experiment\Movies\Chosen'; m...

5ヶ月 前 | 0

回答済み
Where is Shader graphics available in MATLAB
The only access is shading (not very extensive)

5ヶ月 前 | 0

回答済み
vectorized operations on symbolic functions
syms x1 x2 x3; % symbolic variables y = x1^3/3 + x2^2/2 - x3; % symbolic function y X = rand(500,3); % each row representing a...

5ヶ月 前 | 0

回答済み
Slice command for terrain
No. Your data cannot be sliced. Perhaps you might want to contour() the data, and get back the contour matrix, and use somethin...

5ヶ月 前 | 0

| 採用済み

回答済み
Extract color map from png apply to grayscale image
Use rgb2ind() on the colored image, and take the second output as being the color map. [~, cmap] = rgb2ind(TheColoredImage); i...

5ヶ月 前 | 1

| 採用済み

回答済み
how to perform a multi variable optimization on matlab
There are several different minimizers possible. Everything except fzero() -- fzero() is restricted to one variable. The trick ...

5ヶ月 前 | 0

回答済み
Binary GA returns floating point numbers
% Set seed for reproducability rng(42); % Load data and define arrays data = readmatrix('Data/File_S1.xlsx'); X = data(2:e...

5ヶ月 前 | 0

回答済み
line search minimization problem, error sym is not convertible to double
f = 316.2*(X1^0.5) + 34.3*X2 + (10^8)*(X1^(-0.5))*(1/X2) %symbolic expression %... A=diff(f,X1) B=diff(f,X2) %A1...

5ヶ月 前 | 0

| 採用済み

回答済み
Create a list of list and take the mean
cellfun(@mean, aps)

5ヶ月 前 | 1

| 採用済み

回答済み
Unregcognized function or variable 'xotold'
if f2<f1 && f2<f3, xoptold = x2; end You only set xtoptold if that condition is true, but later you use it even if the co...

5ヶ月 前 | 0

回答済み
Find data from files that are too large to read in
Use buffer-fulls of data for increased efficiency. fread() a block of data of fixed size. Scan backwards through the block look...

5ヶ月 前 | 0

回答済み
How do I add transparency to a plot in the Live Editor?
Unfortunately, the hack of using a 4-element Color does not work in LiveScript. The work-around is to set the figure Visible pr...

5ヶ月 前 | 1

回答済み
x axis labels not properly working
You used xticks([-0.8:0.4:0.8]); Instead of xticks([-0.08:0.04:0.08]);

5ヶ月 前 | 1

| 採用済み

回答済み
extracting one variable from mux
You do not use a To Workspace block for that purpose; you use a Bus Selector https://www.mathworks.com/help/simulink/slref/busse...

5ヶ月 前 | 0

| 採用済み

回答済み
Possibly spurious solutions - Matlab blocked with no answers
Turns out there are some solutions In the below, fullsubs is not actually valid for all entries -- only for entries [5 8 13 16...

5ヶ月 前 | 0

回答済み
How to find the best combination of angles for minimum turn radius
radius = 72; inner_angle = (0:68).'; outer_angle = (0:68); inner_angle_rad = inner_angle * pi /180; outer_angle_rad = outer_...

5ヶ月 前 | 1

| 採用済み

回答済み
How is the work distributed in parfor loop?
You can control how parfor divides up the iterations by using parforOptions() RangePartitionMethod https://www.mathworks.com/hel...

5ヶ月 前 | 2

回答済み
Vpasolve can not find a solution that I know it exist
There is no solution in the reals. clear clc %% Parameters and Assumptions syms x11 x12 x21 x22 positive % Actions syms a11...

5ヶ月 前 | 0

回答済み
Attempt to execute SCRIPT ' ' as a function error
This problem is caused by a corruption of the MATLAB installation, one that causes it to lose track of the internal implementati...

5ヶ月 前 | 0

回答済み
"Busy" when running this code with ODE45
If you use ode15s and set the tspan to 15.01 or less than integration succeeds and shows most concentrations on the order of 10^...

6ヶ月 前 | 0

回答済み
How to get y value?
Xtarget = 900; H = findobj('type', 'line'); xvals = arrayfun(@(h) h.XData, H, 'uniform', 0); yvals = arrayfun(@(h) h.YData, H...

6ヶ月 前 | 0

回答済み
how would I randomly replace two elements in a row vector
y = char(randperm(27) - 1 + 'A'); for i = 1:iter idx = randperm(numel(y), 2); ynew = y; ynew(idx) = ynew([idx(2)...

6ヶ月 前 | 0

回答済み
why am i getting the error "Incorrect number or types of inputs or outputs for function step."
The most likely problem is if you do not have Control System Toolbox installed.

6ヶ月 前 | 1

回答済み
Need help for global fit
To confirm: you want to optimize so that C, D, E are the same for all datasets, but A and B vary according to the datasets? The...

6ヶ月 前 | 0

さらに読み込む