Question

it is not plotting

Hi, I try this; beta1 = 0.4*pi; alphabar = 1; dx=0.01; for i=1:101 xx(i) = (i-1)*dx end dt=0.00...

casi 5 años ago | 0 answers | 0

Question

Which method is used by diff ---Matlab differentiation

Hi, * I need to take a derivative for dp/dx* My p array is 1*101 element denoted : dt=0.0001; dx=0.01; for num...

casi 5 años ago | 1 answer | 0

Question

Taking derivative an array which is a numerical value with respect to another array

Hello, I need to take a derive of an array (1*101) (which is numerical not analytical) with respect to another array (1...

casi 5 años ago | 2 answers | 1

Question

Is there a clever way to extract piece of x axis of the plot from a script and put it to another plot in another script

Hi I want to compare two solution's plots. Each are calcuated separate scripts. Can I extract a piece of x axis of one so...

casi 5 años ago | 1 answer | 0

Question

why results from trapz cumtrapz and integral are so different

Hi, I need to integrate numerically 21 functions, some of them are int_0^x (...) % integrate from zero to x some...

casi 5 años ago | 0 answers | 0

Question

A and B must be floating-point scalars.

Hi, Simple que: I have used below and it gave me the error in the question title. xx=linspace(0,1,101); Ah4 = one...

casi 5 años ago | 1 answer | 1

Question

Error using title of plot

Hi, I want to use plot with title command. But when I try title of : title(['Plots of ... with beta1=',num2str(beta1)','...

casi 5 años ago | 2 answers | 0

Question

how to create 1*101 of some integer array?

Hi, Very basic que: I would like to have 1*101 of -4 array. I have to solve an integral numerically int_0^x -4 dx; ...

alrededor de 5 años ago | 2 answers | 0

Question

numerical integration __ integral limits being variables

Hello, I want to numerically integrate functions whose upper limits x, lower limits 0. Say; int_0^x f(x) dx Which metho...

alrededor de 5 años ago | 2 answers | 0

Question

Could fsolve cause trouble when using it to solve linear equations?

Hello, I have used fsolve optimisation algorithm to solve linear integral equations using integral command. But I know fsol...

alrededor de 5 años ago | 2 answers | 1

Question

solving integral equation system for 3 unknowns

Hi guys, I need to solve integral equations : The equations are kutta, lateral, angular. Unknons are h4, theta4, c13. I use...

alrededor de 5 años ago | 1 answer | 0

Question

Undefined function 'abs' for input arguments of type 'function_handle'

Hi guys! I am getting this error when I try : warning ('off','all'); beta1=0.2; alphabar=-0.1; theta4range=-1:0.1:...

alrededor de 5 años ago | 1 answer | 1

Question

shouldPlot and switch case and legend and multiple figure error

Two questions about shouldPlot and switchcase: 1) I cannot locate correctly legends I mean it does not show legends for fig...

alrededor de 5 años ago | 1 answer | 0

Question

How to stop the program and store the scalar variable and rerun the program and plot scalar against scalar

Hi, I want to plot scalar value (t) against scalar (alpha). But it does not plot. Simplified code is below: da = 0.1 ...

alrededor de 5 años ago | 1 answer | 0

Question

plotting with changing variable values with switch case command

My whole program run with a loop . It is not showing the plot when I try below: for nt =1:30001 ... switc...

alrededor de 5 años ago | 1 answer | 0

Question

solve multiple algebric integral equations

Hi I have three equations and three unknowns I need to solve these. Two of the equations are integral equations Could ...

alrededor de 5 años ago | 2 answers | 0

Question

ode15s array valued function and second order ode

Hi , I have second order ode f_xx = p(x) and Boundary conditions f(0), f(1) = 0 p(x) is an array valued function o...

más de 5 años ago | 0 answers | 0

Question

shooting method for two functions ODE

Dear Matlab users, I have to solve this problem f_xx = p(x) with shooting method. Boundary conditions are f...

más de 5 años ago | 0 answers | 0

Question

function uses another function and that is used by the first function like a cycle

Hi everyone, I have three functions which using each other in a while loop and for loop. like : # f uses p functio...

más de 5 años ago | 0 answers | 0

Question

Shooting method for ODE interpolation error

Hi, I am using shooting method to solve second order ODE. The related part of main code is attached: function [f] = const...

más de 5 años ago | 1 answer | 0

Question

MATLAB R2014b does NOT work when using Mac OS X 10.9.5

Hi This will be a general question but I am really getting tired of this not running problem.. Could you please help me w...

más de 5 años ago | 0 answers | 0

Answered

Is there any way how to integrate a double variable

Many thanks Titus I will definitely use.

Is there any way how to integrate a double variable

Many thanks Titus I will definitely use.

más de 5 años ago | 0

Question

Is there any way how to integrate a double variable

Hi, I have a script for calculating lots of variables with changing time and x_lateral position. I want to integrate one of...

más de 5 años ago | 2 answers | 0

Question

How to express a function both time and spatial dimension dependent?

Hi there, It seems an easy one but I guess it is not that easy. I have a fluid flowing through a vessel. I want to measure it...

alrededor de 6 años ago | 1 answer | 0

Question

Function uses another function in a script

Hi guys, Could someone highlight me? I am trying to write a script it uses more than one function. The second function uses t...

alrededor de 6 años ago | 1 answer | 0

Question

how to change a value inside many cell arrays

Hi I would like to change c1 value in velocity u1,u2 pressure p1,p2 and sumint1,2. I need to iterate Newton-Raphson in MAT...

alrededor de 6 años ago | 0 answers | 0