Question

How to plot negative values while using loglog plots?

I'm using the following code. a = [ 1 2 3 4 -1 -1 -3 -4 5 6 ] b = [ 1 2 3 4 5 6 7 8 9 10 ] loglog(b,a,'-o') Warning: Negativ...

2 days ago | 1 answer | 0

Question

How to integrate this function using ode23?

The given function is as follows: I've written the following code: clc clear all tspan = [0 10]; y0 = 0; %[t,y] = ode2...

1 year ago | 1 answer | 0

Question

plotting an array skipping some columns

I have a matrix T(x,t) = T(position, time), The final matrix comes as 101x1000 , I don't want to plot for all 1000 columns, I wa...

1 year ago | 1 answer | 0

Question

I want to plot a function for different values of time

This is a function in 2 variable (x,t) f = (699729515992263*exp(-(3555899736243218994140625*t)/9007199254740992)*cos(20000000*p...

1 year ago | 2 answers | 0

Question

Animating lines and curves in matlab

I am simulating a solidification problem, where I am developing microstructres with time! I wanted to know whether anything li...

1 year ago | 1 answer | 0

Question

Not able to get plot

x = linspace(0, 0.3,0.01); y = ((384*0.5*((0.15).^(3/2)))./ (x.^(3/2))).^(1/2); %cr figure plot(x, y)

2 years ago | 1 answer | 0

Question

Want to combine two plots

I want to plot y1 = 100.0 - 90.0*exp(-0.0465*t); and y2 = 203.6 - 11.3*t; together on the same plot and then plot ( y = y1 +...

2 years ago | 1 answer | 0

Question

Not able to use plot function

Not able to get anything on plot t = linspace(0,20); y10 = -(1.0*(0.013586877477623817727984981165799*exp(- 0.1115247764...

2 years ago | 2 answers | 0

Question

Not able to solve an ode using dsolve

Not able to get any result out of this code. May anyone help, thanks syms y(t) ode = diff(y,t) == -0.127.*(-3.*(log...

2 years ago | 1 answer | 0

Question

how to coupled non-linear ode's

I am trying to solve a system of reactions involving steel-slag interaction, but I'm stuck at this system of ode's. May anyone t...

2 years ago | 0 answers | 0

Question

Multi-variable optimization problem

I want to perform a multivariable optimisation. where I want to minimise both the objective functions together for the same valu...

2 years ago | 0 answers | 0

Question

Partial diffrentiation not working

This is the following code has an error as : " Error using sym/diff (line 69) The second argument must be a variable o...

2 years ago | 1 answer | 0

Question

How to express this result in decimals ?

This is tha problem; phi_dash= (4610380494485263574757718612977234468314401*lm)/7922816251426433759354395033600000000 + ...

2 years ago | 1 answer | 0

Question

Need help with contour plot .

I am not able to follow the instructions on my computer system, can you please help with the *contour plot* of this matrix *(num...

2 years ago | 0 answers | 0

Question

How to plot a polar plot from a matrix or excel file ?

I have a matrix A which contains values at different angles & radius. The index of this matrix represents ( angles,radius ) as ...

2 years ago | 2 answers | 0

Answered

Not able to solve this expression

I have solved the problem now , The r term was not within the bounds. It should be less than r0 ( 0.03 cm ) . thus r = 0.03*(j-1...

Not able to solve this expression

I have solved the problem now , The r term was not within the bounds. It should be less than r0 ( 0.03 cm ) . thus r = 0.03*(j-1...

2 years ago | 0

| accepted

Question

Not able to solve this expression

<</matlabcentral/answers/uploaded_files/135828/IMG_5612.JPG>> I am not able to code this expression , I have tried but it's n...

2 years ago | 1 answer | 0

Question

The sizes of the second and third arguments are inconsistent. using syms

The error is showing up in line #39 i.e { J1=subs(J,var,var1); } . Error shows up as : Error using sym/subs>normalize (line ...

2 years ago | 0 answers | 0

Question

I want to plot a 2D matrix with a color contrast.

I've got a spreadsheet ( 2-D matrix ) which has got temperature readings of various points on a 2-D plane. How can I plot a colo...

3 years ago | 1 answer | 0

Question

2D matrix plane from a 3D matrix.

I want to get a plane from a 3D matrix as a 2D matrix. i have tried using these commands but it doesn't works. P = A ( 10, :,...

3 years ago | 1 answer | 0

Question

Matrix indexing and plotting related doubt.

I am having a 3D matrix with 20 rows (x direction) , 50 cols (y direction) and 187 points ( z direction ,3rd dimension ). I want...

3 years ago | 1 answer | 0

Question

3D plot of a matrix

I have constructed a 2D matrix A for Temperature as a function of position ( 1 dimensional ) & time, I want to plot a surface fo...

3 years ago | 3 answers | 0

Question

Implicit Equation solution inside a for loop

I want to solve the two expressions which are inside the for loop for o and p; and add their differenced sum of each iteration...

3 years ago | 0 answers | 0

Question

Implicit function inside a loop.

I want to plot a curve between err and b for different values of b. * I have kept the values of i to be a constant for the ...

3 years ago | 1 answer | 0

Question

Can I insert an iterating value in legends of a plot ?

The code is as follows ; I want to use the iterating b value in the legends . like b=5, b=8 , b=11 etc. if true % code...

3 years ago | 1 answer | 0

Question

How to plot implicit function in an iteration ?

for b= 5:1:40 f = @(o,i) sind(b+i) + sind(b+o)-( 1140/0.04 + sqrt ((1140/0.04 -2*sind(b)).^2 - (cosd(b- o)- cos(b +i)).^2))...

3 years ago | 1 answer | 0

Question

How to plot (x,y) subjected to any function.

How to plot (x,y) subjected to the equation cot(y) - cot(x) = 1.

3 years ago | 1 answer | 0

Question

How to continuously import data of a sensor from Arduino on MATLAB ?

I am using an accelerometer sensor and it's is showing the results when I am connecting it to my computer with an usb cable. But...

3 years ago | 1 answer | 0

Question

How to crop my curve in the curve fitting tool ?

How want to crop my curve in the curve fitting tool , in order to fit a proper curve for the cropped out part. e.g . I want ...

3 years ago | 1 answer | 0

Question

Curve fitting tool is saying '' Cannot fit Power functions to data where X has nonpositive values"

I have changed the axes limits of my data to non values of x axes greater than zero; still it's responding with the same message...

3 years ago | 0 answers | 1