Answered
convert a matrix to column vector
result=matrix(:)

5 years ago | 1

Answered
Find maximum value of each row in a double matrix
"I would like to find the maximum value of each row in this matrix" max_row=max(matrix') %............Note on transpose

5 years ago | 0

| accepted

Answered
Create a Vector fields
"% in the line before i have this error Invalid expression. When calling a function or indexing a variable, use parentheses. Oth...

5 years ago | 0

Answered
Polar Plot in 3D
Steps: 1.Load the data using readmatrix function. 2.Here you have to find/relate the theta and rho value and use the polarpl...

5 years ago | 0

Answered
How to find the constant value in a loop for a particular condition?
"I just want to find out corresponding C and sigma value for which I get minimum value in the error matrix automatically" for i...

5 years ago | 0

| accepted

Answered
Finding a specific index while labeling it with another
AgeArray=[1, 2, 3, 4, 5; 12, 46, 84, 8, 23] per=AgeArray(1,:); min_per=per(min(AgeArray(2,:))==AgeArray(2,:)) Result: min_pe...

5 years ago | 0

| accepted

Answered
Computation on arrays using loops
"I want matlab to save in workspace the values of array Y that corresponds to the every last "0" of the array X before the pulse...

5 years ago | 0

Answered
How to change the simulation time online based on some condition.
This way? https://in.mathworks.com/help/simulink/slref/matlabfunction.html function like condition=....%Initialise false whi...

5 years ago | 0

Answered
Undefined function 'extractLBPFeatures' for input arguments of type 'uint8'.
extractLBPFeatures Because this function Introduced in R2015b As you are using a older version of MATLAB, you may use the exte...

5 years ago | 0

| accepted

Answered
Plotting DFT, figure not corresponding
"Ak k = 0, shouldnt my cosine wave amplitudes be 1 and sine A - 0? " The shown graph for k=3 only Because you are not storing ...

5 years ago | 0

Answered
How can I segment an electron microscopy contrast image to find bubbles?
I know this is hard way to achieve this, already I have used my multiple minutes,not interested further. Please simplify it (to ...

5 years ago | 0

Answered
Ho do I change my dataset of images to the same size?
Steps: Call the images one by one Do resize Save in the different folder https://in.mathworks.com/matlabcentral/answers/3...

5 years ago | 0

| accepted

Answered
Getting Numerical values of some Non-dimensional parameters
Better to consider table https://in.mathworks.com/help/matlab/ref/table.html In your code skin =%f....... %.....^ %d or %f ...

5 years ago | 0

| accepted

Answered
how to write data into excel sheet
Modify accordingly: Save all result files in different excel sheet for i=1:length(files) data_file=.......% To save in excel ...

5 years ago | 0

| accepted

Answered
Looping Query where I need the count of the consecutive same number of occurrences equal to 5.
Important Note: There are multiple threads avalible related to the question, it's like run length algorthm. You can do without l...

5 years ago | 0

Answered
Identifying circles that have black dots in them
The name of color is for human perception only. Are they absolutely black, if yes, after converting to a gray image, 0 should be...

5 years ago | 0

Answered
if condition for counting
To display numbers more than 4, here var is the variable name of given data num_data=var(var>4) To count the numbers, which ar...

5 years ago | 0

Answered
Why am I not able to run this code?
Here J = odenumjac(fun,{0 x0}, f0, joptions); ^..............^ function without input arguments

5 years ago | 0

Answered
Combinations running through for loop
Because it is a function file, the output arguments only reflects in the workspace function [.....]=fun_name(.....) %...........

5 years ago | 0

| accepted

Answered
i would like to plot a function that outputs 2 plots. One of domain [-2pi,2pi] and other of [-30pi,30pi] with labels and axis
For Axes Labels xaxis replace with xlabel yaxis replace with ylabel For legends refer here https://in.mathworks.com/hel...

5 years ago | 0

Answered
Extract, save, plot three specific columns from huge txt file
Any issue? data=readmatrix('test.txt'); Now Extract the clolumns as data(:,2); % For 2nd Column data(:,3); % For 3rd Column...

5 years ago | 0

Answered
how do I calculate and highlight values in a 3d graph?
plot3(x,y,z); hold on; grid on; Get the indice where x=3.5 id=find(x==3.5) Get the corresponding y and z value y_data=y(id...

5 years ago | 0

Answered
How to make a single array of values from multiple different arrays one after the other
You canot combine numeric and strings together in an Array, You may do the same using cell array. Another way using table A=[7...

5 years ago | 0

| accepted

Answered
How to rearrange/reconstruct the matrix with the indeces?
"This result means that the first columnn of the matrix RA is rearrange of the first columnn of the matrix A by the first column...

5 years ago | 0

Answered
Plotting Functions using For Loop and If Statements?
t=-4:0.1:4 x1= (t.^2)-(2*t)+3; x2 = 4*cos((2*pi*t)-(pi/8))+3*sin(2*pi*t); x3 = sinc(t); y=zeros(1,length(t)); for i=1:leng...

5 years ago | 3

| accepted

Answered
How do I save this loop output into an array?
Use as array estimate=[]; o_number = input('Enter the original number: '); estimate(1)= input('Enter the initial estimate: ')...

5 years ago | 0

| accepted

Answered
Extracting external Boundary from Binary Image generated from noisy RGB
bwImage2=~bwareafilt(~bwImage,1); % Largest Blob se=strel('line',10,10); % Note one strel element, you may require to compens...

5 years ago | 1

Answered
Taking punctual values of array
"The problem is, that LRIS should have 81x3, where 81 is derived from k lenght, 3 should be the punctual values of 64,256, 1024,...

5 years ago | 1

Answered
Histfit : how to set minimum and maximum value for clusters?
Is this? Get the minimum and maximum value from the x data, considering x as a 1D array x_min=min(x); x_max=max(x); Next you...

5 years ago | 0

Answered
How to skip last n rows while reading a csv file using readtable?
This way? data_table=readtable('filename'); %want to remove n rows from last n=;...? data=data_table(1:end-n,:)

5 years ago | 1

Load more