質問

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

約1年 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

回答済み

Unrecognized function or variable 'gaussf'.

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

Unrecognized function or variable 'gaussf'.

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

1年以上 前 | 0

| 採用済み

質問

Unrecognized function or variable 'gaussf'.

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

1年以上 前 | 3 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

Saving struct to excel

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

1年以上 前 | 1 件の回答 | 0

質問

Version control on mat files

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

Optimizing code run time

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 0 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 0 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

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

1年以上 前 | 2 件の回答 | 0

質問

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

1年以上 前 | 1 件の回答 | 0

質問

Automatically generating constraints for fmincon

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

1年以上 前 | 0 件の回答 | 0

質問

How can I do this in MATLAB?

In pycharm, if I have a bunch of py files and let's say I have opened 1 file that calls a function defined in the other file. Cl...

1年以上 前 | 1 件の回答 | 0

質問

Parameter estimation using fmincon - how to set up the problem in MATLAB?

I've an objective function of the form, Note: M,D arematrices. The second equation is the objective function that has to...

1年以上 前 | 0 件の回答 | 1