Community Profile

photo

sourav malla


Active since 2019

Statistics

All
  • Knowledgeable Level 1
  • Revival Level 1
  • First Answer
  • Solver

View badges

Content Feed

View by

Answered
how to sum value of fields on struct?
You can do it with a for loop like this: sum1=0; for i=1:length(s) sum1=sum1+s(i).fieldname end or you can directly do ...

2 years ago | 1

Question


How to plot a continuous graph from distinct points.
How to plot a continuous graph by joining the distinct points created by two array of unqual length. Suppose:- x=[1 3 5 6] y=...

2 years ago | 2 answers | 0

2

answers

Answered
How OCR method works on Matlab
You can find all the details from these 2 links below:- https://www.mathworks.com/help/vision/ref/ocr.html?searchHighlight=ocr&...

2 years ago | 0

Answered
find mutual information between images
You can get useful help from here regarding comparing the features between 2 images: https://www.mathworks.com/help/vision/ug/u...

2 years ago | 0

| accepted

Answered
for loops and the if statement
If you are assigning something inside the loop then its: z=0; And if you are checking a statement for true or false then: z=...

2 years ago | 0

Answered
increment two values in a single for loop
You can also do like this:- for i=1:n,j=1:m %do something; end It will execute the stuff in (n*m) format.

2 years ago | 0

Answered
How to plot 3D bar graph?
You can find the details in the documentation here:- https://www.mathworks.com/help/matlab/ref/bar3.html

2 years ago | 1

Answered
How can I put the value of z in a matrix and later call it as z(1,i) and z(2,i) in the while loop?
If you want a matrix of 2 column with changing row values then you can do like this:- while i<t Z(2,i)= z(1,i)+dt*vh; ...

2 years ago | 0

Answered
How to extract temperature values from FLIR IR as a .csv file in Matlab?
You can always start with the documentation. Here is the Link: https://www.mathworks.com/help/images/index.html?searchHighlight...

2 years ago | 0

Answered
How to remove empty struct fields [ ] from a group a struct fields ?
You can try like this:- out = {t(~cellfun(@isempty,{t.places})).places}; t = cell2struct(out,{'places'},1);

2 years ago | 0

Solved


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

2 years ago

Solved


What is the next step in Conway's Life?
Given a matrix A that represents the state of <http://en.wikipedia.org/wiki/Conway's_Game_of_Life Conway's game of Life> at one ...

2 years ago

Solved


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...

2 years ago

Solved


Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...

2 years ago

Solved


Pattern matching
Given a matrix, m-by-n, find all the rows that have the same "increase, decrease, or stay same" pattern going across the columns...

2 years ago

Solved


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

2 years ago

Solved


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

2 years ago

Solved


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...

2 years ago

Solved


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

2 years ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

2 years ago

Solved


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...

2 years ago

Solved


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...

2 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

2 years ago

Solved


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...

2 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

2 years ago

Solved


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 + ...

2 years ago

Solved


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...

2 years ago

Solved


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

2 years ago

Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

2 years ago

Answered
I want to open a .mdl simulink file which is saved as text document. Whenever i try to open it from simulink it does not shows up in the directory where i saved it. Can somebody answer it please.
Simulink opens the .mdl file in graphical ways. So you can not read ASCII information of .mdl file simulink window. But you can...

2 years ago | 0

Load more