回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

さらに読み込む