Answered
how I write independent random numbers from a normal distribution, for example between (0,1)?
There is specific matlab function <https://it.mathworks.com/help/matlab/ref/randn.html> For example, create 4x5 matrix of n...

ongeveer 8 jaar ago | 3

| accepted

Answered
A = 'hello' B = [0;0;0;0] How do I rename variable B with hello?
Here it is A = 'hello'; B = [0;0;0;0]; v = genvarname(A); eval([v,'=B']);

ongeveer 8 jaar ago | 0

Answered
Averaging the 3D-array
You may want to histogram the 3D array by 3D histogram. There many functions in Matlab central, just search for "N dimensional h...

ongeveer 8 jaar ago | 4

| accepted

Answered
Why 2D sinusoidal grating Phase spectrum looks horizontal line?
Basically Matlab function FFT2 computes the discrete 1D FFT on image columns first, and then again it applies 1D FFT to the rows...

ongeveer 8 jaar ago | 4

| accepted

Answered
separate colors of image
Here is an example with a default matlab image to extract color bands: IMG=imread('peppers.png'); RED=IMG(:,:,1); GRE...

ongeveer 8 jaar ago | 4

Answered
solve an equation by iterration
Put Sigma in the other side of the equation by changing it sign, and then use *fsolve*. <https://it.mathworks.com/help/optim/ug...

ongeveer 8 jaar ago | 2

Answered
Finite difference problem with matlab 2014
Your problem is equaivalent to this (without the variable t, which redundant here as it is used only for indexing purposes). Sin...

ongeveer 8 jaar ago | 3

| accepted

Answered
give name to node in dendrogramm
Use the 'Labels' property of the dendogram plot. Keep in mind that dendrogram labels any leaves in the dendrogram plot containin...

ongeveer 8 jaar ago | 3

| accepted

Answered
two dimensional for loop - "matrix dimensions must agree"
*Do not use* commas to separate decimals as in N = [1000, 10,000, 100,000]; In matlab commas are only to separate betwe...

ongeveer 8 jaar ago | 4

| accepted

Answered
Is there a Row limit when transfering a matlab table to CSV file?
Depending on Office version, there are limitations in the maximum number of rows Excel can load. To really know how many rows th...

ongeveer 8 jaar ago | 2

Answered
Fitting a 3D sine function to topographic data?
A simple idea is to downsample your data (also called decimation). Since your data is very regular, you can remove a lot of samp...

ongeveer 8 jaar ago | 3

Answered
How to find the R peaks in QRS complexes
Here you cannot use built in matlab function findpeaks, because it works only in 1D. To work in 2D use this: <https://it.math...

ongeveer 8 jaar ago | 3

Answered
Min and max in integral
To get max of symbolic variables x,y try this: max(double([x,y]))

ongeveer 8 jaar ago | 3

Answered
How to display specific points and values?
To display also top axis, use box on; I didn't get what is the other problem. Can you explain better?

ongeveer 8 jaar ago | 3

Answered
How can I detect the difference b/w indices of vector and stop it as well?
To get the differences between all consecutive values of x, better use the built-in matlab function diff(), and then thresholdin...

ongeveer 8 jaar ago | 3

Answered
how can i fill this competent?
Use morphological operator imdilate to dilate the boundary, and then imfill. See documentation to get insights.

ongeveer 8 jaar ago | 4

Answered
Minor Tick Marks Don't Render Consistently
Yes there is a simple way. Take control of ticks length. See last code line: figure(1) x=[1 10 100]; y =[1 10 100]; ...

ongeveer 8 jaar ago | 3

Answered
What is the best method to do frequency analysis on a time based signa, spectrum block?
Try fourier transform (continuous) <https://it.mathworks.com/help/symbolic/fourier.html>

ongeveer 8 jaar ago | 3

Answered
How can i find which value of a cell equals to 1?
If in your cell you have only [] or 1 elements, this works. C={1,[],[],1,[],1} %get indeces of 1s OnesInC = find(~ce...

ongeveer 8 jaar ago | 6

| accepted

Answered
Boundary replacement of values in arrays
There is no need to loop. Use logical indexing: a=randi(5,10,1); b=randi(5,10,1); c=randi(5,10,1); [a,b,c] ...

ongeveer 8 jaar ago | 3

| accepted

Answered
Fix for " The input to DATENUM was not an array of strings."
Most probably your variable "date" is not an array of strings.

ongeveer 8 jaar ago | 3

Answered
How to obtain one cell of output data from multiple cells?
Very simple. Try this: %this is a simple version of you set of cells U = { cell(3,1) ; cell(2,1) ; cell(4,1) } %here ...

ongeveer 8 jaar ago | 3

| accepted

Answered
How can i find peak points?
Try the command here <https://it.mathworks.com/help/signal/ref/findpeaks.html> to find peaks

ongeveer 8 jaar ago | 4

Answered
setting the position of the legend
I suggest you to let matlab finding the best position by doing set(leg,'location','best')

ongeveer 8 jaar ago | 6

Answered
which MATLAB version will run on my laptop? windows 7 64 bit, pentium dual core 2.3ghz, 2gb ram, intel graphics 1gb
The last release is ok: <https://it.mathworks.com/support/sysreq/current_release/>

ongeveer 8 jaar ago | 4

| accepted

Answered
Sorting element pairs by differences?
More elegant is to use *pdist*, that does the bad job..

ongeveer 8 jaar ago | 3

Answered
how to make bisection Method, secant Method , regular falsi Method and Newton raphson Mehtod.
Find the code in the links. Secant: <https://it.mathworks.com/matlabcentral/fileexchange/36737-secant-method/content/secant....

ongeveer 8 jaar ago | 4

| accepted

Answered
Number of columns to be shown of a matrix saved in the workspace.
Assume your matrix C is nx14. To display them separately just save two other matrices as follows: A = C(:,1:7); B = C(:...

ongeveer 8 jaar ago | 3

Answered
Add various horizontal lines to a plot
Horizontal line at what y coordinate? Fix y and then plot the line, for example if y=5: x=1:12; y=5; plot(x,y*ones(si...

ongeveer 8 jaar ago | 22

Load more