Answered
How to eliminate transition section in contourf function;
% Sample data [X, Y, Z] = peaks(100); % Create a figure figure; % Create a filled contour plot contourf(X, Y, Z); % ...

1 year ago | 0

Answered
How do I stop my colorbar from adjusting automatically to represent the saturation within my figure
To prevent the color map from adjusting its scale dynamically over each timestep, you should set the CLim property of the curren...

1 year ago | 0

Submitted


Iterative Neural Network Training in MATLAB
Iterative neural network training in MATLAB. Enhances model accuracy by retraining with data rows where predictions exceed a 10%...

1 year ago | 1 download |

Answered
Can you provide me suggestions/critique my approach to this Neural Network fitting?
Try this: % Load your data % Example: load('your_data.mat'); % Assuming you have Input and Output as your data matrices % ...

1 year ago | 0

| accepted

Solved


Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

1 year ago

Solved


Rescale Scores
Each column (except last) of matrix X contains students' scores in a course assignment or a test. The last column has a weighted...

1 year ago

Solved


Calculate BMI
Given a matrix hw (height and weight) with two columns, calculate BMI using these formulas: 1 kilogram = 2.2 pounds 1 inch = 2...

1 year ago

Solved


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

1 year ago

Solved


Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

1 year ago

Submitted


Stereo Audio Generation with Phase-Differentiated Channels
The code is designed to generate and play a stereo audio signal with a specific frequency and phase difference, like circularly...

1 year ago | 1 download |

Answered
circularly polarized signals using matlab audio
However, I'll provide a general approach, and you can adjust as per your exact needs. Generate the Signal: If you're thinking o...

1 year ago | 0

Answered
how add "$" and "' ' " in array string
% Sample data T = [ "139411.39"; "115944.39"; "413970.912"; "124256.379"; "144673.585"; "93473.16...

1 year ago | 0

Answered
Different outputs from spectrogram and pwelch
Spectrogram Scaling: In your spectrogram analysis, you are converting the spectrogram power values to dB and applying calibratio...

1 year ago | 0

Submitted


Reservoir Simulation with Precipitation and Constraints
This MATLAB code simulates the behavior of a reservoir system over a given time period

1 year ago | 1 download |

Solved


Natural numbers in string form
Create a cell array of strings containing the first n natural numbers. _Slightly_ harder than it seems like it should be. Ex...

1 year ago

Solved


radius of a spherical planet
You just measured its surface area, that is the input.

1 year ago

Solved


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

1 year ago

Solved


Possible Rugby Scores
Given a natural number s (> 4), representing a rugby team's score, return an n-by-3 matrix representing all n possible combinati...

1 year ago

Solved


Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n. Fun note: technically it...

1 year ago

Solved


Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

1 year ago

Submitted


Comparing Distribution Fitting: Normal, Exponential, Gamma
Utilizing MATLAB's Statistics and Machine Learning Toolbox for fitting normal, exponential, and gamma distributions to a dataset...

1 year ago | 5 downloads |

Answered
How to check which distribution (normal or exponential or gamma) fits best to a data set? Which function to use for this?
To determine which distribution (normal, exponential, or gamma) fits the dataset most accurately, you can use a goodness-of-fit ...

1 year ago | 0

Answered
How to export a set of tables to Excel
% Create a cell array to hold your tables tables = {table1, table2, table3}; % Replace with your actual tables % Specify the...

1 year ago | 0

Answered
Can anybody help me to code boundary conditions in MATLAB for Keller Box Method?
% Define parameters r_1 = 0.1; r_2 = 0.2; S = 2.0; % Define the differential equations % y(1) = f, y(2) = f', y(3) = θ, y...

1 year ago | 0

Answered
Genetic Algorithm Best Objective Function Value Increased in Later Generations
In genetic algorithms (GA), it is common to observe fluctuations or changes in the objective function value (fitness) from one g...

1 year ago | 1

| accepted

Answered
Plot equation using user input array
clear s = tf('s'); zeta = input('Enter damping ratio values in a 1D array: '); omega = input('Enter natural frequency val...

1 year ago | 0

Submitted


Estimating the Relative Changes in Motion of 3D Objects
CNN for estimating the relative changes in motion between two consecutive images.of 3D objects

1 year ago | 1 download |

Submitted


Adaptive filter output using dsp.FrequencyDomainAdaptiveFilt
A general outline for using the dsp.FrequencyDomainAdaptiveFilter in MATLAB to remove background noise from EMI measurement data...

1 year ago | 1 download |

Solved


Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

1 year ago

Solved


Find MPG of Lightest Cars
The file |cars.mat| contains a table named |cars| with variables |Model|, |MPG|, |Horsepower|, |Weight|, and |Acceleration| for ...

1 year ago

Load more