답변 있음

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

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

| 수락됨

답변 있음

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

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

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

6일 전 | 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...

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

6일 전 | 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]);

x axis labels not properly working

You used xticks([-0.8:0.4:0.8]); Instead of xticks([-0.08:0.04:0.08]);

7일 전 | 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...

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

7일 전 | 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...

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

8일 전 | 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_...

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

8일 전 | 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...

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

8일 전 | 1

답변 있음

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

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

9일 전 | 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...

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

9일 전 | 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...

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

10일 전 | 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)...

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

11일 전 | 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.

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.

11일 전 | 0

답변 있음

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

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

11일 전 | 0

답변 있음

Is reinstallation required if I already have ML installed from a previous license and just bought a home license?

I take it you transfered over the installed software using Time Machine or something similar. You do not need to reinstall. Re-...

Is reinstallation required if I already have ML installed from a previous license and just bought a home license?

I take it you transfered over the installed software using Time Machine or something similar. You do not need to reinstall. Re-...

11일 전 | 0

| 수락됨

답변 있음

How does the zoom out feature work?

As you zoom in, the tools internally keep a history of your positions. When you zoom out, the tool pops the previous position of...

How does the zoom out feature work?

As you zoom in, the tools internally keep a history of your positions. When you zoom out, the tool pops the previous position of...

11일 전 | 0

답변 있음

How to return corresponding entries of an array using if statement

mask = intabsul == absintul & intabsur==absintur; subset_xi_1 = xivals(mask); subset_Lv_1 = Lvals(mask); mask = intabsul ~=...

How to return corresponding entries of an array using if statement

mask = intabsul == absintul & intabsur==absintur; subset_xi_1 = xivals(mask); subset_Lv_1 = Lvals(mask); mask = intabsul ~=...

11일 전 | 0

답변 있음

How to test whether a function has roots within a given range?

has_root = SignF_X(1:end) ~= SignF_X(2:end); However, your approach is flawed. Suppose the input function is a sufficiently h...

How to test whether a function has roots within a given range?

has_root = SignF_X(1:end) ~= SignF_X(2:end); However, your approach is flawed. Suppose the input function is a sufficiently h...

11일 전 | 1

답변 있음

How can I make my model run in real time on a MacBook CPU?

https://www.mathworks.com/support/requirements/simulink-desktop-real-time.html Other Requirements Simulink Desktop Real...

How can I make my model run in real time on a MacBook CPU?

https://www.mathworks.com/support/requirements/simulink-desktop-real-time.html Other Requirements Simulink Desktop Real...

11일 전 | 0

| 수락됨

답변 있음

Problem using start and getsnapshot

You have an existing videoinput active. For example you might have used control-C to stop acquisition, and so missed out on dele...

Problem using start and getsnapshot

You have an existing videoinput active. For example you might have used control-C to stop acquisition, and so missed out on dele...

12일 전 | 0

답변 있음

MATLAB doesn't give an answer for this Waterfall graph and runs this continuously, what's wrong with this?

You need to vectorize Reduced size here to fit within the time limits. a = linspace(0.01, 10, 401); r = linspace(0.1, 10, 401...

MATLAB doesn't give an answer for this Waterfall graph and runs this continuously, what's wrong with this?

You need to vectorize Reduced size here to fit within the time limits. a = linspace(0.01, 10, 401); r = linspace(0.1, 10, 401...

12일 전 | 0

| 수락됨

답변 있음

Symbolic expressions with pi are displaying as decimals

sympref('FloatingPointOutput', 0)

Symbolic expressions with pi are displaying as decimals

sympref('FloatingPointOutput', 0)

13일 전 | 1

| 수락됨

답변 있음

How to resolve"Unable to perform assignment because the left and right sides have a different number of elements."?

My guess at the moment is that you are operating on a combination of row vector and column vector, which would give you a full 2...

How to resolve"Unable to perform assignment because the left and right sides have a different number of elements."?

My guess at the moment is that you are operating on a combination of row vector and column vector, which would give you a full 2...

13일 전 | 0

| 수락됨

답변 있음

Not able to save a ".mat" file when the excel workbook is fetched within a function

You are saving the contents into the base workspace, but you are trying to save it in the function workspace. cmd = "save('" + ...

Not able to save a ".mat" file when the excel workbook is fetched within a function

You are saving the contents into the base workspace, but you are trying to save it in the function workspace. cmd = "save('" + ...

13일 전 | 0

답변 있음

Accuracy of Integral and Integral2 functions

Given that code, the eigenvalues come out the 3.516 and so on. It isn't a matter of low accuracy: I switched to high accuracy h...

Accuracy of Integral and Integral2 functions

Given that code, the eigenvalues come out the 3.516 and so on. It isn't a matter of low accuracy: I switched to high accuracy h...

13일 전 | 0

답변 있음

The MATLAB Live editor provides bad user experience? How do I fix them?

To increase the contrast, install the desktop beta; https://www.mathworks.com/matlabcentral/fileexchange/119593-new-desktop-for-...

The MATLAB Live editor provides bad user experience? How do I fix them?

To increase the contrast, install the desktop beta; https://www.mathworks.com/matlabcentral/fileexchange/119593-new-desktop-for-...

14일 전 | 1

| 수락됨

답변 있음

Please help me correct this error: Error in P_function>P_panelpower (line 26) elseif t>=6 && t<11 Error in P_function (line 10) P = P_panelpower(t);

You are passing a vector to your function. Inside your function you are testing the entire vector at the same time. If the enti...

Please help me correct this error: Error in P_function>P_panelpower (line 26) elseif t>=6 && t<11 Error in P_function (line 10) P = P_panelpower(t);

You are passing a vector to your function. Inside your function you are testing the entire vector at the same time. If the enti...

14일 전 | 0

답변 있음

Access to non-public class members

In my oppinion, access modifiers are supposed to prevent a wrong usage of an interface, but it should not prevent you from invok...

Access to non-public class members

In my oppinion, access modifiers are supposed to prevent a wrong usage of an interface, but it should not prevent you from invok...

14일 전 | 1