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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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); ...

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 0

Resuelto


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.

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

Resuelto


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

alrededor de 5 años hace

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

alrededor de 5 años hace | 0

| aceptada

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

alrededor de 5 años hace | 1

| aceptada

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

alrededor de 5 años hace | 0

| aceptada

Cargar más