Community Profile

# darova

##### Last seen: en dag ago
1 153 total contributions since 2019

View details...

Contributions in
View by

Finding coefficients (coordinates of center, rotation, etc.) from shape equation and data set? fitting custom equation

2 dagar ago | 0

Why does solve function return an empty value in a for cycle?
You have cubic equation It means that you have 3 roots try T_gp_out(i)=double(sol(1)); % choose first root

4 dagar ago | 0

| accepted

ODE error message "Error using exist The first input to exist must be a string scalar or character vector"
Try this way: prepare function handle for ode45 solver fin = @(t,no) k1*o*n2-k_1*no*((k1*o*n2+k_2*no*o+k_3*no*h)/(k_1*no+k2*o2+...

4 dagar ago | 0

Problem longitude and latitude contour in a surface plot
Sure, use meshgrid [m,n] = size(bat_latitude); xx = linspace(1,n,40); yy = linspace(1,m,144); [x1,y1] = meshgrid(xx,yy); [x...

4 dagar ago | 0

Can you help me ? Indexing error
THe problem

4 dagar ago | 0

Regarding improving efficiency of the code using fzero and int (integral) function in for loop
I tried to plot your function c1 = .9; c2 = 0.7; c3 = 0.6; x = -1:0.1:1; f = @(x) c1 - exp(c2*x).*(1-c3*x); plot(x,f(x))...

4 dagar ago | 0

Error using vertcat. Dimensions of arrays being concatenated are not consistent.
Make sure that all your spaces correct Here is example [1 -1; 1 2] % ok [1 - 1; 1 2] % error

4 dagar ago | 0

| accepted

"Scattered Interpolant" produces invalid values
Here are some of your data scatter3(ALT,MACH,TH,20,TET,'fill') I used slice to see how the interpoalted data looks [x,y,z] ...

5 dagar ago | 0

Symbolic differential equation problem
The problem is in z_c variable z_c = z - z*exp(-t/r) z(t) should be instead of z try to change this line z_c = subs(z_c,[r ...

5 dagar ago | 0

| accepted

who can i plot streamlines on a disk
i don't know why !!! if i take [X,Y]=meshgrid(-6:0.005:6); instead of the circular meshgrid i didn't get any error. Probably be...

5 dagar ago | 0

| accepted

How do I Interlace / Interleave 3 or more Matrices in MATLAB ?
See if this works ar = cellfun(@(x)size(x,2),data); % number of columns in each matrix mm = size(data{1},1); ...

5 dagar ago | 0

| accepted

Change tetrahedral mesh to hexahedral
Here is the way Result

5 dagar ago | 0

| accepted

Solving system of equations
Here is a simple example. I hope it's clear enough. TR, TL, TD - boundary conditions (right, left and down boundaries)

5 dagar ago | 0

Share data between two functions
What abuo this? function [hyspar1,status] = myOutputFcn(t,sol,flag,hyspar) switch flag case 'init' ...

6 dagar ago | 0

x Centroid of area between function and x-axis
Try this f = @(x) x.^2; f1 = @(x) x.*f(x); A = integral(f,a,b); B = integral(f1,a,b); c = B/A;

6 dagar ago | 1

fill legend rectangles with color
Try this example surf(peaks,'facecolor','none') % plot peaks surface(membrane,'facecolor','none') % plot membrane ...

6 dagar ago | 1

| accepted

Calculating Monthly average from daily data
Try this k = 1; month(end+1,:) = month(end,:)*nan; s = 0; for i = 1:length(month)-1 s = s + value(i); if month(i) ...

6 dagar ago | 0

| accepted

fast delete of rows in a table
Write indices and delete outside the for loop ind = logical(db*0); for i=1:(size(db,1)-1) if db.INTERVENTION(i)==1 && is...

6 dagar ago | 0

Euler’s method
I have some suggestions

6 dagar ago | 0

| accepted

about system 2nd order DE solver using matlab
Everything looks great except of these lines Why did you divide that lines by 10?

7 dagar ago | 0

system of differential equations
Here is the problem: there is second derivative of , but there is no expression for Looks like 4 variables, but only 3 equat...

7 dagar ago | 0

ODE45 Question Not Enough Input Argument
The problem is in this line [t, z] = ode45 (@(t, z) rhs_trajectory(z, g),... [0 tf], z0, opts); Your rhs_traj...

7 dagar ago | 0

Visualising 3D Cubes with a colour map
Here is the idea: create cylinder but only for theta = 0:90:360 make modifications Change X,Y data ...

7 dagar ago | 1

| accepted

How to perform an animation of a 5bar parallel link (this is a 2D plot of a 5 bar link) in matlab?
I have similar code (attached) some explanations: Ask if something is needed

8 dagar ago | 0

Brayton-Wnet. For loop plotting
See this solution

8 dagar ago | 0

Plotting output of the ode solver for different initial conditions
Here is the solution

8 dagar ago | 1

| accepted

In labelled binary image, fill the blobs with different colors defined by me.
use bwselect to select specific blob. Assign pixels value: red - 1, green - 2, blue - 3 create your own colormap and use it to ...

8 dagar ago | 0

| accepted

Confusion with interp3 and interpn
here is an example [x,y] = meshgrid(1:5); z = x.^2 + y.^2/2; [x1,y1] = meshgrid(1:0.5:5); z1 = interp2(x,y,z,x1,y1); % ...

8 dagar ago | 0

can it be possible to use odeVectorField
Try this clc,clear syms f(x) g(x) h(x) x Y Pr=10; Le=10; Nt=.1; Nb=.1; [V,y1] = odeToVectorField( diff(f,3) - diff(...

9 dagar ago | 0