Answered
Check if (x,y) point is within 2d array of (x,y) entries. Where x is one column and y another
Hi, I would like to point out that to create a matrix of points (x,y) you can use complex number. For example, consider the ma...

3 years ago | 0

Answered
I am trying to give an option (in row 15) of making sure you selected the right option. so, I wrote disp('if that correct type (1) if is not correct type(2) and it seem is not working. please help.
Hi, Use the code below to work out the issue you are facing. disp('0. Graphical') disp('1. Incremental Search') disp(...

3 years ago | 0

Answered
How do I create a fit.m function to fit points from a graph to a function such as a line or curve?
Hi, I understand that you intend to create a function that is used for curve fitting purposes. However, MATLAB supports the ve...

3 years ago | 0

Answered
T1 and T2 weighted MRI
Hi, T1 & T2 weighted MRI images are obtained using complex medical imaging techniques and generating such images from initial ...

3 years ago | 0

Answered
How to use convolution on a 2d matrix with a kernel?
Hi, I have made some changes to the code provided by you, the remaining code remains same. The edited code will perform convol...

3 years ago | 0

Answered
create an array with an output from a loop
Hi, Try out the code given below. I have mentioned appropriate comments to help you get through the code. % N is the loop...

3 years ago | 0

Answered
Labeling JPEG Pictures and Saving to Dataset
Hi, It is advised to manually loop through each of the ‘.JPEG’ images in the folder and label them. Refer to the MATLAB cod...

3 years ago | 0

Answered
Assign workspace variable during runtime
Hi, You may use the MATLAB Function Block available in Simulink. Double click on the scenario canvas and type ‘MATLAB Function...

3 years ago | 0

Answered
Steinhart-Hart equation and a dataset
Hi, Based on your description of the issue, I would like to make some assumptions stated below: R = Column vector consisting...

3 years ago | 0

Answered
How to directly create a non-random upper or lower triangle matrix without creating a full square matrix?
Hi, Consider the upper triangular matrix created below: A = [1 2 3 4; 0 5 6 7; 0 0 8 9; 0 0 0 10]; To create the mirror...

3 years ago | 0

Answered
MRI scan slices- I need to resize the image so axes show pixels in mm
Hi, Consider the following points to find resolution of the issue you are facing. To select specific MRI scan slices out of ...

3 years ago | 0

Answered
Is it possible to have an inline function inside a cell array to conditionally return an element to be stored?
Hi, The cell arrays in MATLAB are fundamental MATLAB classes/data types which have pre-defined definitions. The cell arrays do...

3 years ago | 0

| accepted

Answered
How to save Simulink model without model workspace saved
Hi, I’m assuming you want to clear the model workspace once you close it. You can do so by: Go to model settings>model prope...

3 years ago | 1

| accepted

Answered
How to fit data (2 variables) to get an equation?
Hi, Based on my understanding of description provided by you. I would like to point out that curve fitting is a process of find...

3 years ago | 0

Answered
simscape example model on building ventilation
Hi, Refer the following MathWorks pages to better understand modelling a ventilation system is simscape. Building Ventilatio...

3 years ago | 0

Answered
What is the parameter minimum performance gradient (trainParam.min_grad) of traingd?
Hi, Based on your description of the issue, I would state a few points: I agree that gradient descent is vector quantity & p...

3 years ago | 1

| accepted

Answered
Degree of polynomial surface fitting (cftool - fit)
Hi, You can use the ‘polyfitn’ toolbox to serve your required purpose. The ‘polyfitn()’ function is able to accurately predict ...

3 years ago | 0

Answered
Matlab Coder: Row Mayor Array Layout
Hi The Images in MATLAB are stored in a column major order. For additional Information on Images & Matrices in MATLAB, refer t...

3 years ago | 0

Answered
no puedo encontrar el centroide del triangulo ayuda¡¡¡ ( polyshape/centroid/triangle)
Hi, As stated by Rik , try running the command which centroid -all ,if the compiler does not report the path of ‘centroid()’...

3 years ago | 0

| accepted

Answered
Keeping Headers When Import Excel Then Running Code and Exporting
Hi, Based on my understanding of the issue you described. I would suggest a solution. Consider the points below. >> Z = rea...

3 years ago | 0

| accepted

Answered
How to identify the beginning of another hour and choose 3 rows per hour depending on the value of another metric in another column?
Hi, Consider the code given below. Few assumptions that I have made while writing this code are: The readings are taken start...

3 years ago | 0

Answered
How to set unlabeled values in matrix to zero
Assuming the name of the matrix variable as 'mat' To set unlabeled matrix values to 0, consider the pseudocode below: for i...

3 years ago | 0

Answered
How do you calculate the difference in noise between two audio signals?
Hi, I am assuming that the original audio signal is named ‘org’ & the modified (through steganography) audio signal is named...

3 years ago | 1

Answered
Computing Streamlines of Systems of 4+ Ordinary Differential Equations
Hi, MATLAB does not support N-dimensional analogue of streamlines or pathlines. Given that value of N is greater than 3. Howeve...

3 years ago | 0

Answered
Identifying force coefficients of a linear system
Hi, While performing the inverse process to calculate ‘x’. Use the code below: >> x = inv(A)*f Or >> x = A^ (-1) Inste...

3 years ago | 0

Answered
Error Reduction using a Preconditioner for Linear System Ax =b
Hi, I would suggest you use following preconditioner column vectors Pre_Conditioner = [1e-9;1e-9;1e-9;1e-9;1e-9;1e-9;...

3 years ago | 0

Answered
How to increase gif quality or resolution in Matlab
Hi, GIF use a lossless compression. Therefore, you cannot change the "quality" of gifs. However, you can change the size of th...

3 years ago | 0

Answered
problem using polyfitn with for loop and nchoosek
Hi mohamed, I assume that You are using the matrix ‘metriche’ as input data for the ‘polyfitn’ function. The vector ‘subj...

3 years ago | 0