已回答
How can I fix my uicontrol script?
Hi Travis The following code should do the trick. global exe; exe=1; main_menu=uicontrol('Style','pushbutton','Positi...

6 years 前 | 0

| 已接受

已回答
Is there a way to return variable names instead of values when constructing TF?
Hi Alex Unfortunately the only certain variables permitted to print out as transfer function. If you try to give other names ...

6 years 前 | 0

已回答
How to fold up code in live script?
Hi Pierre I think this link can help you: <https://www.mathworks.com/matlabcentral/answers/34534-is-there-a-way-to-fold-up...

6 years 前 | 0

已回答
MATLAB Online Font Type
Hi Shah The font seems to be Bitstream Vera Sans Monospaced. Andale Mono also looks pretty similar. More details are availabl...

6 years 前 | 1

| 已接受

已回答
I need to find the pixel count for the max intensity value of an image ie i want to know the exact value on the x axis of the histogram generated with imhist for a known y value is there a code to do this?
Hi Ellen This link should be able to guide you in the right direction: <https://www.mathworks.com/matlabcentral/answers/13...

6 years 前 | 0

已回答
How can this code be modernized?
Hi Francisco Here is an example of how you can modify the code to incorporate 'insertText': %rgbFrame = step(vidDevice);...

6 years 前 | 0

已回答
How to compare elements in an array?
Hi Alec You can use the 'find' function to obtain the values which are common between two arrays. For example: a=[1 2 3 ...

6 years 前 | 0

已回答
How to subplot a graph returned by MATLAB function for which there is no option to take the figure handle as input nor can it return a handle as output?
Hi Hari Check out this link: <https://www.mathworks.com/matlabcentral/answers/30684-wscalogram-and-subplots> Here, cwt is ...

6 years 前 | 0

已回答
Classify binary images with multiple features
Hi Edward The Deep Learning toolbox can help in classifying images with a good accuracy. Check out this link: <https://www....

6 years 前 | 0

已回答
How can i convert this simple program from Matlab into visual basic
Hi Musa What you can do is to make a DLL (mex) file from your MATLAB script and call that in VB. Another approach is to c...

6 years 前 | 0

已回答
Fit background of an image
Hi Angela One thing that you could try is to use 'imadjust' to improve the visibility of the image after top-hat filtering. ...

6 years 前 | 0

| 已接受

已回答
Need Help Plotting Mode Shapes
Hi Amanda I am assuming that you wish to plot the variation of y against x for the values from 0 to 5 in steps of 0.5 as per ...

6 years 前 | 1

| 已接受

提问


Why am I getting negative zero as an eigen value while using the 'eig' function?
Hi all I ran the following code which makes use of the 'eig' function and I encountered a negative zero in the value printed ...

6 years 前 | 1 个回答 | 0

1

个回答

已回答
Standardize data when using Regression Learner App, but when predict...?
Hi Quan Since you have trained the model on the standardized data, the model would give an accurate prediction only when the ...

6 years 前 | 0

| 已接受

已回答
Feature selection with NaN
Hi Azura, Have you tried the 'fillmissing' function in MATLAB? See the following link: <https://www.mathworks.com/help/matla...

6 years 前 | 0

| 已接受

已回答
Using fittype for three dimensions
Hi Colin The variable 'theta' is not being recognized by the fittype function- hence the error. Try this modified code instea...

6 years 前 | 0

已回答
Why does z appear in my solution? How to get the value of x? My friend using Matlab 2017 and he can get the answer but i cannot by using matlab 2018
Hi Razin The output that you have obtained is indeed the solution of the equation 'eqns' that you have provided. The solut...

6 years 前 | 0

已回答
I don't know how to surf when z is independet.
Hi Jaeuk I think this link might help: <https://www.mathworks.com/matlabcentral/answers/11561-making-mesh-from-independent-v...

6 years 前 | 0

| 已接受

已回答
When I use impulse for two different ss the plot is just one..I need two plots when I get the response and then I want to super impose those two plots..How do I do it
Hi Mirza Just use the 'hold on' command on the line above this one: impulse(Ac1,Bc1,Cc1,Dc1,1,'g'); 'hold on' will ensure tha...

6 years 前 | 0

已回答
i have these plots and i want the x axis and y axis to look similar. I mean the interval needs to be same.
Hi Pruthviraj Try the following sample code to manually set the intervals for x and y axes as you desire. x=0:0.1:1; y1...

6 years 前 | 0

已回答
help me about nlinfit
Hi Kim The second argument to the nlinfit function only accepts a vector. So it would be better to fit 'x' element-wise. I ha...

6 years 前 | 0

| 已接受

已回答
How do I multiply two variables of form A(:,:, i) and B(:,:,i) where i = 20
Hi Sagar Try this code: sum=0 for i=1:20 sum=sum+s(:,:,i).*(phi(:,:,i).^2) end It will work if the sizes of ...

6 years 前 | 0

| 已接受

已回答
Mean calculation from nxm matrices using nxm index matlab
Hi Abaye I understand that you wish to obtain the monthly mean flow for the data you have provided. Assuming that Month_data.ma...

6 years 前 | 0

已回答
fourier transform simple question
Hi Lin I'm attaching a code below which maybe what you are looking for. The plot returns the figure-1 with six signals that y...

6 years 前 | 0

已回答
create changing size array simulink
Hi Mike, The error occurs because for code generation in Simulink, you have to define the array 'y' before indexing or sub-scri...

6 years 前 | 0

已回答
Can I threshold this further if so how?
Hi Oliver. I think the im2bw function may be of help to you. I tried the following code with the image you had attached and it s...

6 years 前 | 0

已回答
How to find the equation of a line for a 3d line plot
It is possible to get the equation of the line using the fit function. Assuming that the two position variables are x and y, and...

6 years 前 | 0

已回答
can someone please explain what is lag in matlab built in function xcov ? Thanks
[c,lags] = xcov(x,y,maxlags) where x and y are length m vectors, returns the cross-covariance sequence in a length 2*maxlags+1 v...

6 years 前 | 0

已回答
How do I subtract a bunch of data created in MATLAB from another source in Simulink?
Hi Aishwarya Your query was regarding subtraction of data in MATLAB workspace and a block in the Simulink environment. There ...

7 years 前 | 0

已回答
how do i plot equations
Hi Federico I understand that you wish to plot K against x. Normally, you should separate out one variable in terms of the ot...

7 years 前 | 0

加载更多