Answered
I want to do a nonlinear regression analysis with MATLAB.
If you have up to 2 independent variables, you can use curve fitting app (cftool). If you have 3 or more independent variables, ...

meer dan 3 jaar ago | 0

Answered
how can i do Factor analysis with 2 matrix
factoran function implements Factor Analysis (FA) in MATLAB. FA is a dimension reduction technique. It is not designed to find t...

meer dan 3 jaar ago | 0

Answered
boxplot of matrix with different size
A = rand (9,16); B = rand (13,17); [ADim1,ADim2] = size (A); [BDim1,BDim2] = size (B); GroupingA = strcat ("A", string(r...

meer dan 3 jaar ago | 0

Answered
Change colours of specific points in a scatter plot that has already been plotted?
Take a look at gscatter().

meer dan 3 jaar ago | 0

| accepted

Answered
boxplot of matrix with different size
You want one plot for A and one plot for B, or you want plot for every column in A and B?

meer dan 3 jaar ago | 0

Answered
Multiple histograms and what will be the best way to put mean and std of data into a plot?
You can use text function to add annotations anywhere on the plots. By the way, If A, B, and C are column vectors, it is wiser t...

meer dan 3 jaar ago | 0

Answered
How to create contour plot within a 2D plot
When you want to draw multiple plots within one axes, you should put all of the commands between hold on and hold off. hold on ...

meer dan 3 jaar ago | 0

Answered
Combine parallel and Rapid Accelerator Mode for an optimization task with ga
You should set ga to pass all of the population to the objective function at once, and there you implement the parallelization i...

meer dan 3 jaar ago | 0

| accepted

Answered
Transferring Linear Models to excel/csv
It's better to first design a 49x1 cell array and write the outputs of each experiment to the corresponding element of the array...

meer dan 3 jaar ago | 0

| accepted

Answered
Simulink scope not working correctly
I created your model and I expected a constant line, but I also got a single marker. Do the following as a workaround: In Cons...

meer dan 3 jaar ago | 1

Answered
how to generate chromosome?
Assuming you want search agents in the rows and design variables in the columns: PopulationSize = 40; nvars = 20; Populati...

meer dan 3 jaar ago | 0

Answered
how to understand firefly algorithm
You should define them as design variables. I recommend that you first read thoroughly the nice documentation and source code of...

meer dan 3 jaar ago | 0

| accepted

Answered
Does anyone know where I can find the constant power/complex block in the bottom left corner? Thanks!
Right-click on the block and select Help. The documentation page of that block will be opened. There you can see which libraries...

meer dan 3 jaar ago | 2

Answered
Average from a excel sheet and store it to a different excel sheet.
You should first read the data from the excel file using readmatrix, then do any calculations like mean, and finally write to th...

meer dan 3 jaar ago | 0

Answered
How can i write and use the attached matrix in MATLAB for any value of N
M = (n:-1:0) + (0:n)'; or M = (n:2*n)' - (0:n);

meer dan 3 jaar ago | 1

Answered
How do I shift columns (left or right) in a matrix
I used the vectorization capability of MATLAB, so it is faster and there is no need for a for loop. data = rand (5,16); chann...

meer dan 3 jaar ago | 0

Answered
Where can i find the power calculation block in simulink?
Go to library browser. Then open Simulink > Quick insert > Math operations. You can find the Power block here. Or Instead of ...

meer dan 3 jaar ago | 1

Answered
How can I fit 3-D scatter points with value?
If your model for the relationship between (theta, r, z) triplets and the pressure is linear, use regress. Otherwise, use lsqcur...

meer dan 3 jaar ago | 0

| accepted

Answered
bar graph with variation in x axis
Use the following code. You replace your data with DataY. figure ('Position', [293,243,900,420]); DataX = (20:30:620)'; ...

meer dan 3 jaar ago | 0

| accepted

Answered
How to plot sine waves in x and y-axes simultaneously?
You should first create the horizontal sine and then rotate it for pi/2 using rotation matrix to get the vertical sine. You can ...

meer dan 3 jaar ago | 0

| accepted

Answered
genetic algorithm to optimize the variable of linear regression(a,b1,b2)
First of all, you should use regress for multiple linear regression. However, if you want to know whether it is possible to use ...

bijna 4 jaar ago | 1

Question


Why Global Optimization toolbox is codenamed "gads"?
MATLAB toolboxes have straightforward codenames. For example, stats for Statistics and Machine Learning toolbox, optim for Optim...

bijna 4 jaar ago | 1 answer | 1

1

answer

Answered
MATLAB/NOMAD for global optima?
Your problem is a bound-constrained problem with five decision variables. I think many solvers in the Global Optimization toolbo...

bijna 4 jaar ago | 0

Answered
Product of three 1d vectors and a 3d array
aPermuted = a(:); bPermuted = permute (b(:),[2,1,3]); cPermuted = permute (c(:),[3,2,1]); Z = T .* aPermuted .* bPermuted ....

bijna 4 jaar ago | 0

| accepted

Answered
How to group boxplots on matlab
boxchart is introduced in 2020a and is much more flexible than boxplot and has an option for plot grouping. boxchart documenta...

bijna 4 jaar ago | 0

Answered
Time based output at simulink
You can simply connect it to the next block :)

bijna 4 jaar ago | 0

Answered
Plot area with equation
r = 50; NumPoints = 500; [UnitX,UnitY,UnitZ] = sphere (NumPoints); RealX = r * UnitX; RealY = r * UnitY; RealZ = r * Un...

bijna 4 jaar ago | 0

| accepted

Answered
Time based output at simulink
You can use "Display" block to view the last value or "To Workspace" block and set it to return the last value to the base works...

bijna 4 jaar ago | 0

Answered
I want to plot this function f = cos(0.5*t)*5*exp(t)/(t^2+1)
You should place a period befor operations to get element-wise operators. f = cos(0.5.*t) .* 5 .* exp(t) ./ (t.^2+1);

bijna 4 jaar ago | 0

| accepted

Answered
A question about checking the significant difference between data sets
There are a lot of differences between these tests. Choosing one of them depends on your dataset and research design. All of the...

bijna 4 jaar ago | 1

| accepted

Load more