Answered
what optimisation function is appropriate to solve a set of linear objectives subject to inequality constriants.
Hi, This links should help: <https://de.mathworks.com/help/optim/ug/optimization-decision-table.html> <https://de.mathw...

8 years ago | 0

| accepted

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

8 years ago

Answered
Saving and loading a Multiclass SVM Model
Hi, save the workspace with the trained model in it. If you want to make predictions in later matlab sessions just load the c...

8 years ago | 0

| accepted

Answered
How to write/read a table to/from a CSV that has multiple values per column?
Hi, the first part is known from your question, just added a row to see if it works with more than one column: x = [...

8 years ago | 1

| accepted

Answered
Converting tabulated data to 3D plot
Hi, define a vector x x = [0 10 30 60 120 -10]; define a vector y y = 1000:1000:7000; and calculate/write you...

8 years ago | 1

| accepted

Answered
How to add nodes and display it as a graph??
Hi, one issue is, that you wrote: for i = 1:length(i) instead of: for i = 1:length(j) Since length(i) is e...

8 years ago | 0

Answered
How to write/read a table to/from a CSV that has multiple values per column?
Hi, after importing the data in the format you dont want, you could use the <https://de.mathworks.com/help/matlab/ref/mergeva...

8 years ago | 2

Answered
Problem with non linear fit model
Hi, check the size of: Z23= (Z2*Z3)/(Z2+Z3) Z234 = (Z23*Z4)/(Z23+Z4) maybe you should also use .* and ./ here ...

8 years ago | 0

Answered
Is their any toolbox in matlab for finite element analysis
Hi, have a look at this and the examples given: <https://de.mathworks.com/products/pde.html> There is also video ma...

8 years ago | 0

| accepted

Answered
Error in using cost matrix for classification model?
Hello, I suspect the following problem - but I can not test it without data ... You create a struct called "cost" that con...

8 years ago | 0

Answered
g1(h*ab) = 0.116|sin((h*ab-90)/2)|+0.085
Hi, there are at least 2 things to do in your code: * Get rid of the 2 * in beginning of line 18 and the * at the end of l...

8 years ago | 0

Answered
sample data within margin of SVM
Hi, For calculation of the accuracy you could calculate the error from your crossvalidated model using crossval comm...

8 years ago | 0

Answered
Divide table in days and then in hours.
Hi, if you use a <https://de.mathworks.com/help/matlab/timetables.html |timetable|> for storing your data the function that m...

8 years ago | 1

| accepted

Answered
How can I force a non linear lsq curve (fitnlm) fit through a start and end point??
Hi, you could use this instructions and adjust the given example to your Problem: <https://de.mathworks.com/matlabcentral/...

8 years ago | 0

Answered
reduceDifferentialOrder returns more equations than variables
Hi, you could try [newEqs,newVars] = reduceRedundancies(eqs,vars) see more Information on the documentations site of ...

8 years ago | 0

| accepted

Answered
NaN/Inf/Complex value warning using "fit"
Hi, if you do not specify any start points, this can happen, because the start Points are choosen by a heuristic normally. Yo...

8 years ago | 0

Answered
calculating accuracy and confusion matrix
Hi, to compute the confusion matrix use: confusionmat command. Some examples are given in the <https://de.mathworks.c...

8 years ago | 1

Answered
Crossover and mutation operator used in genetic algorithm (optimization toolbox)
Hi, see here <https://www.sciencedirect.com/science/article/abs/pii/S0096300309001830> read espacially the first part o...

8 years ago | 0

| accepted

Answered
Realistic behaviour of semi conductors: IGBT, MOSFET
Hi, Simscape Electronics would be the right choice for this purpose. See here for more Information: <https://de.mathworks....

8 years ago | 0

| accepted

Answered
Make predictions on new data using a SVM
Hi, use the predict command for this purpose. See the documentation for <https://de.mathworks.com/help/stats/compact...

8 years ago | 1

| accepted

Answered
I am creating a graph using graph function but it shows error. why so?
Hi, the code you sent works on my R2017a. There is no error - which Matlab version do you use? This function was introduced i...

8 years ago | 0

| accepted

Answered
Fit curve to nonstandard data
Hi, if you have the curve fitting toolbox, you could consider this for your purpose: <https://de.mathworks.com/help/curvef...

8 years ago | 0

Answered
How to create a matrix whose elements are function of their indices?
For such calculations on this scale you should try without the symbolic toolbox. If you look at the Wikipedia article for ell...

8 years ago | 0

Answered
Non-linear system solver
Hi, you could use x = lsqcurvefit(fun,x0,xdata,ydata,lb,ub) to solve this with the known bounds for b and d. When yo...

8 years ago | 0

| accepted

Answered
Accuracy and ROC of SVM
Hi, the better way to do this is to use the built in hyperparamter optimization using the option: 'HyperparameterOptimiz...

8 years ago | 0

Answered
How can I correct this error?
Hi, to show disp over tmp Change the plot command: plot(tmp, acc, 'b',tmp,disp,'r.') which will give you this result...

8 years ago | 0

| accepted

Answered
How do I make 1 matrix from this two matrices?
Hi, you cant make a matrix from this, because in one file there are strings in a language i dont know. Use a table instead: ...

8 years ago | 0

Answered
how can i fix this freezing problem when use syms?
Hi, there are some Problems since this update. See here: <https://de.mathworks.com/support/bugreports/1755918> Meanwhil...

8 years ago | 0

| accepted

Answered
Personal fit using lsq
Hi, try this: F = @(x,xdata)x(1).*(xdata.*(1.0./1.5e1)+2.41e2./2.5e2).^2+x(3).*(xdata.*(9.0./2.5e1)-xdata.^2.*(1.0./1.5e...

8 years ago | 1

Question


Display the input options for functions with multiple input arguments
Hi, I have a function that takes more than one input argument - see my example where there are 2 arguments: function z =...

8 years ago | 1 answer | 2

1

answer

Load more