Answered
How to convert a csv into .mat file ? Considering my csv file has one array with non numerical values ?
Hi, <https://de.mathworks.com/help/matlab/ref/dlmread.html *|dlmread|*> will read ASCII-delimited file of *numeric data* into...

7 years ago | 0

Answered
What controls of this error 'Inner matrix dimensions must agree'?
When using * in Matlab with non-scalars, matlab follows the calculation rules of linear algebra: >> A = randi(10,3,2) ...

7 years ago | 0

| accepted

Answered
how to import simscape hydraulic block in matlab R2018a? Anyone can help
Hi, open the library browser: <</matlabcentral/answers/uploaded_files/132243/library_browser.PNG>> . then you find h...

7 years ago | 0

Answered
Can anbody solve this simple equation?
Hi, to obtain values from your function use this: fun_rg = @(R_g0,sigma_1,sigma_2,x)exp((x.^2.*(R_g0.^2-1.0).^2.*(1.0./2...

7 years ago | 0

| accepted

Answered
Nested if in a for loop won't work
Hi, read how matlab works, in the answer above and the given links. Try this: L=500; a=300; P=150; EI=400; n...

7 years ago | 1

| accepted

Answered
Why do I recive the error "Attempt to execute SCRIPT hist as a function: /Users/TrulsKnarvik/Documents/BI/Master/4. år/1. semester/Econometrics/MATLAB/hist.m Error in tabulate (line 52) [counts values] = hist(y,(1:maxlevels));"
Hi, rename your script. <https://de.mathworks.com/help/matlab/ref/hist.html *|hist|*> is a matlab function and it causes the ...

7 years ago | 0

Answered
Using ODE45 on inverted pendulum without external torque
Hi, use: [T,X] = ode45(@invpen,[0,20],[30,0]); plot(T,X(:,1),'-',T,X(:,2),'.') function dx = invpen(~,x) dx...

7 years ago | 1

Answered
Open Simulink model using Matlab engine for python
Hi, make and save a .m-file in your matlab folder containing the following line: open_system('name of your file') t...

7 years ago | 1

| accepted

Answered
Does MatLab 2018b come with the Image Processing Toolbox? If not, how can I download it and the Computer Vision System Toolbox?
Hi, the <https://de.mathworks.com/products/image.html Image Processing Toolbox> and the <https://de.mathworks.com/products/co...

7 years ago | 1

Answered
solving equation from vpasolve or anyway of solving
Hi, you can specify the interval for h which is used for the solution: syms h P0=4.181323907591596e+03; d1=1...

7 years ago | 0

| accepted

Answered
Syntax for numerically integrating an anonymous function on one of its variables
Hi, try: M_e = @(x) (2 * pi * h * c^2) ./ (x.^5 .* (exp((h * c)./(x * k * T)) - 1)); M_e_int = integral(M_e,lambda1,l...

7 years ago | 0

| accepted

Answered
Convert a digital filter to transfer function
Hi, <https://de.mathworks.com/help/control/ref/tf.html *|tf|*> has only one output - use: % Coefficients of fir filter ...

7 years ago | 0

| accepted

Answered
Build a variale discrete transfer function
Hi, have a look to the <https://de.mathworks.com/help/control/ref/realp.html *|realp|*> function. It allows to build generali...

7 years ago | 0

Answered
fitting a linear model without an intercept term
Hi, you can do this with <https://de.mathworks.com/help/stats/fitlm.html?s_tid=doc_ta#bt0ck7o_sep_shared-Intercept *|fitlm|*>...

7 years ago | 0

| accepted

Answered
I have two equations with two variables each is a function of another, so I'm using ''fsolve'' for solving two nonlinear equations. but if I have an equation with a specific constant which I want to give it a range (e.g. 1:50)
Hi, i guess you are searching for this (rename the outer function or save it as _*some_stuff_with_n.m*_ in your matlab search...

7 years ago | 1

| accepted

Answered
Can I store and call functions from within a struct?
Hi, you can store function handles in a struct and use them like this: fun1 = @(x,y) x + y fun2 = @(x,y) x - y ana...

7 years ago | 1

| accepted

Answered
Code only works sometimes when run
Hi, in addition to the valueable comments: What you do is make a Matrix A with the dimensions: 4 x 4 x 3 which means it ha...

7 years ago | 1

Answered
What is the meaning of "Index in position 1 exceeds array bounds (must not exceed 5)".
Hi, after you do: [eqns, vars] = reduceDifferentialOrder(eqns, vars); |eqns| and |vars| have a size of |10x1 sym| bot...

7 years ago | 0

| accepted

Answered
Undefined function or variable 'biograph'. MATLAB 2015
Hi, <https://de.mathworks.com/help/releases/R2015b/bioinfo/ref/biograph.html *|biograph|*> is a function from the <https://de...

7 years ago | 1

| accepted

Answered
creating a function for cost optimization problem
Hi, i recommend you to start with paper and pen and first create a mathematical model. To optimize, you need an objective fun...

7 years ago | 0

Answered
syntax martix matlab answer
Hi Melissa, sounds like homework. You find the answer here: <https://de.mathworks.com/help/matlab/learn_matlab/array-index...

7 years ago | 0

Answered
Make an array from function input and output
Hi, use: angle_range = 10:1:13 for k = 1:length(angle_range) v = 4; a(k,2) = DTask1_f (v, an...

7 years ago | 1

| accepted

Answered
str2sym and sprint command is not working , was working before but not now.
Hi, please have a look at the documentation site of <https://de.mathworks.com/help/symbolic/str2sym.html *|str2sym|*> - it wa...

7 years ago | 1

| accepted

Answered
IMPLICATION OF MATLAB AND SIMULINK
Hi, i dont know a book regarding this topic - but do you know the <https://de.mathworks.com/academia/student-competitions/rac...

7 years ago | 0

| accepted

Answered
Can someone help with this?
If you use a syntax like this for <https://de.mathworks.com/help/matlab/ref/ginput.html *|ginput|*>: [x,y] = ginput(n) a...

7 years ago | 0

| accepted

Answered
copy some cells from 1x10 array to another array
Hi, the *content of all odd indices* you get by using this: x1 = x(1:2:end) Thats what your example says. If you want...

7 years ago | 0

| accepted

Answered
How to convert a .csv file to a .mat file?
Hi, you can simply download the script which imports this data to matlab from the same site: <http://benchmark.ini.rub.de/...

7 years ago | 0

Answered
Finding inflection point of real time data
Hi, depending on how fast your data changes you could use something like <https://de.mathworks.com/help/matlab/ref/gradient.h...

7 years ago | 0

Answered
I can't see differential equation's result in the Live Editor.
Hi, try to update your matlab version. Use ver and find out your update status. It should be update 5. There are kno...

7 years ago | 0

Answered
Finding fitting parameters from fitted curve?
Hi, yes they are stored in pb1 - see also here: <https://de.mathworks.com/help/optim/ug/lsqcurvefit.html?s_tid=doc_ta#buuh...

7 years ago | 0

| accepted

Load more