Answered
Create a matrix of HEX number from a file of HEX number separated by a space
S = readlines('test.txt'); S(strlength(S) == 0) = []; %end of file usually comes through as empty line SS = regexp(S, '\s...

3 years ago | 1

| accepted

Answered
Why am i getting the error 'The first input to exist must be a string scalar or character vector' while solving 4 ode using ode45 solver ??
Here with mechanically generated numeric functions based on your symbolic code. If this does not work then either your symbolic...

3 years ago | 0

Answered
How can i get Roadrunner license?
You cannot do that in any nice way. The Student license is not eligible to license Roadrunner. As you are not academic st...

3 years ago | 0

Answered
Undefined function 'close' for input arguments of type 'char' when running app.
As an experiment it might be interesting to add something similar to function varargout = close(varargin) if ischar(va...

3 years ago | 0

Answered
Why do i receive error in line 36:Index in position 1 is invalid. Array indices must be positive integers or logical values.
for i = 1:N i starts at 1. % Check if particle's next position is occupied Inside the for loop, i has not been re...

3 years ago | 0

Answered
i am trying to plot bubble radius and step time for rayleigh plesset equation using euler method( ode45 for code) , but i am not getting the results as required.
In the below, notice that the first y value is about 6e-10 by iteration #426 -- but you are dividing by y(1) and y(1)^2 in your ...

3 years ago | 0

Answered
solve doenst fint an explicit solution to a simple inequality
How can I get the solution z1>0 and z1<root(4/3) since z1 needs to be between -root(4/3) and root(4/3). Is there an other functi...

3 years ago | 0

Answered
grafico di contorno per matrice (contour plot for matrix)
data = readmatrix('book1.xlsx'); X = data(1,2:end); Y = data(2:end,1); Z = data(2:end,2:end); contourf(X, Y, Z) colormap(...

3 years ago | 0

Answered
How to add personal email address to log in?
MATLAB Drive provides ways to download files. Progress against courses is recorded against your MATLAB Central profile, which i...

3 years ago | 1

Answered
Please check the time series code ,the code is not running where B is a matrix of order 20
Several different things needed to be fixed. But why are you excluding x(17) in your y? That makes y 19 tall when your B is 20 ...

3 years ago | 0

Answered
Incorrect number or types of inputs or outputs for function 'dateshift'.
Do you actually need to change the time entries, or do you just need to have them display as years? Changing the time entries c...

3 years ago | 1

Answered
For removing artifact from raw EEG signal ,I have need to pca.m and rica.m file . How can I get this pca and rica function of MATLAB files?
pca -- Statistics and Machine Learning Toolbox rica -- Statistics and Machine Learning Toolbox

3 years ago | 0

| accepted

Answered
floor((I3(i,j-1)+I3(i-1,j))/2)
You values are integer data class, such as uint8() . When you do calculations on integer data type, the result is calculated as ...

3 years ago | 0

Answered
Concern regarding wrong input in registering account
No, no difference. The same license type is used for both of them. It is not uncommon that graduate students need access to too...

3 years ago | 0

Answered
What version of MatLab is required in order to include scripts and results in a book I contemplate writing?
See https://www.mathworks.com/academia/books/join.html

3 years ago | 0

Answered
Different colormaps and caxis on overlaying pcolorms
Any one axes or mapping axes can only have one CLim property (the one affected by caxis), and can have only one color map. pcol...

3 years ago | 0

| accepted

Answered
Make array with elements repeating as many times as specified in another list.
y_val = repelem(1:length(a_lengths), a_lengths);

3 years ago | 1

| accepted

Answered
Equations and Boundary conditions are Unequal
S is the output of the deval() and so is not available until after the bvp5c has been run. But the ode function wants to plot S,...

3 years ago | 0

| accepted

Answered
How to use FFT for time series data
if you have regular times, then y = fft(Channels(:,iChan)); and see the first example for fft() for code that can calculate ap...

3 years ago | 0

| accepted

Answered
look up data from table (either from excel, table in matlab, or text fil) using App Developer
interp2 if you have a grid of inclination and altitude. If you have lists of inclinations and corresponding altitudes, then us...

3 years ago | 0

Answered
how plot function sine wave in two variable in MATLAB like y(x,t)=a* sin(wt-kx)
syms a c k lambda omega t x Pi = sym(pi); k = 2 * Pi / lambda omega = 2 * Pi * lambda * c * t y(x, t) = a * sin(omega*t - k ...

3 years ago | 0

Answered
Why i got this error?
The only reference I can see on the Internet to "sqrmesh" is in a part number for an Australian bee-keeping suit. You will need...

3 years ago | 0

Answered
Why do solutions get lost when I add a assumption where I know, that the correct solution would satisfie this assumption. Same if I add the inequality instead of the assume
First of all, the Symbolic Engine is not very good about reasoning with inequalities. Second of all, when the Symbolic Engine r...

3 years ago | 0

Answered
String Bus Element doesn't work
You need a String Constant block; https://www.mathworks.com/help/simulink/slref/stringconstant.html as regular Constant Block do...

3 years ago | 0

Answered
What is the best metric to compute the error for complex time series data?
No, that could give you complex numbers, but MSE should be real and non-negative. https://dsp.stackexchange.com/questions/35808...

3 years ago | 0

Answered
substituting functions in a function
You will need to check that I transcribed everything correctly. syms Lg Wg s t w x y z g(y) = (Wg/y)^2 Root2 = sqrt(sym(2)); ...

3 years ago | 0

| accepted

Answered
Can LaTeX commands be embedded in LiveScripts?
It depends what you mean by "exported" If you happen to mean that you want it sent to Report Generator, then my understanding i...

3 years ago | 0

Answered
Adjacency matrix.I want to simply the code .
You can get a fair bit of the way with B1 = diag(ones(n-1,1),1) + diag(ones(n-2,1),2); You will still need to do the upper rig...

3 years ago | 0

Answered
How to plot a 3d surf plot?
You do not have 3D surface. You have a 26 x 26 x 251 cuboid, and you have a data value for each location in the cuboid. That is ...

3 years ago | 0

Answered
how to call the amaze function with the spinner's value as an input.
Inside NewMazeButtonPushed access app.GridSizeSpinner.Value and pass the result to amaze()

3 years ago | 0

Load more