monika shivhare
Indian Institute of technology, BHU, Varanasi
自 2018 起处于活动状态
Followers: 0 Following: 0
Feeds
已解决
Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...
6 years 前
已回答
How to divide this array problem ?
data = [6 7 5 3 4 1 2]; dataA =[data(1) data(2:2:end)]; dataB =[data(1:2:end)];
How to divide this array problem ?
data = [6 7 5 3 4 1 2]; dataA =[data(1) data(2:2:end)]; dataB =[data(1:2:end)];
6 years 前 | 1
| 已接受
已回答
i want to get the max value from a column matrix from a specific no of rows ?
Let A is your given data column matrix, and m is matrix of maximums of each 8760 rows m=zeros(30,1); for i=1:30 m...
i want to get the max value from a column matrix from a specific no of rows ?
Let A is your given data column matrix, and m is matrix of maximums of each 8760 rows m=zeros(30,1); for i=1:30 m...
6 years 前 | 0
| 已接受
已回答
using find function and logical array
find(M) takes the matrix given in argument M, and returns matrix of indexes in M where value at that index in M is not zero. Z=...
using find function and logical array
find(M) takes the matrix given in argument M, and returns matrix of indexes in M where value at that index in M is not zero. Z=...
6 years 前 | 1
已回答
Plot where x axis is the date, Part 2 (edited)
xlim(datetime([2016 2018],[4 5],[20 18])) xtickformat('dd-MMM-yyyy')
Plot where x axis is the date, Part 2 (edited)
xlim(datetime([2016 2018],[4 5],[20 18])) xtickformat('dd-MMM-yyyy')
6 years 前 | 0
已回答
I dont know how to solve the below question. I'm completely lost on where to even begin. I understand the fprintf, just the sin and cos always throw me off. Any direction would even be greatly appreciated
x=0:0.1:1; f=sin(x./(1+x)); for i=1:length(x) fprintf('%0.8f %0.8f\n',x(i),f(i)); end
I dont know how to solve the below question. I'm completely lost on where to even begin. I understand the fprintf, just the sin and cos always throw me off. Any direction would even be greatly appreciated
x=0:0.1:1; f=sin(x./(1+x)); for i=1:length(x) fprintf('%0.8f %0.8f\n',x(i),f(i)); end
6 years 前 | 0
| 已接受
已回答
Plotting a column of a matrix as function of the others
make a meshgrid using values of X and Y [x,y] = meshgrid(X,Y); make a surfaceplot surf(x,y,Z) refer to link <htt...
Plotting a column of a matrix as function of the others
make a meshgrid using values of X and Y [x,y] = meshgrid(X,Y); make a surfaceplot surf(x,y,Z) refer to link <htt...
6 years 前 | 0
已回答
How can I save multiple plots in a specified folder?
To off visibility of figures on screen set(0,'DefaultFigureVisible','off') To save all figures in specified folder, ...
How can I save multiple plots in a specified folder?
To off visibility of figures on screen set(0,'DefaultFigureVisible','off') To save all figures in specified folder, ...
6 years 前 | 4
已回答
ismember error message "Subscript indices must either be real positive integers or logicals."
[Lia,Locb] = ismember(X,Y) Determines which elements of X are also in Y as well as their corresponding locations in B. Locb i...
ismember error message "Subscript indices must either be real positive integers or logicals."
[Lia,Locb] = ismember(X,Y) Determines which elements of X are also in Y as well as their corresponding locations in B. Locb i...
6 years 前 | 1
已回答
How to count black pixels block by block in an image I divided into 16x16 blocks?
Assuming that if count(number of black pixels in a block) exceeds a certain threshold, you want to change the edges of block to ...
How to count black pixels block by block in an image I divided into 16x16 blocks?
Assuming that if count(number of black pixels in a block) exceeds a certain threshold, you want to change the edges of block to ...
6 years 前 | 0
| 已接受
已回答
how to find muu^k in the image show (this was related to multiobjective)?
Based on what the image describes, assuming you are giving (F,Fmax,Fmin,M,N) as input, normalized membership function can be cal...
how to find muu^k in the image show (this was related to multiobjective)?
Based on what the image describes, assuming you are giving (F,Fmax,Fmin,M,N) as input, normalized membership function can be cal...
6 years 前 | 0
| 已接受
已解决
Bullseye Matrix
Given n (always odd), return output a that has concentric rings of the numbers 1 through (n+1)/2 around the center point. Exampl...
6 years 前
已解决
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
6 years 前
已解决
Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...
6 years 前
已解决
Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...
6 years 前
已解决
The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...
6 years 前
已解决
Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...
6 years 前
已解决
Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...
6 years 前
已解决
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
6 years 前
已解决
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
6 years 前
已解决
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
6 years 前
已解决
Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...
6 years 前
已解决
Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
6 years 前
已解决
Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...
6 years 前
已解决
Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]
6 years 前
已解决
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
6 years 前
已解决
Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...
6 years 前
已解决
Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...
6 years 前
已解决
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
6 years 前