Answered
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)/...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 2

| accepted

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

8 years ago | 1

Question


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...

8 years ago | 1 answer | 1

1

answer

Answered
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...

8 years ago | 0

| accepted

Answered
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_...

8 years ago | 1

| accepted

Answered
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 =...

8 years ago | 1

Answered
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 ....

8 years ago | 0

Answered
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...

8 years ago | 0

| accepted

Answered
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)...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 1

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 1

Answered
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...

8 years ago | 0

| accepted

Answered
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 ...

8 years ago | 0

| accepted

Answered
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...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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)]; ...

8 years ago | 0

Answered
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....

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

Question


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...

8 years ago | 1 answer | 0

1

answer

Answered
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] = ...

8 years ago | 1

| accepted

Answered
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...

8 years ago | 0

Answered
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...

8 years ago | 0

Answered
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 % %...

8 years ago | 0

Load more