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

environ un an 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 = ...

plus d'un an 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...

plus d'un an 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...

plus d'un an 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...

plus d'un an 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...

plus d'un an 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 ...

plus d'un an 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. ...

plus d'un an 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 ...

plus d'un an 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...

plus d'un an ago | 1 answer | 0

Question

How to read a multiframe tiff in MATLAB?

Hello, I am trying to read a multiframe tiff of dimension 610 x 610 x 1200 Using imread('file.tiff') reads only the first...

plus d'un an ago | 1 answer | 0

Answered

Unrecognized function or variable 'gaussf'.

present in http://www.diplib.org/main

Unrecognized function or variable 'gaussf'.

present in http://www.diplib.org/main

plus d'un an ago | 0

| accepted

Question

Unrecognized function or variable 'gaussf'.

Hi, I am running a MATLAB code published online for processing images (normalize intensities). It throws an error Unrecogniz...

plus d'un an ago | 3 answers | 0

Question

Unrecognized function or variable 'bfopen'

I am tyring to open an image stack in .czi file in MATLAB2019b. data = bfopen(file_name); returns Unrecognized function or ...

plus d'un an ago | 1 answer | 0

Question

Extracting network from a 3D geometry

I have a 3D volume like the above and I would like to extarct network/ skeletonize from this. I would like to ask for sugg...

plus d'un an ago | 1 answer | 0

Question

Why `WriteMode` isn't working while appending data to xlsx?

I'm doing the following excelFilename = 'someFile.xlsx'; structFieldnames = fieldnames(myStruct); % <--- where myStruct is y...

plus d'un an ago | 1 answer | 0

Question

Append character array to first row of a matrix

Hi there! I've the following struct array Astruct = struct with fields: data1: [10×5 double] data2: [10×5 doub...

plus d'un an ago | 1 answer | 0

Question

Saving struct to excel

I've a struct in the following form Astruct = struct with fields: data1: [5001×16 double] data2: [5001×16 d...

plus d'un an ago | 1 answer | 0

Question

Version control on mat files

Hi All, Is it possible to view the history of changes made to a mat file? Thanks

plus d'un an ago | 1 answer | 0

Question

Question on how to position points on a line

I've the following to divide a line to equal segments ref xy1 = [141.64 399.53]; xy2 = [213.32 250.96]...

plus d'un an ago | 1 answer | 0

Question

Defining persistent variables in a function

I've a function that is called multiple times function fun() persistent x y z if isempty(x) x = % end if isempty(y) y = ...

plus d'un an ago | 1 answer | 0

Question

Optimizing code run time

Hi All, I've the following function function fun1() [t,x] = ode15s(@(t,s) fun2(t,x), tspan , x0 ,options); ...

plus d'un an ago | 1 answer | 0

Question

fmincon converges to solution using interior-point but not using sqp

Hi All, I am solving an optimization problem using fmincon. The solver converges to a solution using interior-point algorithm...

presque 2 ans ago | 0 answers | 0

Question

Objective function increases but solver converges --- Why?

Hi All, I am trying to solve a constrained optimization problem in fmincon But I am not sure why the solver converges when...

presque 2 ans ago | 1 answer | 0

Question

How should the value of objective function be returned for fmincon?

Hello, I have an objective function that computes the difference between actual and predicted values. The value, f, computed ...

presque 2 ans ago | 1 answer | 0

Question

Why is the optimization problem solved by lsqnonlin but not by fmincon ?

Hi All, Equation 1: Equation 2: Equation 1 represents the exact dynamics of a system and equation 2 is the approximat...

presque 2 ans ago | 0 answers | 0

Question

Solving an optimization problem in fmincon with nonlinear constraints

Hi All, I have the following dynamical systems. Equation 1: Equation 2: Equation 1 represents the exact dynamic...

presque 2 ans ago | 1 answer | 0

Question

Passing extra output arguments from ode

I've the following code to obtain [t,x] after simulating odes . In addition to the solution, I also want to obtain the functiion...

presque 2 ans ago | 2 answers | 0

Question

How to set up parameter estimation in fmincon

Hi All, I have the following dynamical systems. Equation 1 represents the exact dynamics of a system and equation 2 is the ap...

presque 2 ans ago | 1 answer | 0

Question

Automatically generating constraints for fmincon

Hi All, I would like to know if it is possible to automatically generate trapezoidal collocation constraints using OptimTraj ...

presque 2 ans ago | 0 answers | 0