Answered
gamultiobj - Constraints - Can we specify the variables to be with a floating point with certain degree of accuracy as we require, within the constraints ?
Create proxy variables for input purposes, with the proxy variables being integer valued and 100 times the desired range. So for...

4 years ago | 0

Answered
index exceeds the number of subplots
subplot(315) In the 315, the leading 3 indicates that you want to create an array of plots that has three plots tall. The 1 af...

4 years ago | 0

Answered
I couldn't understand what's wrong in this.
for i = 1:length(k) [T,Y]= ode45(@(t,y)f(t,y,k(i)),tspan,[1;1;1;1;0].*10E-2); T(i) = 1 - (k./kc).*(1/2).*(((Y(:,1) ./ ...

4 years ago | 0

| accepted

Answered
Switch Class change background color on event
https://www.mathworks.com/help/matlab/ref/matlab.ui.control.switch-properties.html#bucxdj3-1_sep_shared-FontColor The only co...

4 years ago | 0

Answered
Convert char to date
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1067985/Book5.xlsx'; Data = readtable(filename); ...

4 years ago | 0

| accepted

Answered
[ ] or ( ) in constructing array
I am wondering if there is a performance penalty using [ ] for constructing array If you measure inside a function, and if you ...

4 years ago | 1

Answered
How to concatenate in a for loop to make a 3D matrix?
Temp_2013 = cat(3, Saved_Temp{:}); %no loop If you must use a for loop then Temp_2013 = []; for i = 1:length(Saved_Temp) ...

4 years ago | 0

| accepted

Answered
i want my answer to show in terms of a constant letterf and plot both equations together against y value
syms y f b = 1; y1 = 0; y2 = 0.5*b; y3 = b; y4 = 1.5*b; y5 = 2*b; u(y) = simplify(f*(y^2)/2 - 1/2*f*b*y) U(y) = simpli...

4 years ago | 0

Answered
Detect a specific rectangle in an image
Use bwconncomp or regionprops or bwlabel in order to have each connected group of values marked as being part of the same group,...

4 years ago | 0

Answered
Running Matlab in Linux using nodesktop or nojvm
There are several ways to implement shared memory between processes. One of the major ways is to allocate physical memory (RA...

4 years ago | 0

Answered
is insert imagedatastore for preprocessing data?
https://www.mathworks.com/help/matlab/ref/matlab.io.datastore.transform.html?s_tid=doc_ta you can transform() a data store

4 years ago | 0

| accepted

Answered
Please help how to plot theta vs z in this equation . . . .
fplot(thetasol, [minz, maxz]) However... matlab says thetasol = 0 which is a boring plot

4 years ago | 1

| accepted

Answered
[ ] or ( ) in constructing array
just use b = 1:2:300000; When you use [] then the call would be equivalent to b = horzcat(1:2:300000); which cont...

4 years ago | 1

Answered
How to fix infinity limit in the integral equation
With the various exp(-x) terms as x approaches infinity the exp() terms go to 0. But the exp() terms are being multiplied by a p...

4 years ago | 0

Answered
MTIMES (*) is not fully supported for integer classes. At least one argument must be scalar., error in block struct BLOCKPROC encountered an error while evaluating the user-su
The message is correct. blockproc is extracting subsets of I, where I is uint8. Your function dc uses the * operator between som...

4 years ago | 0

Answered
What is the meaning of position in the code? Why position(2) then position (1)
The code is using nested for loops with i for rows and j for columns. It is passing values derived from i and j to a function. T...

4 years ago | 0

Answered
Error using vertcat Dimensions of arrays being concatenated are not consistent.
'AB' is a 1 x 2 array of character 'CD' is a 1 x 2 array of character ['AB';'CD'] is asking to vertically concatenate a 1...

4 years ago | 1

Answered
When substituting an expression into an functions its keeps flipping the sign of the substituting
The symbolic engine automatically rewrites terms for efficient internal representation. If you do not division by a term invo...

4 years ago | 0

Answered
.csv file converted to 1xN char, not allowing me to use importdata()
filepath = pwd; filename1 = fullfile(filepath, 'type1.csv'); data1 = readmatrix(filename1);

4 years ago | 0

Answered
syntax cellstr Error when using double as input argument
It is a bug in Octave. Octave cellstr documents that its input must be strmat, a string matrix and currently char arrays are the...

4 years ago | 1

| accepted

Answered
How to assume 'symmatrix' variable as 'real'
Matrix variables do not support assumptions. There does not appear to be any way to do what you would like to do.

4 years ago | 1

| accepted

Answered
How to paste multiple heatmaps together/in 1 figure
You can pass a figure or axes to heatmap as the first parameter. If you pass an axes then it the children might get completely r...

4 years ago | 0

Answered
How can i solve error for addon for simscape
See https://www.mathworks.com/matlabcentral/answers/379995-install_addon-smlink-r2017b-win64-zip-undefined-function-or-variable-...

4 years ago | 0

Answered
Convert tf to struct
G11 = tf([1 2], [3 4]); G12 = tf([3 4], [5 6 7]); G21 = tf([8], [9 10]); G22 = tf([11 12 13], [14 15 16 17]); G = [G11, G12;...

4 years ago | 0

Answered
GetGlobal() and parfor loop
Global and persistent variables are never copied to workers. You need to do one of two things: run the setGlobalF command on e...

4 years ago | 1

Answered
Requirements for Matlab and Simulink
That is an "Apple Silicon" series. See https://www.mathworks.com/matlabcentral/answers/641925-is-matlab-supported-on-apple-silic...

4 years ago | 0

Answered
Help with read/readline with serialport object for NanoVNA V2_2
readline(device) possibly followed by using sscanf() to convert text into double.

4 years ago | 0

Answered
How to choose value from array based on closest value
If the values in the first column are sorted, use interp1() with 'nearest'

4 years ago | 1

| accepted

Answered
Undefined function 'helperReadSPData' for input arguments of type 'waveletScattering'
The code is at https://www.mathworks.com/help/wavelet/ug/spoken-digit-recognition-with-wavelet-scattering-and-deep-learning.html...

4 years ago | 0

| accepted

Answered
Large amount of coordinates transformation in 3D
theta = 10; M = makehgtform('yrotate', deg2rad(theta)) A = [0 0 0; 1 1 1; 0 0 1; 1 1 0; 1 0 1; 0 1 0; 0 1 1; 1 0 0]; x = A(:,...

4 years ago | 0

Load more