Jaimin Motavar
Followers: 0 Following: 0
Feeds
답변 있음
How can blur an image
can someone help me to figure out what is wrong in this code? function output = blur(img,w) B=double(img); [m,n] = size(...
How can blur an image
can someone help me to figure out what is wrong in this code? function output = blur(img,w) B=double(img); [m,n] = size(...
5년 초과 전 | 0
답변 있음
how to find the element which is greater than or equal to its row and smaller or equal to its column in a matrix
I hope this answer is helpful to you. function indices = saddle(M) [m,n]=size(M); a=[]; for i=1:m for j=1:n if...
how to find the element which is greater than or equal to its row and smaller or equal to its column in a matrix
I hope this answer is helpful to you. function indices = saddle(M) [m,n]=size(M); a=[]; for i=1:m for j=1:n if...
5년 초과 전 | 1
답변 있음
ASSIGNMENT: TEXT FILES Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input arguments, fname, a char vector of the filename and character, the char it counts in the file.
can some tell me what is the my mistake in this code?problem is written in comment secssion. function charnum = char_counter(fi...
ASSIGNMENT: TEXT FILES Write a function called char_counter that counts the number of a certain character in a text file. The function takes two input arguments, fname, a char vector of the filename and character, the char it counts in the file.
can some tell me what is the my mistake in this code?problem is written in comment secssion. function charnum = char_counter(fi...
5년 초과 전 | 0
답변 있음
I get an error, what's wrong? on Sparse matrix logic and answer
can you tell me what is wrong in this answer? function matrix = sparse2matrix(a) e=length(a); b=rand(a{1,1}); [m,n]=size(b);...
I get an error, what's wrong? on Sparse matrix logic and answer
can you tell me what is wrong in this answer? function matrix = sparse2matrix(a) e=length(a); b=rand(a{1,1}); [m,n]=size(b);...
5년 초과 전 | 0
답변 있음
Write a function called max_sum that takes v, a row vector of numbers, and n, a positive integer as inputs. The function needs to find the n consecutive elements of v whose sum is the largest possible.
function [summa,index]=max_sum(a,b) n=length(a); summa=0; total=0; if b>n summa=0; index=-1; return end for...
Write a function called max_sum that takes v, a row vector of numbers, and n, a positive integer as inputs. The function needs to find the n consecutive elements of v whose sum is the largest possible.
function [summa,index]=max_sum(a,b) n=length(a); summa=0; total=0; if b>n summa=0; index=-1; return end for...
5년 초과 전 | 0