回答済み
Dice roll sum and its corresponding probabilities
Have a look at the following post regarding Homework Questions on this forum: https://in.mathworks.com/matlabcentral/answers/86...

4年以上 前 | 0

回答済み
Sum specific values from a matrix
You may use logical indexing as follows: cond1 = K(:,2)>=5 & K(:,2)<9; %these are logical indices to select out your given rang...

4年以上 前 | 0

回答済み
resizing an array in MATLAB
I think what you're looking for is a way to index. I'm sure you'll find the answer here: https://in.mathworks.com/help/matlab/l...

4年以上 前 | 0

回答済み
How to plot a line with repeated values of x?
Looks like you want the plots to appear side-by-side. Maybe you can concatenate 'PC1', 'PC2' and 'PC3' into one longer vector,...

4年以上 前 | 0

回答済み
How expanding 2 columns matrix (with each row having edges of a specific range) into a vector without for loop?
Hey, Here's something I came up with, you may try it out to determine if it works with your data. It's not very straightfor...

4年以上 前 | 1

| 採用済み

回答済み
How to programmatically adjust the font size of the editor and command window?
Hi Michele, You may use MATLAB's settings object to set and modify MATLAB preferences on the fly. Have a look at the doc linke...

4年以上 前 | 1

| 採用済み

回答済み
Solutions of genetic algorithm and globalsearch versus fmincon
Hi Rui, I assume that after ga/globalsearch have terminated with a solution, you are calling fmincon with the 'hessian' ou...

4年以上 前 | 0

回答済み
Is it possible to split the Command Window into continuous sub Command Windows?
One can split the editor window, but MATLAB doesn't support splitting the command window the way you described, at the moment.

4年以上 前 | 0

| 採用済み

回答済み
How to convert objection function into maths?
You may run the optimization by calling 'bayesopt' function on 'minfn'. See the doc linked below for more details, the examples ...

4年以上 前 | 0

回答済み
Converting .CSV file element to double
You may try setting options for the readtable function as outlined in this doc: https://in.mathworks.com/help/matlab/ref/readta...

4年以上 前 | 0

| 採用済み

回答済み
How I can use the matlab coder to convert my matlab code to C language? what is the MEX function can any body explain for me.
MEX files are like an interface between matlab and code written in C/C++ or FORTRAN. You can use the 'mex' command to compile so...

4年以上 前 | 0

回答済み
Fuzzy Logic cannot delete input and output variables in Matlab 2018b
Yes, this appears to be a bug. The developers were already notified of this issue and it was fixed in R2019a.

4年以上 前 | 0

回答済み
Calculate mean of an array in time windows.
I'm not sure how you have arranged your data within the matrix 'EEG' - which dimensions correspond to which attributes? I not...

4年以上 前 | 0

回答済み
How to perform Indexing
Hi Larissa, The goal of this forum is to help solve generic MATLAB questions, not to provide full solutions to anybody's homew...

4年以上 前 | 0

回答済み
How to write 2 functions both in 2 variables that will be the objective functions of a Multi-objective Genetic Algorithm?
Hi Andrea, I think your approach with the 'multiobjective' function is wrong. The input 'FitnessFunction' should be returnin...

5年弱 前 | 1

回答済み
Finding Shortest Path Without Crossing Restricted Areas
I suggest implementing the Dijkstra's algorithm for this problem. An explanation is found here: https://en.wikipedia.org/wiki/Di...

5年弱 前 | 1

回答済み
Matrix multiplication between 2d matrix and slice of 3d array
Hey Morten, You can check out 'MULTIPROD' - from File Exchange (linked below). It covers your requirements exactly, https://i...

5年弱 前 | 2

| 採用済み

回答済み
"NumBins" error when using fitcsvm, setting at least one hyperparameter to optimize, and specifying Nu
Looks like there is a bug here. I have brought this issue to the notice of our developers. They will investigate the matter furt...

5年弱 前 | 1

| 採用済み

回答済み
How to get the gradient with respect to the output of a specific layer in a deep learning model?
You could try looking at the source code for the fullyConnectedLayer that you're using; and then customizing that code to return...

5年弱 前 | 0

回答済み
Change the name of a table located in my workspace inside a for loop
Dynamically changing variable names is not advised, I think you should try storing the data in multiple different tables.

5年弱 前 | 0

| 採用済み

回答済み
How do I create a vector from a for loop with different intervals?
Hey Josefine, Everytime MATLAB executs the line p1(i) = p1(i) It prints the result, which in this case is the entire vector...

5年弱 前 | 0

回答済み
Swapping any pair of elements
Try this: (I used logical indexing to copy from a base matrix to resultant matrix. Got the answer by caculating the right indic...

5年弱 前 | 0

回答済み
Is Mask R-CNN available in Matlab?
Matlab doesn't have a pre-trained Mask RCNN network as of now. You may write your own training script for the custom network ...

5年弱 前 | 0

| 採用済み

回答済み
Precision/Recall (perfcurve)
perfcurve() is meant for computing performance curves for your model - such as PR curves or ROC curves. In the literature, you m...

5年弱 前 | 1

| 採用済み

回答済み
combinations with 2 columns
Hi Sampath, Look like you want to select exactly 1 element per row, from among all columns of the matrix. Hence, if there are ...

5年弱 前 | 0

回答済み
integrate a matrix which is a function of two variables
Not sure what you meant by integrate... But I think you might be looking for something like cumsum, have a look at this: http...

約5年 前 | 0

回答済み
How to modify a sphereModel
Hi Alonso, There's usually a reason for attributes to be set as 'Read Only' for a specific class. If you actually changed those...

約5年 前 | 0

回答済み
Error: Index in position 1 exceeds array bounds (must not exceed 1).
Hey Natasha, The Problem Variable 'd' is the index variable used in the for loop. It does not behave as a vector at all, it...

約5年 前 | 0

回答済み
importing text files via importdata
Try this: You may use the Import Data Tool to do it graphically. [Click: 'Home' Tab > 'Variable' section > 'Import Data' icon]. ...

約5年 前 | 0

回答済み
Genetic Algorithm in Matlab tool box
Hi Suresh, Please check the documentation for ga() carefully: https://www.mathworks.com/help/gads/ga.html https://www.mathwo...

約5年 前 | 0

さらに読み込む