Answered
how to convert vectore to function before integral
Your code contains a few potential errs that have been corrected. %% Q1part1 T0=20; T1=5; t=linspace(-5, 55, 601); w0=(2*pi...

5 years ago | 0

Answered
Second derivative of a function handle
Hi, Here is a corrected and more efficient solution to your exercise. clc clearvars syms zp(t) a b c D = 5; % Damping fac...

5 years ago | 0

Answered
problem plotting 3d function
Hi Here is the corrrected code. theta = linspace(0,pi); phi = linspace(0,2*pi); [theta, phi]=meshgrid(theta, phi); delta ...

5 years ago | 1

| accepted

Answered
3-Dimensional Matrix and Standard Deviation
Hi, Here is a relatively simple solution for the standard deviation calculation: D = DATA; % DATA of size: X-by-Y-Zs, wher...

5 years ago | 0

| accepted

Answered
Line in my graph is not connected in a simple graph, how can I make the plot and line exist in the graph?
x=[0 1 3 5 7 9 23 27 31] y=[2.3 2.22 1.92 1.6 1.52 1.07 0.73 0.5 0.45]; plot(x,y,'k*-', 'linewidth', 1.5), grid on, shg

5 years ago | 0

| accepted

Answered
How can I fix the heterogeneities of Gaussian curvature ? Surfature function
Hi, Decrease the mesh size a bit that should enhance the color distribution. Or scale up your data.

5 years ago | 0

Answered
How do I find Rsquared?
Hi, Here is the quick solution: % Starting point x0 = [10;10;10;10]; F = @(x) (x(1) + x(2)*tanh((x(3) - T0)/x(4)) ); Fo...

5 years ago | 1

| accepted

Answered
two coherent and two correlated signals in Matlab
Hi Sadiq, Here is a short script that demonstrates and shows if there is a coherence and correlation between the two generate...

5 years ago | 0

Answered
How I can find one of boundary of integral with figure with known integral result ??
Hi, Here is an easy solution to this exercise: D = readtable('C:\Users\sulay\OneDrive\Documents\MATLAB\data.csv'); DATE = D...

5 years ago | 0

Answered
Issue with sine graph
Hi, If you're trying to plot the weight ratio explained in your previous post, that has to be up to 30 degrees. Thus, you'd n...

5 years ago | 0

Answered
Why is errorbar plotting returning error when all inputs are doubles?
Hi, You have overlooked the conversion into date. Here is the corrected solution code: clc; clearvars D=xlsread('datafile....

5 years ago | 0

| accepted

Answered
How to do operation between number inside two cell
Hi, Here is the simple solution to your exercise: clc D1 = load('climatology.mat'); D2=load('daily.mat'); LAT = D1.nu_tab...

5 years ago | 0

| accepted

Answered
Simulink hw problem, set different initial values and set equal to 0
This one is a more unified simulation Simulink model of 2nd order ODE exercises with no external force applied case scenario.

5 years ago | 0

Answered
How to create a Gaussian Curve over a Bar Plot created by Histogram?
Hi, (1) You need to read the data of your image being processed, imread() (2) Convert data into single or double precision for...

5 years ago | 0

| accepted

Answered
How to save output of for loop (table) into excel sheet?
Hi, There are several errs in your code, k = 1:5 not 1:365. In your case writetable() is not the best option to employ with y...

5 years ago | 0

| accepted

Answered
How to merge data’s of multiple dot mat files in one dot matfile (one table)
Hi, Here is a simple solution: for ii=1:4 FN= strcat(['x' num2str(ii-1)], '.mat'); D=load(FN); ...

5 years ago | 1

| accepted

Answered
vertical dimensions mismatch ode45
Hi, While defining your fcn handle, you have omitted several empty spaces that created additonal elements in your fcn handle ...

5 years ago | 1

| accepted

Answered
How to create an animation between 3 points
Use drawnow.

5 years ago | 0

Answered
Cumulative sum for a certain condition with a starting and ending point
Your code runs, imports some data from MS Excel file, computes something, and at the end produces some errs due to empty outpu...

5 years ago | 0

Answered
Plotting mathematical functions in matplot
In MATLAB, you can plot it using: y=@(x)((1-x).^3-2); fplot(y, [-1, 5]);

5 years ago | 1

| accepted

Answered
How to plot separately figures?
Here are the plot parts as you were aiming to get: ... subplot(2,1,1); plot(t, x, 'b', t, xn, 'r'); grid on legend('Original...

5 years ago | 0

| accepted

Answered
Removing Noise from sound wave using fft
Hi, Did you perform the followings: ... n = length(t); % Time Fhat = fft(F, n); % FFT of F signal PSD = Fhat....

5 years ago | 0

Solved


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

5 years ago

Solved


Remove entire row and column in the matrix containing the input values
Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...

5 years ago

Solved


frame of the matrix
Given the matrix M, return M without the external frame.

5 years ago

Solved


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

5 years ago

Solved


Sums of cubes and squares of sums
Given the positive integers 1:n, can you: 1. Compute twice the sum of the cubes of those numbers. 2. Subtract the square...

5 years ago

Answered
How to read RGB values from each block after running this code?
Here are the calculations missing in your code to compute mean, std of R, G, B, etc. ... % just for tutorial purposes. r...

5 years ago | 0

| accepted

Answered
ode45 solver errors with time-dependant forcing/parameters
There are a few flaws - major and minor ones. (1) size of t has to be consistent to perform all calculations. (2) Fmat has to...

5 years ago | 1

| accepted

Answered
How to find the derivative of this Lyapunov function?
You have overlooked a couple of points V does not contain Kx_hat,Kx, Kr_hat, Kr variables and thus, no need to introduce: DKx...

5 years ago | 0

| accepted

Load more