Community Profile

photo

Sameer Pujari

MathWorks

Last seen: 29 days ago Active since 2021

I am an Application Support Engineer at MathWorks. DISCLAIMER: Any advice or opinions here are my own, and in no way reflect that of MathWorks

Programming Languages:
Python, C++, C
Spoken Languages:
English, Hindi, Marathi
Professional Interests:
Embedded Systems

Statistics

All
  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer
  • Community Group Solver
  • Commenter
  • Promoter
  • Solver

View badges

Content Feed

View by

Answered
How can I use collected data in a GUI of the US map?
Hi Aden You can use Thematic Maps to classify attributes and display them on the maps from the table data. Please refer to the ...

1 year ago | 0

Answered
What's the difference between address and pointer?
Hello Min Hoon Code generation in Simulink provides code optimization by allowing function reuse. The following documentation l...

1 year ago | 0

| accepted

Answered
Running two different models in one simulink code with subsystems
Hi Aishwarya As per my understanding of your question, As you are using an atomic subsystem and there are no dependencies betwe...

1 year ago | 0

Answered
Not able to change the values of the voltage source on Simulink
Hi Rosheen I understand that you want to change the value of a certain block parameter and then simulate the model for that cer...

1 year ago | 0

| accepted

Answered
How to select a preferred channel on the audiorecorder
Hi Venkat The "audiorecorder" function is a lightweight function for most common usages (acquire sound from a stereo source, on...

1 year ago | 0

Answered
MatLab Report Generator Word Wrap Issues
Hi Matt To get the text to wrap to the second line by separating at a "space" rather than in the middle of a word when using...

1 year ago | 0

| accepted

Answered
How to extract raw data from a rgb image visualized with known colormap?
Hello Xin Liu From the given info, I understand that you want to get RGB image back after you have visualised with a known co...

1 year ago | 0

Answered
Could not connect to STM32F7xx board for serial communication
Hi Omar Ismail I understand you are facing communication issue while using “Monitor and Tune” mode on STM32F7xx board Ensuring...

1 year ago | 0

Answered
Plotting a graph to show the variation in time of a current
Hi Eduard Mihai Upon reproducing your code, I understood that the issue you are facing is due to not converting the phase angle...

1 year ago | 0

Answered
How can I set Internal Pull-Up or Pull-Down resistor for Digital I/O pins using Simulink Coder Support Package for STMicroelectronics Nucleo Board?
Hi Sandeep Goyani, I understand you are facing an issue regarding selecting pull mode for a certain GPIO PIN in Simulink. ...

1 year ago | 0

| accepted

Solved


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

2 years ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

2 years ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

2 years ago

Solved


Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...

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


Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

2 years ago

Solved


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]

2 years ago

Solved


Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

2 years ago

Solved


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

2 years ago

Solved


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

2 years ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<https://i.imgu...

2 years ago

Solved


Return area of square
Side of square=input=a Area=output=b

2 years ago

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

2 years ago

Solved


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

2 years ago

Solved


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.

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


Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

2 years ago

Solved


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

2 years ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

2 years ago

Solved


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

2 years ago

Load more