Question

MATLAB not initializing after launching

I am facing an issue after launching MATLAB. MATLAB initialization is too long more than an hour. I would like to know if this...

11 hours ago | 0 answers | 0

Question

Availability of ode32tb

Hi All, May I know in which version of MATLAB ode32tb is available?

21 days ago | 2 answers | 0

Question

Setting up ode solver options to speed up compute time

Hi All, I'm specifying the `'JPattern', sparsity_pattern` in the ode options to speed up the compute time of my actual syste...

1 month ago | 0 answers | 0

Question

Fit an exponential function to time-series data

Hi All, I have a time series data and I would like to fit an exponential curve using the following expression to the data point...

2 months ago | 1 answer | 0

Question

Finding the time in which a specific value is reached in time-series data when peaks are found

I would like to find the time instant at which a certain value is reached in a time-series data with noise. If there are no peak...

3 months ago | 1 answer | 0

Question

Requested array exceeds maximum array size preference

I get the following error while trying to call odenumjac. Requested 35036x35036 (9.1GB) array exceeds maximum array size pre...

4 months ago | 0 answers | 0

Question

how can I vectorize my code when multiple variables are present

Hi All, This is a follow up to my previous question here. I'm trying to figure out how to vectorize my code when multiple vari...

4 months ago | 1 answer | 0

Question

issue with vectorization of ode

Hi All, This is a follow up to my previous question here. I'm trying run the code below. global mat1 mat2 k k = 2; mat1=[ ...

4 months ago | 0 answers | 0

Question

What's going wrong in the vectorization of my ode function?

Hi All, I'm trying to setting `vectorization` = 'on' in the ode settings and I clearly don't understand what's going wrong g...

4 months ago | 1 answer | 0

Question

finding non-zero entries of a matrix

Hi All, I've 2 matrices, A and B. A = [1 0 2; 3 4 5; 0 0 0]; B = [0 0 0; 1 0 0; 1 1 1]; I want to generate a matrix C ...

4 months ago | 1 answer | 0

Question

Issue while computing jacobian

Hi All, This is a follow up to my question posted here. I'm trying to find the sparsity pattern of a jacobian in the followin...

4 months ago | 1 answer | 0

Question

Why am I not able to run this code?

global mat1 mat2 mat1=[ 1 -2 1 0 0 0 0 0 0 0; 0 1 -2 1 0 ...

4 months ago | 1 answer | 0

Question

Setting up jacobian pattern in odeset

Hi All, I'm trying to evaluate the jacobian pattern for a toy model x0 = [1 0 0 0 0 0 0 0 0 0]'; tspan = 0:0.01:5; f0 = ...

4 months ago | 0 answers | 0

Question

finding the sparsity pattern of a matrix

I've a matrix created via symbolic multiplication I'm sharing an example of the resulting matrix below (which is the RHS of od...

4 months ago | 0 answers | 0

Question

Does ode15s call BLAS functions?

Hi All, This is a follow up to my previous post here Could someone please clarify if the ode solver calls BLAS functions for...

7 months ago | 2 answers | 0

Question

Question regarding ode15s

Hello Everyone, I'm simulating a system of stiff differential equations of the form using ode15s Y'= (1./Vector1).*(Matrix1...

7 months ago | 1 answer | 0

Question

labels of stacked plot

Hi All, I've been going through the examples available here https://in.mathworks.com/help/matlab/ref/stackedplot.html to gene...

7 months ago | 2 answers | 0

Question

reading the contents of a text file

I have the following content in a text file 1 2 3.45 4 2 2 3.43 4 3 2 3.23 4 4 2 3.46 4 5 2 3.345 4 6 2 3.4567 4 I'm tr...

8 months ago | 1 answer | 0

Question

creating an empty json file

Hi All, I would like to know how to create an empty json file in MATLAB.

8 months ago | 1 answer | 0

Question

Installing MATLAB Engine API for Python

Hi, I'm going through the documentation available here https://in.mathworks.com/help/matlab/matlab_external/install-the-mat...

8 months ago | 1 answer | 0

Question

Issue while trying to use imopen

Hello Everyone, I have a segmentation volume created after processing an image stack by pixel classification. However, the ...

8 months ago | 0 answers | 0

Question

Adding edges to a Graph

Hi All, I am using the following section of code to add edges to a graph for node = 1:length(TobeAdded)-1 source = ...

8 months ago | 1 answer | 0

Question

Plotting histogram of image data present in a stack

Hi All, I have looked at the examples shown here to underetand how to plot histogram of a single image data. But it's not cl...

8 months ago | 1 answer | 0

Question

check if the entries of an array exists in another array

I've got two arrays, a1 = ["a", "b", "c", "d", "e", "f"] a2 = ["c", "f"] I would like to check if a2 is present in a1. Fo...

10 months ago | 1 answer | 0

Question

How to obtain a logical array?

I have an array X = 1:10 using find to check for an element returns find(X==10) ans 10 I would like to know how to r...

10 months ago | 1 answer | 0

Question

creating a graph with nodes and edges

I've the following tail = [2 3 4] head = [3 4 7] G = digraph(tail,head) plot(G) The node numbering isn't continuous here. W...

10 months ago | 1 answer | 0

Question

passing arguments to a function

function val = sum(a,b) default('a',1); % uses a function from file exchange default('b',20); val = a+b end I want to ...

10 months ago | 1 answer | 0

Question

plotting lines in 3D

I've the following to add additional points on a line joingin 2 points located in 3D space extended from 2D example shown here. ...

11 months ago | 1 answer | 0

Question

Writing time series data to a netCDF file from workspace

I have a worspace variable containing time varying data of a parameter `p` obtained at different coordinate positions. The rows ...

11 months ago | 1 answer | 0

Question

Write a mat file into netCDF file

I have a mat file with time varying data obtained at different coordinate positions. The rows correspond to different coordina...

11 months ago | 1 answer | 0