Réponse apportée
convert a matrix to column vector
result=matrix(:)

plus de 5 ans il y a | 1

Réponse apportée
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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 0

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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 3

| A accepté

Réponse apportée
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: ')...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

Réponse apportée
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,...

plus de 5 ans il y a | 1

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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,:)

plus de 5 ans il y a | 1

Charger plus