Question

How to display info with mouse over text region inside a figure

Is there a way to display information when you put the mouse over a text region inside a figure. * x = linspace(-3,3); ...

fast 4 Jahre ago | 3 answers | 1

Question

How to sort the output of variables of cell array ?

I would like to sort the output of variables fx1 with the first digit and preserve the rows. sortrows(data,1) does not work ...

fast 4 Jahre ago | 1 answer | 0

Question

The inputdlg stays open

I would like to to have an input window and have the ability to change the input data. The code below uses inputdlg. The pro...

fast 4 Jahre ago | 1 answer | 0

Question

Cyrylic in Matlab .m file save and run issues

I am sure there should be a solution out there for using matlab with different alphabet that Latin. When I run a script with ...

fast 4 Jahre ago | 1 answer | 0

Question

value from string ?

I would like to use vectarrow function to draw vectors: <https://www.mathworks.com/matlabcentral/fileexchange/7470-plot-2d-3d...

fast 4 Jahre ago | 1 answer | 0

Question

How to compare non latin letters?

I would like to assign a number to a specific letter of name. But the name is let say in Cyrillic 'Том'. Now the isletter...

fast 4 Jahre ago | 1 answer | 0

Question

How to convert 2D image of circle shape to 2D straight line ?

I have an image 2D that looks pretty much like donut how to convert it to straight lines ? Basically I would like to sum over...

fast 5 Jahre ago | 1 answer | 0

Question

How to solve differential equation of 3 order analytically

I would like to solve a system of differential equaions x''[t] == -a0*(a1 - b*z'[t])*cos[w*t], x[to] == 0, x'[to] == 0 ...

fast 5 Jahre ago | 1 answer | 0

Question

How to plot second y axis y2 that is just related to y1 as f(y1)

I have a plot on y1 axis. I would like to have units conversion on axis y2, as f(y1). How can you plot two units on one graph...

fast 5 Jahre ago | 1 answer | 0

Question

How to distribute a vector in histogram in a loop ?

I have loop that generates a vector x of different size each iteration. I would like to just sum the values of the vector x t...

etwa 5 Jahre ago | 0 answers | 0

Question

Full control of plot axes and labels?

I am having troubles with plot of figure. Seems it has alot of data point and respond quite slowly when I tried to change the fi...

etwa 5 Jahre ago | 0 answers | 0

Question

How to manipulate cell array of vectors (just numbers ) that are not same length?

I want to plot cell array M{k} that has vectors of different size. How to do it ? How to transpose it ? plot(M{:}) retur...

etwa 5 Jahre ago | 2 answers | 0

Question

How to pause execution of script ?

I want to pause execution of script and continue later ? How to do it ?

etwa 5 Jahre ago | 1 answer | 0

Question

How to store vectors with different size in a loop ?

How to store vectors with different size and how to access them. M(k) found_roots F = @(t) cos(t)*exp(-t); A...

etwa 5 Jahre ago | 1 answer | 0

Question

How to integrate integral(integral(cos(t),-10,t) ,t1,t2)

How to integrate numerically Z(t1,t2) ? My function is more complicated than cos but is analytical. integra...

etwa 5 Jahre ago | 1 answer | 0

Question

How to get value from string II = strcat('A', num2str(la));

I want to plot few matrices A1 A2 A3 A4 A5 and call them in loop to make a movie. I am trying to make a string II = strcat('A',...

mehr als 5 Jahre ago | 2 answers | 0

Question

How to plot with pcolor one 2D function with two x axis ?

I would like to plot one function with two x axis. One on the bottom one on the top. The top is just different vector. How to a...

mehr als 5 Jahre ago | 1 answer | 0

Question

How to vectorize or speed up ODE solver with vector ?

I would like to vectorize or speed up ODE solver with vector E? This is extremely slow following this routine. nTime ...

mehr als 5 Jahre ago | 0 answers | 0

Question

How to take FFT inside ode function ?

Matlab is solving ode point by point in t . I want to take FFT inside the function myode. It can taken outside but the way I...

mehr als 5 Jahre ago | 0 answers | 0

Question

How to properly take derivative of discrete data ?

Taking derivative of discrete data requires some fitting and then using the b-form of the polynomial. How to make a 'good' fi...

mehr als 5 Jahre ago | 1 answer | 0

Question

How to make arrows in quiver plot visible ?

How to make the arrows some what more proportional and look like arrows ? The matrices are attached. A = load(A.m...

mehr als 5 Jahre ago | 1 answer | 0

Question

How to select element of matrix that is created with function handle ?

Let say we have matrix defined as A = @(a,n) [a 1 2+1i n*a; 0 1 3+n*1i a; a^2 0 1 a; a 0 0 a]; M1 = @(a)eye(4,4); f...

mehr als 5 Jahre ago | 2 answers | 0

Question

How to find zeros of determinant having complex parameter ?

How to find the zeros of the determinant of 4x4 matrix M which is multiplication of N complex square matrices An containing para...

mehr als 5 Jahre ago | 1 answer | 0

Question

How to solve (find zero) of nonanalitical function fzero or fsolve ?

I have a vector y(x) that does not necessarily have point on y = 0 axis (and is not analytical function). How can I solve (f...

etwa 6 Jahre ago | 1 answer | 0

Question

How to implement conformal transformation that wrap 2D image around a circle?

How to transform rectangular image to image that is bent at certain radius? On the plot the center line follows the radius whic...

etwa 6 Jahre ago | 1 answer | 0

Question

How to find the index of the closest value to some number in 1D array ?

How to find the index in 1D array that has closest value to some number ? val =-1.03 val1 = 1.04 x = -10:0.009:10 ...

etwa 6 Jahre ago | 3 answers | 1

Question

How to integrate the following function ?

<</matlabcentral/answers/uploaded_files/27869/dn.jpg>> How would you integrate this function ignoring the rect ? dx dz a...

etwa 6 Jahre ago | 0 answers | 0

Question

Could exponent of an array be inproved in speed ? Maybe mex file with exp function (reduced accuracy) for windows 64 bit.

Could this line of code be improved in speed ? MM is an array 512x512^2 elements. MM =ones(512^2,512); tic; exp(1i*(MM)...

mehr als 6 Jahre ago | 1 answer | 0

Question

Could you please compile this as mex for windows 64 bit ? I can not run the compiler. Faster exp function with reduced accuracy.

Code for Exp function with reduced accuracy. I can not compile it. Code from <https://www.mathworks.com/matlabcentral/news...

mehr als 6 Jahre ago | 1 answer | 0

Question

How to vectorize sum of scaled matrices ? Or is there matlab function for irregular inverse dft ?

I am trying to inverse transform function on irregular grid. Is there matlab function for irregular inverse dft ? I would...

mehr als 6 Jahre ago | 1 answer | 0