Question

How to add histogram to series of scattered plot on the same plot?

I would like to add hitogram for each scatter plot. The code below plots in different color each slice of 3 dim scatter matrix....

alrededor de 22 horas ago | 1 answer | 0

Question

How to plot scattered data YZ with diffrent color for each slice X of 3 dim matrix XYZ

How to plot scattered data YZ with diffrent color for each slice X of 3 dim matrix XYZ ? There are two F1 F2 matrices (3 dimens...

1 día ago | 1 answer | 0

Question

multiplication question in 3 dim

Let say there is matrix from meshgrid X,Y. How to multiply it through a vector L in building third dimension of a F matrix ? ...

4 días ago | 1 answer | 0

Question

How to read just the powers from matlab output

How to read/print the powers from the matlab output function coeffs ? l^4*w^3*z^1 and l^4*w^3 I would like to obtain numbers...

25 días ago | 2 answers | 0

Question

How to create a histogram without using the matlab function

How to create a histogram without using the matlab hist function. Given scattered data x = randn(1,100); y = randn(1,100); ...

5 meses ago | 2 answers | 0

Question

How to get the indices of the values inside every bin i.e. histcounts2

How to get the indices of x and y for the counts that go into every bin. x = randn(1,10); y = randn(1,10); nbins = [8 8]; ...

5 meses ago | 1 answer | 0

Question

How to vectorize max / min number in row

Ho to vectorize the min and max value on each row for a matrix a = linspace(2,5,10); b = linspace(0,8,10); A = [a' b'] ...

5 meses ago | 1 answer | 0

Question

How to display result from solve ?

How to display the result form solve ? x = @(y)(y^2-4); eqn =@(y) x(y)==0; syms y; S = vpasolve(eqn(y),y) Xr2 = [' R2 ...

5 meses ago | 2 answers | 0

Question

Why subs symbolic fails here

How to make subs work for expression that are not identically simplified from the 'simlify' function. The expressions bellow ar...

11 meses ago | 1 answer | 0

Question

Symbolic collect and display

I would lie to display the coefficients before the expansion terms of the cos one by one. syms x y f = expand(sin(x + 3*y));...

11 meses ago | 1 answer | 0

Question

Rotation of curve question

I am trying to rotate a curve about a point (yellow asterisk) and do not obtain a symmetric result. Xr = (x-XXc)*cos(delta) + ...

11 meses ago | 1 answer | 0

Question

speed for loop in sum

Can the for loop be removed ? x=linspace(-2,2,100); %some vector [X,XX]=meshgrid(x,x); %some matrix a=1/2;%some constant A0...

más de 1 año ago | 1 answer | 0

Question

Numerical value for sum of bessel functions

I would like to find as numerical value the sum of bessel functions A0 . Is it possible to speed it ? x= linspace(-2,2,100)...

más de 1 año ago | 1 answer | 0

Question

Conditional 'for loop', simpler ?

Is it possible make a for double loop simpler. x=linspace(-2,2,100); s=1/2; [X,Y]=meshgrid(x,x); A = X.^2; B = Y; for k=1:si...

más de 1 año ago | 1 answer | 0

Question

How to create a circle with segments of specific colors

I am trying to create an image of a circle with inner and outer radius, that is divided radially in segments. The...

más de 1 año ago | 1 answer | 0

Question

Choose a number from counter by key pressing

I would like to have a repeating sequence in time of numbers 1 to 100. When a key is pressed to display the current number a...

más de 2 años ago | 1 answer | 0

Question

Is there a function to draw the cie chromaticity diagram ?

Is there a function to draw the CIE chromaticity diagram ? How to use plotChromaticity ?

más de 2 años ago | 2 answers | 0

Question

How to make 2D rainbow ?

How to make a 2D rainbow plot like https://en.wikipedia.org/wiki/Visible_spectrum#/media/File:Spectrum.svg <https://en.wiki...

casi 3 años ago | 1 answer | 0

Question

How to make a Riemann surface plot of simple analytic functions ?

How to make a riemann surface plot of simple analytic functions ? The code below does not give the correct plots. clear al...

casi 3 años ago | 0 answers | 0

Question

How to write to word file using utf-8 encoding

I cannot save cyrilic to word file. I tried also reading a text file in utf8 but cannot write it with the same encoding. How t...

casi 3 años ago | 1 answer | 0

Question

How to copy only paragraph from text file

I would like to copy a paragraph from text file ( Sample text Sample text). The paragraphs are divided by 1-1 like numbering....

casi 3 años ago | 1 answer | 0

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

casi 3 años ago | 2 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 ...

casi 3 años 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...

casi 3 años 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 ...

casi 3 años 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...

casi 3 años 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...

casi 3 años 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...

casi 4 años 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 ...

alrededor de 4 años 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...

alrededor de 4 años ago | 1 answer | 0