Community Profile

# Mrutyunjaya Hiremath

Last seen: 3 days ago Active since 2020

Intrested in Coding

All

#### Content Feed

View by

apple silicon and parfor efficiency
Your observations and analysis are very insightful, and you've touched upon several important points regarding parallel computin...

4 months ago | 1

| accepted

Errors in ASAP2 Generation: Attempt to call a non-function value
The error seeing appears to be a TLC (Target Language Compiler) error when MATLAB/Simulink tries to generate an ASAP2 file. TLC ...

4 months ago | 0

How can I retrieve a PostgreSQL double precision[] from within MatLab from an actxserver("ADODB.Connection") connection?
Arrays in PostgreSQL, especially of type `double precision[]`, may not be directly supported or might be causing issues when fet...

4 months ago | 0

Solved

Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

5 months ago

Solved

Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

5 months ago

How calculate Energy efficiency in massive MIMO with antenna selection ?
The Energy Efficiency (EE) is usually measured in bits per joule (bits/J) and is calculated as follows: Energy Efficiency (EE) ...

5 months ago | 0

Is there a MATLAB function to apply a 1D Gabor filter to an input?
% Parameters a = 1; % Amplitude mu = 0; % Mean sigma = 2; % Standard deviation f = 1; % Frequency phi = 0; % Phase off...

6 months ago | 0

How to solve such integrations on MATLAB?
The 'quadgk' function in MATLAB can be used for numerical integration. However, since you're dealing with complex variables, you...

6 months ago | 0

Identify Duplicate values in an array and replace with Nan
If you want to replace only the duplicates with 'NaN' and keep one occurrence of each value intact, here is the code: % Sample ...

6 months ago | 0

| accepted

Replacing elements in arrays
Here is a more straightforward way to replace the smallest and largest numbers in the array using MATLAB's built-in functions mi...

6 months ago | 0

Unable one of the options of drop down
You can use 'set' to change the 'Enable' property of the dropdowns in the callback functions. Here's how you can modify the c...

6 months ago | 0

| accepted

Why am I getting a parse error trying to put this function in MATLAB?
The issue you're encountering is because you have a syntax error in your MATLAB function declaration. You should define your fun...

6 months ago | 0

How to obtain curve fitting tool startpoints using code? Replicate Curve Fitter Toolbox
% Prepare data [xData, yData] = prepareCurveData( time_temp, state_timeseries_temp ); % Set up fittype ...

6 months ago | 0

Solving an equation consisting of a PDE and ODE
clc; clear; close all; % Given parameters espo = 0.269; gamma = 0.49; beta = 0.09; Pa = 1200; k0 = 3.4965e-15; u =...

6 months ago | 0

Solved

Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in bra-kets. Today however you, the player, will have to write a function ...

6 months ago

Solved

Morse Code Generator! Try it!
.... . .-.. .-.. --- . ...- . .-. -.-- --- -. . -.-.-- .-.. . - ... -.. --- ... --- -- . -- --...

6 months ago

How much GPU do I need?
Basic Formula to Estimate GPU Memory Requirement Memory Required=Model Size+Batch Size×(Forward Pass Memory+Backward Pass Memor...

6 months ago | 1

Solved

Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

6 months ago

Solved

Alternately upper-lower case
Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA' Update - Test case...

6 months ago

Solved

Eliminate Polysyllabics: Long live short words!
Given a string s1, return s2 in which all the words with more than one syllable have been removed. To make things simple, we ...

6 months ago

Submitted

Predator-Prey Dynamics with Fixed Sum
The MATLAB code models the Lotka-Volterra predator-prey equations over time. It shows population dynamics of predators and prey ...

How to add restrictions to our group of differential equation? For example, in predator-prey model I want the sum of predator and prey to be fixed.
Here we go, t0 = 0; tfinal = 15; y0 = [20; 20]; % Initial conditions [prey, predator] [t, y] = ode23(@lotka, [t0 tfinal], y...

6 months ago | 0

error: Matrix dimensions must agree
Here, You're running a nested loop: The outer loop (i) iterates over each trial or nest. The inner loop (j) iterates over each...

6 months ago | 0

Variable-size signal error
Simulink is stricter than MATLAB when it comes to variable sizes. In MATLAB, you can change the size of a variable at will, but ...

6 months ago | 0

Solved

Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

7 months ago

Solved

Symmetry of vector
Determine whether the vector is symmetric or not (vector could be even or odd in length). For example: x = [1 2 3 3 2 1] is s...

7 months ago

Solved

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

7 months ago

Wanted to use the function multisvm under Image Processing, since it has been removed, please suggest an alternative for the same.
'multisvm' was never a built-in MATLAB function but seems to be a user-provided one that has been circulated in various forums a...

7 months ago | 0

Tricky restriction in an optimization problem
'fmincon' is equipped to handle such constraints by accepting a function that provides both equality and inequality constraints....

7 months ago | 2

| accepted

Solved

When Was That Goal Scored?
We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

7 months ago