Answered
3D Plot from xls
clc,clear A = xlsread('Prova.xlsx'); t = A(2:end,1); x = A(1,2:end); Z = A(2:end,2:end); surf(x,t,Z)

7 years ago | 1

| accepted

Answered
How would I develop a program to solve this PDE for any dt and dx?
Look here: Wiki MathWorks comunity some theory

7 years ago | 0

Answered
how to interpolate x and y coordinates of contour?
Look for interp2 then build countour

7 years ago | 0

Answered
Write a signal whose phase increases
See in wiki Two point line equation

7 years ago | 0

Answered
How to find if a projectile intersects a point in a line?
if min(D) < tolerance, disp("the target is destroyed"), end

7 years ago | 0

Answered
How can I introduce dead trees into a model of a forest fire?
Z(Z>3)=3;

7 years ago | 0

| accepted

Answered
How to plot a 2 variables function with integration and sum
clc, clear L = 15; NbPts = 50; y = linspace(0,L,NbPts*3); t = linspace(0,0.1,NbPts); n = 1:2:NbPts; [N1, Y1] = meshgr...

7 years ago | 0

| accepted

Answered
Error in numerical integration that I do not understand
F1 = @(z) 0; F2 = @(z) 0; F1 = @(z) F1(z) + F1_in(z); F2 = @(z) F2(z) + F1_in(z);

7 years ago | 0

| accepted

Answered
Find nodes in a mesh
if matrix with faces/triangles like [1 2 3; 4 5 6; 7 8 9 .... [~, indv] = find( -200<x & x<200 & -200<y & y<200 ); % indices...

7 years ago | 0

Answered
How do I create a 3D surface plot of a function y that depends on x and t?
[T, X] = meshgrid(t,x); surf(X,T,u) xlabel('X axis') ylabel('Time')

7 years ago | 0

| accepted

Answered
How to plot this complicated function 2-D
t = linspace(1,10,50); plot(t,cp(t))

7 years ago | 0

| accepted

Answered
Find external contour in image Matlab
Simple?

7 years ago | 0

Answered
Why when plotting - no Phase change of 180 degrees ?
maybe you need a function: function res = Ek(t) % t1 = % t1B = % t2 = phi0 = pi/2; k = -phi0/(t1B-t1); res = zeros(siz...

7 years ago | 0

Answered
How to find foreground pixels between two specified pixel locations in a connected component
What do you mean "Connected component"? n = max(x2-x1,y2-y1); n = abs(n)+1; % number of pixels between coordinates ind...

7 years ago | 0

Answered
How do is code this last summation? I was able to do the first one but have no clue how to finish it?
Maybe a little bit clearer version: y= 7.5, n=16, L=16 result: 118.22 y= 4, n=1, L=3 result: 46.31 function main % inpu...

7 years ago | 1

| accepted

Answered
I am working with tmy3 files, and I have csv hourly data for a whole year. I need to get the maximum of a certain value for each month and plot them and also performing addition to another value for each day and getting the max and min day?
I've imported 8th column (3:end rows) to MATLAB and found max value of each month plot(DNIWm2) days = [0 31 28 31 30 31 30...

7 years ago | 1

| accepted

Answered
How can I solve this problem ? 'Area between curves'
fplot(f,[-2 5]) hold on fplot(g,[-2 5],'r') hold off

7 years ago | 0

| accepted

Answered
Initial Condition of Matrix for ODE45 function
Try this function dmwdt=grinding(t,mw,param); %% ... ode45(@(t,mw)@grinding(t,mw,param),[0 60],mw0);

7 years ago | 0

Answered
How to use ode45 for an equation with space dependent coefficients?
p = @(x) sin(x).*sqrt(tan(x)); % x(1) == x % x(2) == x' f = @(t,x) [x(2); -p(x(1)).*x(1)]; tspan = [0 2]; x0 = [0.5 0.1]; ...

7 years ago | 2

| accepted

Answered
How to find value of x given y ?
B=xlsread('cp_lambda.csv'); x1=B(:,1); y1=B(:,2); figure(2) plot(x1,y1) x2 = 0.1; y2 = spline(x1,y1,x2); hold on plot(x2...

7 years ago | 1

| accepted

Answered
Rotation of a patch using eigenvectors
If you have center of your body and you can manually get axis symmetry - use rotation matrix Here vector is normal vector of p...

7 years ago | 0

Answered
Adding Constraints to solve
It seems that there is no solution for constraints. Look attached script. Main equation F ==12 and a+b+c+d==1. Expressed a and ...

7 years ago | 0

Answered
Runge-Kutta solving 2nd ODE
See attached code. Try to write your code as clear and simple as it possible, because it is very easy to make a mistake

7 years ago | 0

Answered
Use a column from a text file to find value of a parameter in for loop
fid = fopen('sowmya.txt'); A = fscanf(fid, '%g %g %g', [3 inf]); fclose(fid); A = A'; x = A(A:,3); % entire 3th column ...

7 years ago | 1

Answered
Finding index between two parallel lines
You can use inpolygon clc, clear xmin = 50; xmax = 551; ymin = -35; ymax = -800; y1 = ymax + 150; y4 = ymin - 150; k...

7 years ago | 0

| accepted

Answered
Help calculate areas beneath curves
You have to find intersection points of those curves. Or if you will be satisfied with that accuracy, simple code: S = 0; b ...

7 years ago | 0

Solved


Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Find the remaining side of a triangle given the hypotenuse and a side. However, the normal functions and symbols are not allowe...

7 years ago

Solved


Multiply 2 numbers
Very easy, you just have to multiply 2 numbers but you cannot use the following signs (*, /, - ,^) ,mtimes , times, cross, pro...

7 years ago

Solved


Television Screen Dimensions
Given a width to height ratio of a TV screen given as _w_ and _h_ as well as the diagonal length of the television _l_, return t...

7 years ago

Answered
ode45 projectile motion with drag in Y direction. help im desperate
function temp tspan = 0:.001:1; x0 = 0; y0 = 0; a = 45; v0x = 10*cosd(a); v0y = 10*sind(a); u0 = [x0 y0 v0x v0y]; [t,y] ...

7 years ago | 0

Load more