Beantwortet
How to evaluate integral with given constant ?
Hi, change the order of your commands syms x; h = 3; f = h*x; int(sym(f)) gives: ans = (3*x^2)/...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
Anyway to reduce the precision of solving symbolic equations?
Hi, the standard number of digits when using vpa (x) is 32. You can decrease this value by using: digits(d) a...

etwa 8 Jahre vor | 0

Beantwortet
I can't create symbolic variable in matlab
Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

etwa 8 Jahre vor | 2

| akzeptiert

Beantwortet
Symbolic Math Toolbox - Crash
Hi, there are some Problems since the Windows update regarding symbolic toolbox in 2017b & 2018a. See here: <https://de.ma...

etwa 8 Jahre vor | 1

Frage


Setup discrete values for decision variables in optimization problems
Hi, the design of assemblies sometimes raises the question of whether, e.g. a connection should be made with less large screw...

etwa 8 Jahre vor | 1 Antwort | 1

1

Antwort

Beantwortet
Mupad won't work after windows 10 april 2018 update
Hi, there are some Problems since this update. See here: <https://de.mathworks.com/support/bugreports/1755918> Meanwh...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
Help solving a system of differential equations
Hi, does this work for your purpose? x1=0.3; x3=0.9; y1=0.4; y3=0.8; A=10; p=10; syms X_1 X_...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
Help solving a system of differential equations
Hi, did i understand right: x1=0.3; x3=0.9; y1=0.4; y3=0.8; A=10; p=10; syms X1 X2; num =...

etwa 8 Jahre vor | 1

Beantwortet
Where to find the total execution time in matlab
Hi, the toc toc command measures the elapsed time between these both commands. Its your turn where to set them. tic ....

etwa 8 Jahre vor | 0

Beantwortet
error calling a function
Hi Susan, you should finish your switch case command with an end command. function f = Mu(t,y,ti,tf,n) m1 = 55; m...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
Please help!!!!First input must be a function handle
Hi try this: syms x; a = -5; b = 5; f = @(x)1/(1+x^2); n=57; h = (b-a)/(2*n); k = linspace(a,b,2*(n+1)...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
Optimization of objective function with multiple constraints and variables
Hi, using an anonymus function works here: P = 6000; E = 30e6; G = 12e6; L = 14; fun=@(x)(1+0.10471...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
How can i plot a graph with different y values for a particular x value?
Hi, x(1:3) = 0.2; y = [3 5 7]; plot(x,y, '*', 'color', 'r') gives you: <</matlabcentral/answers/uploaded_fi...

etwa 8 Jahre vor | 1

Beantwortet
Fit multiple curves in one graph using least squares
Hi, use this example for your purposes: % load some example data load census % create second sata set cdate...

etwa 8 Jahre vor | 0

Beantwortet
Fit multiple curves in one graph using least squares
Hi, use the fit function for this - see here: <https://de.mathworks.com/help/curvefit/fit.html?s_tid=doc_ta#bto2v...

etwa 8 Jahre vor | 0

Beantwortet
Selection function in genetic algorithm
Hi, the SelectionFcn ga uses, will be the binary tournament selection function. All other settings are being overrided when y...

etwa 8 Jahre vor | 0

Beantwortet
fmincon: nonliner constraint
Hi, i assume, negative values are not allowed. A share of -2 of the stock represented by variable 4 makes no sense. If tha...

etwa 8 Jahre vor | 1

Beantwortet
Problem with symbolic tool
Hi, the problem is known - see here <https://de.mathworks.com/matlabcentral/answers/399099-matlab-hang-on-busy-when-using-s...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
cost function in classification learner app
Hi, a cost function is not available as far as i know. For more than two classes you could use the function fitcecoc ...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
Problems with financial timetable
Hi, the numbers in your table are not numbers for matlab. '9350.00' is not the same like 9350.00 - the first...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
How to use loss() function in SVM trained model
Hi here you find an example with step by step how to for your problem: <https://de.mathworks.com/help/stats/compactclassif...

etwa 8 Jahre vor | 0

Beantwortet
How to Open Script from Directory in Matlab
Hi, when working in Matlab try this: run('C:\Your Directory\subfolder\scriptname.m') or run('\\11.222.333.44\S...

etwa 8 Jahre vor | 0

Beantwortet
How to solve this simple system of 2 equation in MATLAB
Hi, you could do so: % declare syms syms D L t; % Coefficient Matrix A = [cos(t) sin(t); sin(t) cos(t)]; ...

etwa 8 Jahre vor | 0

Beantwortet
Problem with fit function
Hi Angela, try this: x1=[178 1316 3236 5155 7075 8996 10916 12836 14756 16676 18568]' y1=[1.0000 1.1848 1.4038 1....

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
How to replace a "for loop" with vectorization?
Hi, You can find a good start to this topic in the link below. <https://de.mathworks.com/help/matlab/matlab_prog/vectoriza...

etwa 8 Jahre vor | 0

Frage


Improving the performance of vectorized code possible?
Hello, I rewrote a calculation script with nested loops in vectorized code, which greatly improved computation time. Now I ha...

etwa 8 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to replace a "for loop" with vectorization?
Hi, I finished ;-) You could change the code as follows: 1.) To replace the nested loop this is needed: [b, a] = ...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
How do I use Matlab to create multiple arrays from a single column in .xls based on a varying setpoint?
Hi, you should write the data into a cell array. This type is capable of having different lengths unlike an array. In the fol...

etwa 8 Jahre vor | 0

Beantwortet
matlab symbolic equations into symbolic matrices and numerically solving
Hi, attached you find a .pdf-file exported from a live script where you find the first steps you need to understand how to do...

etwa 8 Jahre vor | 0

Beantwortet
How to create a random walk in 1d array
Hi, try this: function ver = random_walk(number_of_tries, center) %% function gives a random walk in 1D % %...

etwa 8 Jahre vor | 0

Mehr laden