Answered
Remove rows of a table based on values in an array
disp('Original table'); var1=[1;1;1;1;4;1]; var2=[2;2;2;2;5;2]; var3=[0;3;3;8;8;9]; table_data=table(var1,var2,var3) n=hist...

7 years ago | 1

| accepted

Answered
Smooth data with correlation
data_image=randi(255,64,64); % Smooth the image as per your requirements % or Bluring the image see the fspecial documentation...

7 years ago | 0

| accepted

Answered
Why do I keep getting an undefined function for 'deter'?
function d=deter (U) n=4; A=rand(n,n); d=prod(diag(U)); end Save the function in new matlab file (save as deter.m), Next ca...

7 years ago | 1

| accepted

Answered
How to get matrix weighted average
A=[1;2;3]; result=A./6 or result=A/6

7 years ago | 0

| accepted

Answered
Lung CT image cannot convert to grayscale image and binary
im=imread('image.jpeg'); im_gray=rgb2gray(im); The attached image is jpeg format, is it? May be the input image in dicom for...

7 years ago | 0

Answered
square wave with different duty cycle???
t=linspace(0,3*pi)'; duty_cycle=60; % Percentage x = square(t,duty_cycle); plot(t/pi,x) grid on Documentation here More p...

7 years ago | 0

Answered
Scaling of intensity value of captured jpg image
Is this? input_image=imread('filename.jpg'); dicomwrite(input_image,'dicom_img_name.dcm'); Or You want to map the RGB pixel...

7 years ago | 0

| accepted

Answered
How to resize a group of ones in an array of zeros?
If i have an array of zeors (512,512) with a couple of ones in there making up a shape, how do i rezise that group of ones makin...

7 years ago | 0

Answered
How to save imshowpair figure?
fig=gcf imwrite(fig,'image_result.tif'); % Change format as per requirements This code save the current figure window in curre...

7 years ago | 0

Answered
How to iterate so it will converge
but im not able to use any loops cause it wont work out... The convergence criteria is not related with loop (its do just repet...

7 years ago | 1

Answered
Why won't this plot?
You can make the privious three plot in single description using for loop, define "a" in array. #Recomended. The error arises be...

7 years ago | 0

| accepted

Answered
graph and conncomp examples
G=graph([1 1 4],[2 3 5],[1 1 1],6); plot(G);

7 years ago | 0

| accepted

Answered
Help with function with nested ifs
function [v]=Deflection_klle(x) %Deflection_klle will calculate the deflection of a defined beam % v=Deflection % x=Positio...

7 years ago | 0

Answered
Count in a loop
"I have this code I dont know how to count the number of p that is less than or equal to 1" count=0; for i=1:100 p_x= -1+...

7 years ago | 0

| accepted

Answered
How can i read a credit card number from an image in Matlab 2013a without using OCR
Have you tried with following links? https://in.mathworks.com/matlabcentral/fileexchange/18169-optical-character-recognition-oc...

7 years ago | 0

Answered
How to plot a region given by an inequality in matlab.
Here , see the simmilar question Is this the answer you are looking for?

7 years ago | 0

Answered
How to create a function that can solve and graph Euler's equations
I have the code and it works on it's own. I just can't figure out how to get it to a function format. function plot_test() dat...

7 years ago | 1

| accepted

Answered
Randi command for a matrix
Wrong here,you read a txt file as A and Divide it by 9>>B, Is there any sense?? % Read a text file, variable name A A = (textr...

7 years ago | 0

Answered
how to create a function from a script
Is this? Pass the different input arguments (y=drying_rate_1) to the function, as a result you will get the different plots as p...

7 years ago | 0

| accepted

Answered
How to plots the graphs with multiple y axes with one common x-axis?
Two y-axes yyaxis The graphs are seen as U/Ue vs y with different x values See the following example, you might get some hint...

7 years ago | 1

| accepted

Answered
Hiw to save the image as best resolution image
How to save the image in the fastest way as png. I am not sure about fastest way, one way: [~,~,I]=histcounts(peaks,5); I = I...

7 years ago | 0

| accepted

Answered
Fit multidimensional array into other multidimensional matrix with changing index
Suppose, as per your question, considering random A and B A=rand(4,4,2); B=rand(2,2,2); Now you want for A(:,:,1) to paste B...

7 years ago | 0

Answered
How to form a matrix ?
name= {'Ajay';'Sekhar';'Tom'} mark1=[20;30;40]; mark2=[25;35;45]; mark3=[23;33;43]; Varibles_Names={'Name', 'Mark1',...

7 years ago | 0

| accepted

Answered
save column values of different multiple .txt files without overwriting in a for loop.
I want to bring the 4th column of all the files in the sructure to one data_array, Read the txt file one by one (As you mention...

7 years ago | 1

| accepted

Answered
Replace Row in a Matrix with an Vector
Replace Row in a Matrix with an Vector matrix(n,:)=vector_data n is row number, Ensured that vector_data length and row length...

7 years ago | 0

Answered
How to bridge the gaps
"I want to retain the same thickness but to get them elongated in a way so they can connect". I tried using se=strel('line',h...

7 years ago | 1

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
The error is v(i) %..^ In Matlab indexing, the i value must be positive interger, like 1,2,3,,,, v(1)>> Allow v(0)>> No...

7 years ago | 1

Answered
Initial centroids for K-means clustering
Before I share the helpful link, I requested you to watch the Andrew Ng. lecture on Random Initialization of K menas (Machine Le...

7 years ago | 0

Answered
Selecting cross values from two arrays
Form the question, if you pattern the s,d, and J , it becomes 1 1 1 2 1 3 2 2 2 Have you find any pattern on the sequence?...

7 years ago | 0

Answered
Code for solving 2 b) in MATLAB
ifourier Have you looked here ?

7 years ago | 0

| accepted

Load more