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

casi 8 años hace | 0

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 0

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 1

| aceptada

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

casi 8 años hace | 0

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

casi 8 años hace | 1

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

casi 8 años hace | 1

| aceptada

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

casi 8 años hace | 1

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 0

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 1

| aceptada

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

casi 8 años hace | 1

| aceptada

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

casi 8 años hace | 1

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 1

| aceptada

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

casi 8 años hace | 0

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

casi 8 años hace | 0

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

casi 8 años hace | 1

| aceptada

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

casi 8 años hace | 1

| aceptada

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 0

| aceptada

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

casi 8 años hace | 0

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

casi 8 años hace | 0

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

casi 8 años hace | 0

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

casi 8 años hace | 0

| aceptada

Cargar más