Community Profile

Opariuc Andrei

Last seen: 4 months ago Active since 2020

Content Feed

View by

Question

Curve fitting from the tools menu
First things first sorry for not translating my comments in the code (but if need be i will do so ) . Everything is functional...

4 months ago | 0 answers | 0

0

Question

Warning: Imaginary parts of complex X and/or Y arguments ignored.
Error when attempting to plot ,the first imaginary result comes from Q3 afterwards everything that involves Q3 results as imagin...

7 months ago | 1 answer | 0

1

Question

How to plot a curve between 2 data sets
%% input data P1=[2.3;3.9;3.5;4.8;5.5;6.3;7.4]; P2=[4.8;5.7;6.5;7.8;9.2;10.5;11.8]; D=[78;65;57;52;46;32;27]; %% Dp=P2-P1;...

8 months ago | 2 answers | 0

2

Question

how to get matlab to disply zero as the last value
% all functioning and all, i'm supposed to get 19 values for x,y,PmJ,KpJ but matlab is diaplaying only 18 values , % the 19 th ...

1 year ago | 1 answer | 0

1

Question

how to sum a result with multiple values
a=[170;115;110;70;80;100;140;65;80;99;48]; b=[40;20;27;20;18;20;30;14;13;22;17]; k=a./(a-b) k results in 11 values as inten...

1 year ago | 1 answer | 0

1

Question

error with sprintf add operation between 2 terms resulting in string
I used sprintf Mt1a to receive a value which someone not experienced with matlab would understand the value ,there appears to b...

1 year ago | 2 answers | 0

2

Question

sprintf conflict in operations
receiving 5 values for Mt2b while using sprintf for Pmax (i used to to get an exact value without variables) .if i remove sprin...

1 year ago | 1 answer | 0

1

Question

simple math with wrong results results
so i'm trying to reproduce some homework nothing too complicated ,simple stuff , when applying the formula for E i'm receiving 1...

1 year ago | 1 answer | 0

1

Question

plot not displaying figure
how can i plot func between the interval below , i don't have an image of the function anymore but the exact way the function wa...

1 year ago | 1 answer | 0

1

Question

line and column of the minimun element of a matrix
how do i find the position (line and column of the minimun element of a matrix) i have a matrix m= [5 1 -400; -6 100 -6; 2...

1 year ago | 1 answer | 0

1

Question

how can i determine angle between 2 variables
how can i do/calculate the angle like in the ss below ,i know rBx,rBy and g g=180/pi; teta1=300;teta2=320;teta3=40;teta4=10...

1 year ago | 1 answer | 0

1

Question

compacting a large number of plot lines
func0=@(x) 5/3*cosd(0)-5/2*cosd(x)+11/6-cosd(40-x); [phi0 valf]=fzero(func0,0); func20=@(x) 5/3*cosd(20)-5/2*cosd(x)+11/6-co...

1 year ago | 1 answer | 0

1

Question

dividing integrals using vpaintegral and syms
i'm supposed to do this and i wrote syms x r G=vpaintegral(x*r,0,1)/vpaintegral(r,0,1) % supposed to be approximately =0....

1 year ago | 1 answer | 0

1

Question

Integrating without using the symbolic toolbox
syms x f=log(45.*sin(x.^2) + cos(x)); % initial function g=sqrt(1+diff(f).^2); % requirement step 1 h=int(g,0,pi/2) ;% requi...

1 year ago | 1 answer | 0

1

Question

matlab commands/functions yearly
is there a way i can see which commands/functions come out each year ? for example i'm interested in commands that came out this...

1 year ago | 1 answer | 0

1

Question

ode45 too many input arguments
so i got a function which i did as home work a few days ago tested it ,it ran ,now it doesn't want to run anymore i don't know ...

1 year ago | 2 answers | 0

2

Question

Failure in initial objective function evaluation. LSQNONLIN cannot continue
so i'm supposed to do nonlinear regression to find the values of a,b and the equation y given the value of x small x=2.6 .i tri...

1 year ago | 1 answer | 0

1

Question

determine the values of 2 unknowns through nonlinear regression and predict value of equation
I have to determine the value of 2 unknowns a and b through nonlinear regression and predict the value of the equation y for x=2...

1 year ago | 1 answer | 0

1

Question

radius and height of a cylinder with given volume and cost per m^2
i've got a warehouse composed from a cylinder and a roof with the shape of 1/2 sphere and a total volume (i think , it wasn't s...

1 year ago | 1 answer | 0

1

Question

tried bisection method opinions ?
So i wrote a homework using the bisection method ,code functions, some opinions on if it's correct ? if not what should be impro...

1 year ago | 0 answers | 0

0

Question

what is wrong with the following code
i'm trying to do the jacobi method for some linear equations and i'm receiving NaN as a result %% Input data n=input('number ...

1 year ago | 0 answers | 0

0

Question

how to modify displayed result
so i've got my code all functioning and all,how can i get matlab do display/calculate the divisions from sol (solution)? if poss...

1 year ago | 1 answer | 0

1

Question

What is wrong with the code ?
i've got the base equations on the first 3 rows and the gauss-seidel on the last 3 rows , i tried writing a code that's like t...

1 year ago | 1 answer | 0

1

Question

Gauss-Seidel for solving linear equations
Apply 4 iterations, by the Gauss-Seidel iterative method, to solve the system of linear equations,Check the solutions by matri...

1 year ago | 0 answers | 0

0

Question

modifying/rounding/aproximating a number
i need a way to modify a number a=2.65987 into 2.6598 i tried round /fprintf , but both display as 2.6599 ,i need it badly ,i co...

1 year ago | 1 answer | 0

1

Question

b=fprintf how to
a=2.65987 ,after using the fprintf('%0.5g\n',a) i get the value i want being 2.6599 i tried doing b=fprintf('%0.5g\n',a) (...

1 year ago | 1 answer | 0

1

Question

how can i aproximate /modify long numbers
a=2.65987 b=abs(2.6599-2.65987) which equals 3.0000-e05 ,after using fprintf('%0.7f\n',Eabs) i got 0.0000300 how can i get from...

1 year ago | 1 answer | 0

1

Question

format short, format long, format short E, format long E, format rat
How can i represent a number let's say 1231312.1232323 with the formats long/short/long e /short e /rat more elegant or in a si...

1 year ago | 1 answer | 0