Community Profile # Dipesh Mudatkar

Active since 2017

#### Statistics

All
• • • • • #### Content Feed

View by

Question

How to convert Simulink model into XML file ?
I tried following. >> sys='Example'; % Model name is Example >> save_system(sys, 'exported_file_name.xml', 'ExportToXML', ...

3 years ago | 2 answers | 0

### 2

Question

How to share data between two GUI ?
Problem: 1. Two GUI are created with name First.fig / First.m and Second.fig / Second.m. 2. Both GUI have two radio button...

3 years ago | 1 answer | 0

### 1

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

3 years ago

Solved

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

3 years ago

Solved

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

3 years ago

Solved

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

3 years ago

Solved

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

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

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

3 years ago

Solved

Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

3 years ago

Solved

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3 years ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

3 years ago

Solved

Given a and b, return the sum a+b in c.

3 years ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

3 years ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

3 years ago

Solved

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

3 years ago

Question

Trying to implement the factorial program in stateflow.
Error While running the Simulink/Stateflow model model Error: Size for Local Data 'index' may not be inherited Error: Size...

3 years ago | 0 answers | 0

### 0

Question

MATLAB GUI figure open with the Toggle button problem [Explanation Given Below].
*Files:* UI_Input.m, warning_123 and UI_Input.fig (For matlab GUI). *Input Figures for Display:* On.PNG, Off.PNG, One.PNG and...

3 years ago | 0 answers | 0

### 0

Question

Error while running the script based Unit Tests
The example given on MathWorks website (on the link given below) is not working. <https://in.mathworks.com/help/matlab/matlab...

3 years ago | 1 answer | 0

### 1

how to invert the samples of a audio signal
Try this. [y,fs]=audioread('put your audio file path'); % This will give you audio samples is y (It should be in row vector...

4 years ago | 0

Question

If signal(1D) is buffer and buffer matrix(2D) is process after this how to combine back the processed buffer matrix to generate the same length (1D) signal as input?
If I have the signal A=[1:100]; % 1D signal B=buffer(A,20,10); % framesize=20 and frameshift=10. ...

4 years ago | 0 answers | 0

### 0

Submitted

Multiple raw audio file (with .CA0 extensions) to wave file conversion.
Multiple Audio .PCM raw audio to .wav conversion with for loop

Question

I tried this code fid = fopen('File_name','r'); y = fread(fid,inf,'short'); y = doubel(y); sound(y) but sound is no...

5 years ago | 1 answer | 0