chicken vector
Followers: 0 Following: 0
統計
All
Feeds
解決済み
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...
5ヶ月 前
質問
NLP problem with fmincon: Non-differentiable point in objective function
Consider the simplified optimisation problem having as decision variable the vector: where is the number of discretisation ...
5ヶ月 前 | 1 件の回答 | 0
1
回答回答済み
How do variables work in Matlab App Designer?
App Designer works with methods rather than functions. The difference is that your entire GUI is an instance of a sub-class of ...
How do variables work in Matlab App Designer?
App Designer works with methods rather than functions. The difference is that your entire GUI is an instance of a sub-class of ...
7ヶ月 前 | 1
回答済み
How to use property validation functions in class definitions for struct fields?
If this is helpful, please remember to vote for best answer. You can read this for more info. classdef myClass properties...
How to use property validation functions in class definitions for struct fields?
If this is helpful, please remember to vote for best answer. You can read this for more info. classdef myClass properties...
7ヶ月 前 | 1
| 採用済み
回答済み
How to set both yticks(left and right) in decimal values not exponential or scientific??
F = openfig('energy vs time.fig'); ax = gca; ax.YAxis(1).Exponent = 0; ax.YAxis(2).Exponent = 0; axis square;
How to set both yticks(left and right) in decimal values not exponential or scientific??
F = openfig('energy vs time.fig'); ax = gca; ax.YAxis(1).Exponent = 0; ax.YAxis(2).Exponent = 0; axis square;
10ヶ月 前 | 0
質問
Sum inside a "bouncing" domain
I have a set of positions given by x and y. Considering a point yf, I want to know what's the value of yi, when the difference ...
10ヶ月 前 | 1 件の回答 | 0
1
回答回答済み
Tangent line on a curve. From a peak down the "unload curve" (in each case the bottom curve)
The approach is to find the index of the maximum point in the curve: [~,idx] = max(yData{j}); Then we can compute the derivati...
Tangent line on a curve. From a peak down the "unload curve" (in each case the bottom curve)
The approach is to find the index of the maximum point in the curve: [~,idx] = max(yData{j}); Then we can compute the derivati...
10ヶ月 前 | 0
| 採用済み
回答済み
How to plot a vector for fixed intervals
Something like this? t = [1 3 4 7]; a = [5 3 9 4]; stairs(t,a); grid on; xlim([0,10]); ylim([0,10]); xticks(1:10);
How to plot a vector for fixed intervals
Something like this? t = [1 3 4 7]; a = [5 3 9 4]; stairs(t,a); grid on; xlim([0,10]); ylim([0,10]); xticks(1:10);
12ヶ月 前 | 0
| 採用済み
回答済み
Why does UIaxes handle is deleted when calling a function and taking inputs as UIaxes handle in MATLAB webapp ?
It would be easier if you share your .mlapp file, but according to this line of error: >> Web Apps does not support multiwindow...
Why does UIaxes handle is deleted when calling a function and taking inputs as UIaxes handle in MATLAB webapp ?
It would be easier if you share your .mlapp file, but according to this line of error: >> Web Apps does not support multiwindow...
12ヶ月 前 | 0
回答済み
change negative data to zero in one table in matlab
% Create fictitious set of data: tableData = rand(1e1) - .5 % Define tolerance under which data is set to zero: tol = 1e-2; ...
change negative data to zero in one table in matlab
% Create fictitious set of data: tableData = rand(1e1) - .5 % Define tolerance under which data is set to zero: tol = 1e-2; ...
12ヶ月 前 | 0
| 採用済み
質問
Is "geoglobe" currently bugged?
I have always used geoglobe, but when I tried again today, the following command does not work anymore as usual. uif = uifigure...
約1年 前 | 3 件の回答 | 2
3
回答回答済み
How to create a .gif animation visualizing the progress of an optimization process?
The simplest way is to add a few lines of command that saves your current objective function data. You can add something like t...
How to create a .gif animation visualizing the progress of an optimization process?
The simplest way is to add a few lines of command that saves your current objective function data. You can add something like t...
1年以上 前 | 0
| 採用済み
質問
Multi-account reputation earning
I assume it to be against the rules, but upon searching I couldn't find something specific. What is the reccomended practice in...
1年以上 前 | 1 件の回答 | 1
1
回答回答済み
What are anonymous functions in MATLAB, and how can they be used to simplify code? Provide an example where an anonymous function is used effectively.
Anonymous functions are used to store a function into a variable: doubleNumber = @(x) 2*x; doubleNumber(10) The syntax is e...
What are anonymous functions in MATLAB, and how can they be used to simplify code? Provide an example where an anonymous function is used effectively.
Anonymous functions are used to store a function into a variable: doubleNumber = @(x) 2*x; doubleNumber(10) The syntax is e...
1年以上 前 | 2
回答済み
How do I create a 3D checkerboard?
I would use patch and surf ma don't expect this level of rendering.
How do I create a 3D checkerboard?
I would use patch and surf ma don't expect this level of rendering.
1年以上 前 | 1
回答済み
How change the slopes in a curve from positive to negative
This works if you don't really care about the value on the y-axis: load datapoints inyb2 = -cumsum(abs(diff([0; inyb2]))); pl...
How change the slopes in a curve from positive to negative
This works if you don't really care about the value on the y-axis: load datapoints inyb2 = -cumsum(abs(diff([0; inyb2]))); pl...
1年以上 前 | 0
回答済み
Indexing of 1D arrays using 2D mapping information
Have a look at this: Interpolate 2-D or 3-D scattered data - MATLAB griddata - MathWorks Italia Interpolating Scattered Data -...
Indexing of 1D arrays using 2D mapping information
Have a look at this: Interpolate 2-D or 3-D scattered data - MATLAB griddata - MathWorks Italia Interpolating Scattered Data -...
1年以上 前 | 0
| 採用済み
質問
fmincon non-linear optimisation: issues with sqp and interior-point
I am running an optimisation problem using fmincon. The problem is subjected to very few bound constraints, linear inequality c...
1年以上 前 | 2 件の回答 | 0
2
回答回答済み
Dividing a Square Matrix into Four Distinct Matrices Based on indexing element as well as the last digit
This will give you what you are looking for, except for the inverted number in case of odd number of digits: A = [10902425 30...
Dividing a Square Matrix into Four Distinct Matrices Based on indexing element as well as the last digit
This will give you what you are looking for, except for the inverted number in case of odd number of digits: A = [10902425 30...
1年以上 前 | 1
| 採用済み
回答済み
Why do I Receive this error? Requested 708198x708198 (3736.8GB) array exceeds maximum array size preference (15.9GB). This might cause MATLAB to become unresponsive.
The error message is self-explanatory. Your implementation might be correct but at some point you are generating a variable of s...
Why do I Receive this error? Requested 708198x708198 (3736.8GB) array exceeds maximum array size preference (15.9GB). This might cause MATLAB to become unresponsive.
The error message is self-explanatory. Your implementation might be correct but at some point you are generating a variable of s...
1年以上 前 | 0
回答済み
MATLAB is not giving good quality eps figure, looks good in png format but looks really bad in pdf.
For article/document/presentation images I suggest you to use export_fig from FEX. The images have a better quality and more sa...
MATLAB is not giving good quality eps figure, looks good in png format but looks really bad in pdf.
For article/document/presentation images I suggest you to use export_fig from FEX. The images have a better quality and more sa...
1年以上 前 | 0
回答済み
change size of rectangles in full screen
Use uigridlayout to customise these parameters and have autmatic scalability when you change figure's dimensions. You can set s...
change size of rectangles in full screen
Use uigridlayout to customise these parameters and have autmatic scalability when you change figure's dimensions. You can set s...
1年以上 前 | 0
回答済み
How to change a variable name without changing the value itself?
This is in general not recommend because is prone tu bugs and affects code readibility. If you really want to do this anyway, h...
How to change a variable name without changing the value itself?
This is in general not recommend because is prone tu bugs and affects code readibility. If you really want to do this anyway, h...
1年以上 前 | 1
回答済み
Incorrect number of inputs or outputs for function linspace
Even if it is a matter of personal taste, for unit steps I usually prefer to do: z1 = 1 : 100; Nontheless, this should also wo...
Incorrect number of inputs or outputs for function linspace
Even if it is a matter of personal taste, for unit steps I usually prefer to do: z1 = 1 : 100; Nontheless, this should also wo...
1年以上 前 | 0
回答済み
y-axis with diffent scalings
If you want to keep the figure with this format, I'd say you have two options. You can either make an axis break with the FEX...
y-axis with diffent scalings
If you want to keep the figure with this format, I'd say you have two options. You can either make an axis break with the FEX...
1年以上 前 | 0
回答済み
How to improve plotting speed of large STL models using patch?
To really help you would be convenient to see what you are dealing with and what have you tried, but one thing I can say for sur...
How to improve plotting speed of large STL models using patch?
To really help you would be convenient to see what you are dealing with and what have you tried, but one thing I can say for sur...
1年以上 前 | 0
回答済み
Ctrl + F1 (on Windows) not working anymore for 2023a?
This is not mentioned in the release notes so I can't be completly sure it is true, but it appears that the shortuct for "Functi...
Ctrl + F1 (on Windows) not working anymore for 2023a?
This is not mentioned in the release notes so I can't be completly sure it is true, but it appears that the shortuct for "Functi...
1年以上 前 | 1
回答済み
How to add data stored in structure depending on other data related but stored in a different structure
I am not sure I udnerstand correctly what you need, because this line is confusing me: debit_total = zeros(size(debit)); You w...
How to add data stored in structure depending on other data related but stored in a different structure
I am not sure I udnerstand correctly what you need, because this line is confusing me: debit_total = zeros(size(debit)); You w...
1年以上 前 | 0
| 採用済み
回答済み
LU decomposition algorithm change
This was introduce in R2022a and might be a promising candidate to answer your question. Quoting Matlab realease notes: inv ...
LU decomposition algorithm change
This was introduce in R2022a and might be a promising candidate to answer your question. Quoting Matlab realease notes: inv ...
1年以上 前 | 1
回答済み
Converting a table to a matrix based on coordinates
Be careful because Matlab uses inverted indeces so this way you have X as rows and Y as columns. Just invert the indeces in the...
Converting a table to a matrix based on coordinates
Be careful because Matlab uses inverted indeces so this way you have X as rows and Y as columns. Just invert the indeces in the...
1年以上 前 | 0
| 採用済み