Community Profile

# Stephan

Last seen: Today Attivo dal 2017

Knowledge means knowing where it is written... Interested in: - Optimization - Mathematical Modelling - Improvement of my programming skills

All

#### Content Feed

Visto da

Risposto
Solving cubic equation with imaginary numbers
s1 = 133.9457 + 253.416i; s2 = 133.9457 - 253.416i; s3 = 1339.457; syms s x_exactly = solve(0.00017493*(s-s1)*(s-s2)*(s-s3...

circa 3 ore fa | 0

| accettato

Risposto
combing rows into one row
I assume you want to have all values in a row vector: YouWant = reshape(MeanTemp(2:end,2:end),1,[]);

circa 22 ore fa | 0

Risposto
How can I mark a region in matlab ?
x1 = 0:0.001:1; y1 = x1.^2; y2 = 1 - x1; xcut = fzero(@(x)x.^2 - 1+x, 0.5); x = [x1(x1<=xcut), x1(end)]; y = [x1(x1<=xcut)....

circa 22 ore fa | 0

| accettato

Risposto
Change plot scale y axis
u21=[224 224 224 223 218 218 217]; beta1=[0 0.19 0.26 0.38 0.76 0.83 0.9]; plot(beta1,u21,'-*'); xlabel('beta') ylabel('U[V]...

1 giorno fa | 1

Risposto
Taking derivative and putting it equal to 0 to find theta.
syms s h S(x) fun = S(x) == (6*s*h) - ((3*s*s*cot(x))/2) + ((3*s*s*sqrt(3)*csc(x))/2) sdot = diff(fun,x) == 0

1 giorno fa | 0

Risposto
How to get the R2 value of fit?
ft = fittype('b*x^2+c*x+a'); load enso [curve, gof]=fit(month,pressure,ft,'StartPoint',[1,3,5])

2 giorni fa | 0

| accettato

Risposto
why is my code not working?
v=[2;0;1;9;0;1;3;0;1]; m=max(v); n=mean(v); f=@(x) m-(1/2).*x; % Vectorized g=@(x) 2.*x.^2-n; % Vectorized figure ezpl...

18 giorni fa | 0

Risposto
how to merge two figures
Have a look at: yyaxis

7 mesi fa | 0

Risposto
Finding out the minimum value position of a matrix
a=[1 2 3 4 5 10;2 3 5 6 1 12;2 6 4 5 7 16;10 2 1 4 5 20;2 3 1 4 9 12] % Here for the example row = 5, col = 1...3 ii = 5; % wa...

11 mesi fa | 0

Risposto
Automatically fit a circle on an arc in image and to plot the circle in the image.
This example from the documentation appears to be suitable for your case.

oltre un anno fa | 0

Risposto
MaxFunctionEvaluations not working in optimset() for fsolve()
See the documentation:

oltre un anno fa | 1

| accettato

Risposto
Generation of a pair of random numbers satisfying a constraint
N = 10; r = sort(rand(N,2),2)

oltre un anno fa | 0

| accettato

Risposto
Dimensions of arrays being concatenated are not consistent.
clc; clear all; close all; %% Parametri %% Inercija; {kg.m2} Juc = 2.6e-2; Jlc = 1e-3; %% Kruto...

oltre un anno fa | 0

| accettato

Risposto
How can I vectorize the fun in Matlab with single code
Possible, but not recommended: https://de.mathworks.com/help/matlab/ref/vectorize.html

oltre un anno fa | 0

Risposto
functions within the script
a1=myfunction(5) a2=myfunction(7) function a=myfunction(r) a=10*r end

oltre un anno fa | 1

| accettato

Risposto
can i pleas be helped on the following code i dnt understand the outpu
A=[2 4 10 13;16 3 7 18;8 4 9 25;3 12 15 17] A(4:8) You need to understand linear indexing in Matlab: https://de.mathworks.com...

oltre un anno fa | 0

Risposto
How to solve simulatenous coupled non linear differential equation
https://de.mathworks.com/help/matlab/examples.html?category=ordinary-differential-equations

oltre un anno fa | 0

| accettato

Risposto
Failure in initial objective function evaluation when I'm solving a linear programming.
Use: function z= myobj01(x) z= -3*x(1)-4*x(2); end

oltre un anno fa | 0

| accettato

Risposto
Creation of a black and white image
image=zeros(512,512); image(206:305,206:305)=255; imshow(image)

oltre un anno fa | 0

| accettato

Risposto
From symbolic to numerical results for quadratic equation
You could use symbolic functions: syms y(a,b,x) y(a,b,x) = a*x^2 - b*x % Calculate values for a=1, b=2 and x in a range from...

oltre un anno fa | 0

| accettato

Risposto
Create an equally spaced vector when taking the sine of another vector
p_inv = linspace(-1,1,25); theta = asin(p_inv); p = sin(theta); diff(p) % Is p equally spaced? scatter(p,theta)

oltre un anno fa | 0

| accettato

Risposto
Comparing 2 frames from video
Try: function [P,MSE]=Untitled(original_img,stego_img) original_img=double(original_img); stego_img=double(stego_img); if ...

oltre un anno fa | 0

| accettato

Risposto
PV Array was introduced with R2015a - you can not find it in R2014b - see the link. Are you sure your friends version is 2014a? ...

oltre un anno fa | 0

Risposto
HOW TO SOLVE 2 EQUATION ODE USING ODE45 IN MATLAB?
f = @(t,y) [0.303*y(1)-0.557*y(1).^2+0.260*y(2).*y(1);... 0.0345*y(2)-1.18e-7*y(2).^2+3.55e-14*y(1).*y(2)]; Y0 = [0.0718,0...

oltre un anno fa | 0

Risposto
How to plot parametric curve
https://de.mathworks.com/help/matlab/ref/fplot.html#bu6xntl-12

oltre un anno fa | 0

Risposto
Get mean and stdev from all values
Use a table and then use findgroups combined with splitappy. This will allow you to solve the problem with a few lines of code. ...

oltre un anno fa | 0

Risposto
Vectors must be the same length.
Change line 1: t=linspace(0,1,256); fc=60; fm=15; ac=1; am=1; wc=2*pi*fc; wm=2*pi*fm; mt=am*cos(wm*t); m_ac=ac*cos(wc...

oltre un anno fa | 0

Risposto
hello everyone. How to divide a group of points named data into two parts, dataA and dataB, as shown in the figure. Thank you very much.
% divide data idx = clusterdata(data,2); dataA = data(idx==2,:); dataB = data(idx==1,:); % plot results scatter(dataA(:,1...

oltre un anno fa | 0

| accettato

Risposto
element wise operation column matrix
Temp_data= [20;27;29;33;40] Case_1 = Temp_data - Temp_data(1) Case_2 = diff(Temp_data)

oltre un anno fa | 0

Risposto
Return the number of rows of an array
A = [10 20 30 40 50 60 70 80 90 100] B = A(A<50)

oltre un anno fa | 0

| accettato