logo
down
shadow

MATLAB QUESTIONS

how to covert 1/4 elements of a matrix to zero
how to covert 1/4 elements of a matrix to zero
I hope this helps you . If you want the points chosen randomly:If you have a 512 x 512 array:
TAG : matlab
Date : November 28 2020, 08:01 AM , By : n3bu
Generating smaller video file size from frames
Generating smaller video file size from frames
wish of those help First, if you're using movie2avi, you have a limited choice of very poor codecs (compression formats). If you have a new enough version of Matlab (R2009b+ I think) you should be using the VideoWriter class instead. The choice of co
TAG : matlab
Date : November 28 2020, 01:01 AM , By : 江晓波
Difference between fspecial('sobel') and edge(i,'sobel') matlab
Difference between fspecial('sobel') and edge(i,'sobel') matlab
I wish this help you Not an expert at edge detection, but looking at the MATLAB documentation for EDGE and FSPECIAL shows that fspecial('sobel') generates a 3-by-3 filter that emphasizes horizontal edges, and that you should transpose it to emphasize
TAG : matlab
Date : November 26 2020, 01:01 AM , By : simbe109
Insert a new line in listbox on Matlab GUIDE
Insert a new line in listbox on Matlab GUIDE
it helps some times You can get the cell array of strings containing items of your listbox with get(handles.message_list,'string'). Here's a way to solve your problem.
TAG : matlab
Date : November 26 2020, 01:01 AM , By : Rithika Hetti
creating url with sprintf creates wrong url
creating url with sprintf creates wrong url
hop of those help? I'm not sure why you're using %d for a value that is clearly a string? You should be using %s.The reason you're seeing what you're seeing is that it appears to be giving you a copy of your format string for each character in the AA
TAG : matlab
Date : November 25 2020, 07:22 PM , By : Lala Ji
How to plot multiple figures in a for loop in matlab
How to plot multiple figures in a for loop in matlab
Hope that helps I wish to implement a for loop that would perform short time fourier series. I'll be using windowing and say I obtain 3 frames on which i wish to perform fft inside a for loop, how can i plot all three graphs? , You can create new fig
TAG : matlab
Date : November 25 2020, 01:01 AM , By : kh-chsm
Matlab allow access to folder for mkdir
Matlab allow access to folder for mkdir
this will help This is possible (on windows 7/8) by running matlab in administrator mode. Right click on your matlab shortcut and select "Run as administrator". Click yes on the pop-up box. When you run the script it will not result in the above erro
TAG : matlab
Date : November 25 2020, 01:01 AM , By : saada badie
How can I order items in a Matlab legend via the figure editor?
How can I order items in a Matlab legend via the figure editor?
wish help you to fix your issue In 2017a and higher (using part of the answer by Peter M above) Select "Edit Plot" with the standard arrow button in the toolbar. This will allow you to select plot lines. Select the plot line you want to appear first
TAG : matlab
Date : November 24 2020, 03:41 PM , By : Vincent Anup Kuri
averaged phase shift between two noisy signals
averaged phase shift between two noisy signals
I think the issue was by ths following , One option, as stated in the comments, is to preprocess your signal with a low-pass filter. This can be conveniently done in the Fourier domain. I used a multiplication of the cross-correlation function with v
TAG : matlab
Date : November 22 2020, 03:03 PM , By : user2956799
MATLAB: Failed to correctly write using csvwrite()
MATLAB: Failed to correctly write using csvwrite()
wish helps you I am trying to write three different arrays into 3 columns in a csv file. This what I have tried : , You should put your data in a matrix:
TAG : matlab
Date : November 22 2020, 10:56 AM , By : user2956589
Matlab: directly access a specific return value of functions
Matlab: directly access a specific return value of functions
Hope this helps Unfortunately it cant be done in matlab, it is just not supported. The only way I know of, that is somehow elegant, is to create itemgetter (something ala itemgetter in python). For example,
TAG : matlab
Date : November 22 2020, 10:54 AM , By : user2956129
How to apply a polynomial to a sequence
How to apply a polynomial to a sequence
I think the issue was by ths following , The notation [i] means taking the coefficient of z^i. Notice that i runs only from 0 to l-d in the definition; so, the result of computation is empty if d is greater than l. Your example with d=4 and l=3 is no
TAG : matlab
Date : November 22 2020, 10:48 AM , By : Knuhl
Anonymous Function with changing array size
Anonymous Function with changing array size
may help you . The value of x is "hardwired" into the anonymous function when you create it. The function internally stores the value that x has at that time, and will always use that. Subsequent changes to x have no effect on the function. See this
TAG : matlab
Date : November 22 2020, 10:48 AM , By : user2955933
How to represent double type number in binary form?
How to represent double type number in binary form?
With these it helps How can I represent double type number in binary form, for example: , You can do the following:
TAG : matlab
Date : November 22 2020, 10:38 AM , By : Liz Hurly
increase / decrease the frequency of a signal using fft and ifft in matlab / octave
increase / decrease the frequency of a signal using fft and ifft in matlab / octave
I think the issue was by ths following , I apologize that the following is a bit messy. I did everything manually because I'm not sure how else to do it.First you need to know how MATLAB stores frequency domain data. Take the following example:
TAG : matlab
Date : November 22 2020, 10:33 AM , By : Muhammad Aamir
How to calculate distance between two set of coordinates in meter?
How to calculate distance between two set of coordinates in meter?
With these it helps You can form geodetic data in terms of 'kilometer' or 'meter' of unit using geodetic2ned() function but this needs Mapping Toolbox. Now check the code below:
TAG : matlab
Date : November 21 2020, 07:31 AM , By : prasinth.fistar
multiple colorbar in ocatve
multiple colorbar in ocatve
wish helps you As you have stated in your edit with x representing your vector U and y time you need an 2D array, for example PlotArray, with size n*length(U)
TAG : matlab
Date : November 21 2020, 01:01 AM , By : user2953493
how to alter the range of values of a plot generated by spectrogram function
how to alter the range of values of a plot generated by spectrogram function
Hope that helps Idea: get the axis the was used to plot the spectrogram and set its properties accordingly. For example, supposing you'd want to restrict the x range to [0, 0.5] and y to [100, 200], then:
TAG : matlab
Date : November 20 2020, 01:01 AM , By : walnutcon
How do I transform a column of data into a normal distribution in MATLAB?
How do I transform a column of data into a normal distribution in MATLAB?
seems to work fine I hope I get you right:assume you have a vector a, and you would like to get a normal distribution that represents it.
TAG : matlab
Date : November 19 2020, 03:59 PM , By : user2952922
Matlab Not enough input arguments
Matlab Not enough input arguments
help you fix your problem The code is a bit messy, but fortunately this kind of problem is very easy to troubleshoot. Save your code in a function or script turn on dbstop if error See where the error occurs
TAG : matlab
Date : November 19 2020, 12:41 AM , By : Tarek Elgohary
Unable to print character value received on serial port in Matlab
Unable to print character value received on serial port in Matlab
like below fixes the issue The fread function returns the character as number, i.e. the ASCII code. To convert it to the char type, you can use recv = char(recv) after receiving the character. Another possibility would be to use recv = fscanf(serialO
TAG : matlab
Date : November 19 2020, 12:41 AM , By : joonaspessi
Blocking Ctrl-C / Ctrl-Z in an input command
Blocking Ctrl-C / Ctrl-Z in an input command
around this issue So you want input to ignore when Ctrl + C is pushed? I don't think that's possible simply because this could potentially be dangerous. Ignoring listening to Ctrl + C could open the possibility of your code running endlessly and you
TAG : matlab
Date : November 18 2020, 01:01 AM , By : user2951317
Find all mappings between two binary vectors of same size?
Find all mappings between two binary vectors of same size?
With these it helps The following solution finds all the places in B where zeroes can go (T0), and where ones can go (T1). Then it loops through all those permutations, producing each mapping.
TAG : matlab
Date : November 17 2020, 11:55 AM , By : user2950511
Color correcting images in MATLAB
Color correcting images in MATLAB
wish helps you @sepdek below pretty much suggested the method that @NKN alluded to, but I will provide another approach. One more alternative I can suggest is to perform a colour correction based on a least mean squared solution. What this alludes to
TAG : matlab
Date : November 17 2020, 01:00 AM , By : user2949595
Questions about lowpass filters using 'butter' function in Matlab
Questions about lowpass filters using 'butter' function in Matlab
This might help you By default, butter produces a discrete-time filter design. Therefore the transfer function is defined in terms of z (z-transform), not s (Laplace transform).A discrete-time Butterworth filter of order n has an n-order zero at z=-1
TAG : matlab
Date : November 16 2020, 06:23 AM , By : Hamedsbt
Nested Bluetooth callback in Matlab GUI
Nested Bluetooth callback in Matlab GUI
like below fixes the issue Create your bluetooth callback with the signature function rdatac_Callback(hGuiObject, hBtObject, eventdata). Now when creating the bluetooth object in your GUI-Callback you have the handle to your GUI-Object. This should b
TAG : matlab
Date : November 16 2020, 06:23 AM , By : Wenjie Fan
How to select random numbers from a given list in matlab / octave
How to select random numbers from a given list in matlab / octave
Any of those help Just create a random index for dataset. Below I select 6 random entries from your dataset:
TAG : matlab
Date : November 14 2020, 04:51 PM , By : user2948354
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org