已回答
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, ...

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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...

4 years 前 | 0

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

4 years 前 | 0

| 已接受

已回答
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?

4 years 前 | 0

已回答
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...

4 years 前 | 0

已回答
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 ...

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 1

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

4 years 前 | 0

已回答
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...

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 2

已回答
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...

4 years 前 | 0

已回答
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);

4 years 前 | 1

已回答
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...

4 years 前 | 0

已回答
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 ...

4 years 前 | 1

已回答
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...

4 years 前 | 0

| 已接受

已回答
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)'; ...

4 years 前 | 0

| 已接受

已回答
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 ...

4 years 前 | 0

| 已接受

已回答
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 ...

4 years 前 | 1

提问


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

4 years 前 | 1 个回答 | 1

1

个回答

已回答
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...

4 years 前 | 0

已回答
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 ....

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

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

4 years 前 | 0

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

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 0

已回答
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);

4 years 前 | 0

| 已接受

已回答
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...

4 years 前 | 1

| 已接受

加载更多