Respondida
Solving three simultaneous equations for analytical solution
Keep it short and simple + use "*" for multiplication operations: syms k2 k1 Rk1 R BR s h a l2 l1 t1 t2 bh d eq(1) = k2==(BR*(...

más de 6 años hace | 0

| aceptada

Respondida
How to convert a time serie with daily data to a time serie with weekly data by taking the average of every 7 values of the daily vector?
The usual way to do this is by using the retime function.

más de 6 años hace | 0

Respondida
Plotting Equation with straight line
<https://de.mathworks.com/help/matlab/ref/fplot.html |*fplot*|>

más de 6 años hace | 0

Respondida
bvp4c error
In your case bvp5c is suitable to solve your problem, without changing the timespan: solinit = bvpinit([0,1],[0,0]); sol = bvp...

más de 6 años hace | 0

Respondida
How can I make the wave in the negative part disappear?
More resolution for the values + logical indexing: t= linspace(0,6,5000); y=sin(pi*t); plot(t(y>=0),y(y>=0))

más de 6 años hace | 1

| aceptada

Respondida
How to convert cells within cells to double.
Due to the different lengths of all the entries you can not easily store them in a matrix, but as a column vector it will work e...

más de 6 años hace | 0

| aceptada

Respondida
How to solve Integer Linear program
Work through this examples: https://de.mathworks.com/help/optim/ug/intlinprog.html#bts3f9f-4

más de 6 años hace | 0

| aceptada

Respondida
Storing indices from a matrix
A= [ 1 2 3 -4 6 -2]' B = find(A<0) A = 1 2 3 -4 6 -2 B = 4 6

más de 6 años hace | 0

| aceptada

Respondida
how to do Shifting of text
A = "volatile uint8_T AtomcMduleCnt_Z_Pt = 7U;/* Atomic Module Count in Pack */" B = insertAfter(A,"uint8_T"," @") A = ...

más de 6 años hace | 0

Respondida
rational curve fitting function?
Have a read here: <https://de.mathworks.com/help/curvefit/fit.html#bto2vuv-11>

más de 6 años hace | 0

Respondida
Machine Learning example function not found- helperLoadData
Note that your link refers to R2019b. The example you are looking for in R2019a you find here: https://de.mathworks.com/help/re...

más de 6 años hace | 0

| aceptada

Respondida
Sort and accumulate data in a matrix
Here is an example: A = [-10 0 10 10 20 -20 30 -30 40 -50 50 -40 -10 0 0 10 20 -20 30 -30 40 -50 50 -40 40 40 40]; groups = fi...

más de 6 años hace | 0

Respondida
How to save the 60 value in two columns as a csv file?
Use writematrix for this beginning from R2019a. For earlier releases you can use csvwrite. If x and y are of size 60x1 why not ...

más de 6 años hace | 0

Respondida
How can I solve a nonlinear model using Newton Raphson ?
One way: result = fsolve(@fun,[1 1 1]) function F = fun(x) F(1) = x(1) + x(2).^2 + cos(x(3)) - 2; F(2) = x(1) + sin(x(2)) ...

más de 6 años hace | 2

| aceptada

Respondida
How display a log space bar figure ?
% Set y-axis to log scale set(gca, 'YScale', 'log')

más de 6 años hace | 0

| aceptada

Respondida
can anyone tell whre is the error ?
x=-2*pi:0.01:2*pi; y=exp(x); z=sqrt(exp(-x)); figure(3) p=plot(x,y,'r',x,z,'b'); p(1).LineWidth = 2; p(2).LineWidth = 1;...

más de 6 años hace | 1

| aceptada

Respondida
How to replace the empty cells in a cell array by a 4-bits string?
load('Key.mat'); Key1 = Key(:); Key1 = reshape(replace(string(char(Key1{:}))," ","0000"),size(Key,1),size(Key,2)); results...

más de 6 años hace | 0

Respondida
How to generate a symmetric Toeplitz matrix?
>> toeplitz([-pi 0 pi]) ans = -3.1416 0 3.1416 0 -3.1416 0 3.1416 0 -3.14...

más de 6 años hace | 4

| aceptada

Respondida
"syms", "sym", and "mupad" functions cause MATLAB to freeze
R2017b had this bug, but it was fixed in update 7 and following. Try to install the latest update for your release - see Step 2:...

más de 6 años hace | 0

Respondida
How to use VPA (variable precision arithmetic) in calculating HH band via dwt on an image?
You can not do this. dwt2 accepts only double as input and outputs double. vpa works on symbolic variables and returns a symboli...

más de 6 años hace | 0

| aceptada

Respondida
String to Categorical array
x = [zeros(1,120), ones(1,240)]; res = categorical(x, [0, 1], {'Z', 'O'});

más de 6 años hace | 0

| aceptada

Respondida
Reducing 2nd order ODE into coupled ODE. Solve using Euler Method and graph.
tspan = [0 5]; % time span to integrate y0 = [3 0]; % initial conditions %Start of Euler Method syms y(t) E = diff(y,2) + ...

más de 6 años hace | 0

Respondida
How to convert cell array to double?
c = {[1 2],[2 3]} s = cell2mat(c) s = unique(s)

más de 6 años hace | 0

| aceptada

Respondida
hi,i am getting error as not enough input arguments,while i run the below code....?? please let me know that?(the error is in second line of code)
Works fine for me, if called with *_2_* input arguments: res = trio(3,4) function x=trio(m,n) x=rand([3*m n]); ...

más de 6 años hace | 0

Respondida
How to solve coupled (differential) equations of motion using matlab?
Whta is the problem? There is an analytical solution (here assumed that vx0 and vz0 are equal to 1): syms w b g m x(t) y(t) z(t...

más de 6 años hace | 0

| aceptada

Respondida
Undefined operator '/' for input arguments of type 'function_handle'
b=400; %mm d=500; %mm Asv = [3000 5000 3000 5000]; %mm^2 fckv = [30 30 90 90]; %Mpa num_fckv = numel(fckv); fsolve_opt...

más de 6 años hace | 0

| aceptada

Respondida
Can't plot function
x = linspace(0,10); y = sqrt(1+x.^2)./sqrt(x.^4-x.^2+1); plot(x,y)

más de 6 años hace | 1

| aceptada

Respondida
Fit Powerlaw to Data
https://de.mathworks.com/help/curvefit/custom-nonlinear-models.html

más de 6 años hace | 0

Respondida
Numerical Solution for a System of Three ODEs with Different Constant for Each Time Element
Use interp1 for this. Here is an example: https://de.mathworks.com/matlabcentral/answers/487412-using-ode45-to-solve-differenti...

más de 6 años hace | 0

| aceptada

Respondida
Text file manipulation, find specific lines, find there a string and replace the specific line with new content
There is a bunch of possibilities to manipulate strings: https://de.mathworks.com/help/matlab/ref/extractafter.html https://de...

más de 6 años hace | 0

| aceptada

Cargar más