Answered
Having issues with RK4 on small angle pendulum
Please use button fro code inserting

6 years ago | 0

| accepted

Answered
probem with FaceColor of bar
One way: R=[0.779810425627480 0.000659297275251825 0.688360393160301 0.184532497610895 0.0905962113611394 0.0626722269195076 0....

6 years ago | 0

| accepted

Answered
how to plot the 3D graph
There is no built-in function for cube displaying I took your code and piece of code HERE Modificated code produces this:

6 years ago | 0

| accepted

Answered
Area Mach Number Relation
Here is what i reached using polyxpoly g = 1.4; gm1 = g-1; gp1 = g+1; F = @(M) 1./M.^2.*((2+gm1*M.^2)/gp1).^(gp1/gm1);%-...

6 years ago | 0

Answered
3D plot isocolor
It is because there is no such value as data=10 for those intervals you set [x,y,z] = meshgrid(-1:1,-1:1,-1:1); data = 1.95+(0...

6 years ago | 0

| accepted

Answered
I wanted to plot a surfc plot of the attached data. It has x,y and z data.The data corresponds to a 2D scan of a circular cross section.
Just use griddata() xq = linspace( min(x),max(x),30 ); yq = linspace( min(y),max(y),30 ); [X,Y] = meshgrid(xq,yq); Z = gridd...

6 years ago | 0

| accepted

Answered
Can ode45 solve a system of differential equations with cross coupled differential terms?
Just use math to express dy/dt and dx/dt separately

6 years ago | 0

Answered
Matlab code for Slider Crank Mechanism
What i achieved And here are formulas i used to reach such success: - pythagorean theorem

6 years ago | 0

Answered
How to declare parameters in matlabFunction?
clc,clear syms x(t) y(t) z(t) % variables syms a b c % parameters % set up derivatives d2y = diff(y...

6 years ago | 0

Answered
How do to remove section of a defined path (skeleton)?
Try my script

6 years ago | 1

| accepted

Answered
Hello can anyone please help me with solving these coupled differential equation.
THIS produces this

6 years ago | 0

| accepted

Answered
How to solve a equation with a single variable for a range of values?
I think it can be kind of complicated for symbolic calculations clc,clear syms a L2 % define your constants eqn = % your...

6 years ago | 0

Answered
i'm trying to find the 3 roots for the equation ?(?,?)−800,000 =0
Why don't use simple plot() for this case? v = linspace(-3,3); % reduce parenthesis a bit for more readable view P = R*T....

6 years ago | 0

Answered
Filtering binary image object based on area
What about centroid? I = imread('Capture.png'); I1 = rgb2gray(I); L = bwlabel(I1); pp = regionprops(L,'centroid'); xy = cat...

6 years ago | 0

Answered
How to restart a for loop when a condition is met?
Use while loop t = 2; while t <= 365; R1=Rgas(t-tgas,mu,sigma) ReliabilityGAS(t)=Rgas; time(t)=t; TIMELOST...

6 years ago | 0

Answered
Interpolated 2D sections out of 3D plot
Use griddata() (use griddata(x,y,z,xq,yq,'method','cubic') if interpolation is needed) to build a surface Use contour() to crea...

6 years ago | 0

| accepted

Answered
Plot is a straight line when it should be a curve.
Look Also i suggest to write more readable code (even if it's longer) c1 = cosd(45 + AngleB); s1 = sind(45 + AngleB); st =...

6 years ago | 1

| accepted

Answered
How would I plot the value of the root number of function vs number of times iterated to get to the root number of said function?
I believe is something wrong with your code You forgot about i counter, every iteration c(i) = guess

6 years ago | 0

Answered
Concentration with respect to time at different temperature
Try this h1 = open('graphcvst1.fig'); h2 = open('graphcvst2.fig'); % extract data from the first figure figure(h1) h = ...

6 years ago | 0

| accepted

Answered
Fit a curve to data points x = f(y)
Look HERE and HERE

6 years ago | 0

| accepted

Answered
Creation of new waypoints between existing waypoints
Try this % parameter - curve length t = [0; cumsum(sqrt(diff(x).^2+diff(y).^2))]; % refine parameter t1 = linspace(0...

6 years ago | 0

Answered
Convert 3D coordinates to stl surface
I took your data and did this: A = xlsread('data.xlsx'); X = A(:,1); Y = A(:,2); Z = A(:,3); stlwrite('file.stl',X,Y,Z) fv...

6 years ago | 0

Answered
Drawing Regions of Fixed Distance of an Irregular Polygon
Try this result:

6 years ago | 0

| accepted

Answered
How to delete the branches?
I have an idea: Find pairs of branch/end points smaller than desired length Select circle area between points. Find biggest ar...

6 years ago | 1

Answered
find area of curve and update it with given conditions?
I'd like to interpolate data to get more points % x,y - you data x1 = linspace(x(1),x(end),more_points); y1 = interp(x,y,x1);...

6 years ago | 0

Answered
How to create a loop that will plot multiple excel files into seperate graphs
Try this. Don't forget to change column range! myFolder = 'D:\Thesis\Reports\Encoding\Encoding Trial Reports\Free viewing Repor...

6 years ago | 0

Answered
Add multiple doses in ODEsolver
There is way - ode45 To run your code every 1 hour look HERE

6 years ago | 0

Answered
How can I generate a figure/plot with a curve that connects the point data from my for loop?
Use numerical solution for this kind of problems A = [S11bar S12bar S16bar; S12bar S22bar S26bar; S16bar S26bar S66bar]; y = A...

6 years ago | 1

| accepted

Answered
How to save imshowpair figure?
You can use saveas saveas(gcf,'test.jpg', 'jpg') % saveas(gcf,'test.fig', 'fig') % save as MATLAB figure I use export_...

6 years ago | 0

Answered
Looping through arrays with equation out
I have a few suggections Index is forgotten When i=1 what value be in c(i-1) Assign first value for temperature before for ...

6 years ago | 0

Load more