답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

답변 있음
How to get matrix weighted average
A=[1;2;3]; result=A./6 or result=A/6

거의 7년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

| 수락됨

답변 있음
graph and conncomp examples
G=graph([1 1 4],[2 3 5],[1 1 1],6); plot(G);

거의 7년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
Code for solving 2 b) in MATLAB
ifourier Have you looked here ?

거의 7년 전 | 0

| 수락됨

더 보기