Beantwortet
I am trying to solve these coupled equations using ode45...I have attached both the function file and script file...
Hi, write your function in a way that it returns a column-vector like below. Then fix the error regarding your plot, which ap...

fast 8 Jahre vor | 0

Beantwortet
Solve for y when it cant figure it out in y=f(x) form. Need to solve in matlab function block in simulink
Hi, you can do so: syms x y % Starting Point fun = 0.364*(y-0.024)-sqrt(0.00060025-(0.009+y)^2) == 0.048*(x-0....

fast 8 Jahre vor | 1

Beantwortet
I want to know how this code is working.
Hi, lhe logical array inside the A(...) gives back all the values where the index represented by the logical array is true. T...

fast 8 Jahre vor | 1

| akzeptiert

Beantwortet
Solving for level curves of an elliptic paraboloid given by quadric surface equation
Hi, here is an approach - free for play with it and improvement... Just to let you start: % Define a function to play wi...

fast 8 Jahre vor | 2

| akzeptiert

Beantwortet
Problem when using "solve" command
Hi, in your code there is a closing parenthesis missing at the end of the equation - use this: syms V R gamma r Qi eq...

fast 8 Jahre vor | 0

Beantwortet
Can linprog run using decimals in the "f" and "Aeq" matrices?
Hi, there is no need to have integers. See <https://de.mathworks.com/help/optim/ug/linprog.html |linprog|> documentation for ...

fast 8 Jahre vor | 0

Beantwortet
Classification Learner App vs. Training and testing a model programmatically, Is there any hidden magical step in the classification learner app?
Hi, A possible way to do this is working with the app and then, when you got a good result, export the code to matlab. This a...

fast 8 Jahre vor | 3

Beantwortet
How to get coefficient values(such as %)of gaussian fit?
Hi, look this: <https://de.mathworks.com/matlabcentral/answers/404352-how-to-access-the-result-of-curve-fit-app-in-the-wor...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
What are the fitcecoc settings for a tie between classes?
Hi, You can do this through a cost matrix that penalizes unwanted misclassification. See the section in the documentation: ...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
How to encounter errors like 'Solver stopped prematurely' and 'Failure in initial objective function evaluation. FSOLVE cannot continue.'?
Hi, i can only give you about 1.5 answers of the 2 you asked: *Answer on sub-question 1.* In your function F (x) there ...

fast 8 Jahre vor | 0

Beantwortet
For a contour how to set the values of a matrix to zero for certain values of x-axis.
Hi, does this what you expect? z = rand(20,21); x = linspace(-10,10,20); y = linspace(0,20,21); z(x<0,:) = 0;...

fast 8 Jahre vor | 0

Beantwortet
Transferring MATLAB 2008a to new laptop
Hi, you can go to the license center at mathworks.com and visit the section of your own licenses. When you choose the tab _in...

fast 8 Jahre vor | 0

Beantwortet
How to create function handle from fit struct after using curve fitting toolbox?
Hi, Why do you need this? You can directly compute new values for your fitresult: y_new = fitresult(x_new) This retur...

fast 8 Jahre vor | 0

Beantwortet
Errors in objective function
Hi, in addition to the issues that Torsten noted in his comments, note the following errors: * you have X(i) instead of x(...

fast 8 Jahre vor | 1

Beantwortet
Need to solve the equation to find ABC Values
Hi, x and y do not have the same length - if i assume, that y = -2.2026 belongs to x=-0.5 and so on you can determine the val...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Zener Diode model for SimScape
Hi, Simscape Electronics has a zener diode (as subtype of diode) here: <https://de.mathworks.com/help/physmod/elec/ref/dio...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
Different results in MATLAB and Simulink
Hi, your two systems differ in the second number in the numerator of your transfer function by about a factor of 10: <</ma...

fast 8 Jahre vor | 0

| akzeptiert

Beantwortet
How to evaluate symbolic derivative?
Hi, you are treating the derivate like the function handle - but it is not a function handle. What you do is asking matlab...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
customised capacitor in simulink
Hi, i know that this is possible. I did not do it by myself until now, but this link could help to find a way to do what you ...

etwa 8 Jahre vor | 2

| akzeptiert

Beantwortet
Por que se congela mi pc al usar syms
hola, El idioma del foro es el inglés, lo que ayuda a obtener más respuestas. Prueba esto aquí: <https://de.mathworks.com/...

etwa 8 Jahre vor | 0

Beantwortet
How to split a matrix for different plots?
Hi, for your matrix A: >> A = [ 1 23 240;2 22 100;2 44 900;1 33 800] A = 1 23 240 2 2...

etwa 8 Jahre vor | 0

| akzeptiert

Beantwortet
Error Using Function Fplot
Hi, this should work - see comment for the issue: T=[-20:20:120] mu=[4 0.38 0.095 0.032 0.015 0.0078 0.0045 0.0032] ...

etwa 8 Jahre vor | 1

| akzeptiert

Gelöst


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

etwa 8 Jahre vor

Gelöst


Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

etwa 8 Jahre vor

Beantwortet
Is there any way to get results of curve fitting?
Hi, if you want to calculate the y-values for your 80 x values you can do so: x = [1 2 3 10 20 80] y = your_fitted_mo...

etwa 8 Jahre vor | 0

| akzeptiert

Gelöst


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

etwa 8 Jahre vor

Gelöst


Reverse a matrix
Its simple. You have to reverse a given matrix.

etwa 8 Jahre vor

Gelöst


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

etwa 8 Jahre vor

Gelöst


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

etwa 8 Jahre vor

Mehr laden