답변 있음
How to plot only positive values?
You can use logical indexing. posY=Y(Y>0); posX=X(Y>0); %the X values for which it is true that the value of Y in the corres...

대략 4년 전 | 2

답변 있음
How to create a matrix for plotting surf(x,y,z) from multiple .dat files?
I hope your data files are in order! :) First, get arrays of your filenames, and then create a loop withinwhich you use the fu...

대략 4년 전 | 0

답변 있음
Change for loop stepsize
I think, when you create the for phaseerror = 0:stepsize:limit loop, you have already determined your increment - you cannot cha...

대략 4년 전 | 0

답변 있음
How to plot multiple plot in the same figure inside for-loop
If hold on is used, matlab will add plot commands to the active axes (or active figure, if you will), unless you specify otherwi...

대략 4년 전 | 0

| 수락됨

답변 있음
Make gui for function CROSSIT
Try to read your error. "There is no 'srting' property of the 'uicontrol' class." Does that look right to you? Its a simple ty...

대략 4년 전 | 0

답변 있음
i want to find the values in the x axis for the respective y axis
You seem to do your autocorrelation in steps of 1. What is the precision you are after? Is it simply "the first time SWH drops b...

대략 4년 전 | 1

답변 있음
How to calculate some statistical moments for every cell of a cell array?
A good way to troubleshoot is to insert a keyboard line - it pauses the code, and allows you to see "what matlab sees" mid-execu...

대략 4년 전 | 0

답변 있음
How to take an integer input from matalab file and put it in app designer as an enter box number ?
Lets call your app GUI. First define a text box on the GUI; TextEdit=uicontrol('Style','Edit','Units', 'normalized','string'...

대략 4년 전 | 0

답변 있음
Import data TXT File to Matlab
You will want to clean up your files a little before importing them; Matlab can understand ; , : tabs and spaces as delimiters, ...

대략 4년 전 | 0

답변 있음
Creation of a loop code
This partition function might help. Call plist=partitions(100,1:100,[],3); and you will get a 833x100 matrix where the sum of th...

대략 4년 전 | 0

답변 있음
How to write function with multiple input and output (Function for Optimization based on Experimental data)
a(i) wants to assign a single value into a vector, a, on the ith index. But alpha(:,1) refers to every value iin the first colum...

대략 4년 전 | 0

답변 있음
Confidence intervals for fitlme
If you look at the linear mixed model documentation you should be able to extract the confidence interval values from lme.Coeffi...

대략 4년 전 | 0

답변 있음
Plots at cut off frequency
You could look at a function to find the frequency value of your peak, and then set your x limit to exclude that region. For exa...

대략 4년 전 | 0

| 수락됨

답변 있음
3D matrix (I guess is an indexing question?)
matr(ct1,ct2,:)=[1:(k-1) (k+1):9 0]; Is this what you want?

대략 4년 전 | 0

| 수락됨

답변 있음
Creating a Loop for my work
There is indeed! A basic loop runs through integer numbers that you specify. You can then convert these numbers to strings - whi...

대략 4년 전 | 0

| 수락됨

답변 있음
Setting up and plotting functions
It does, indeed, need to be given some inputs. Matlab has no way of knowing what a, b, c and x are. function F(x,a,b,c); y = ...

대략 4년 전 | 0

답변 있음
How do you pass MATLAB date (or user input) to SQL query for execution
I remember struggling alot with this when I first started out grabbing data from SQL servers. I found that an approach where I c...

4년 초과 전 | 1

답변 있음
Export Curve Fitting tool results
You can create such a table yourself (although I dont understand how you get the interpolation function without having such a ta...

4년 초과 전 | 0

| 수락됨

답변 있음
Export cell array xlswrite
Looping is the way to go. Depending on the dimensions of your cell you need to modify this, but for an example cell array named ...

4년 초과 전 | 0

| 수락됨

답변 있음
How to store each iteration data, which is having multiple loops
You can add a third dimension to your matrix easily enough, your result p will now be a 3D matrix. (You can even add a 4th dimen...

4년 초과 전 | 0

| 수락됨

답변 있음
Plot3 using 3 vectors of different length,
The answer is in your error message. Plot3 plots a series of points (x,y,z) - the same would happen if you tried to plot(x,y) wi...

4년 초과 전 | 2

| 수락됨

답변 있음
Finding the percentage of NaN cells in columns
Lets say you have a vector A. isnan(A) gives you a vector of same dimension of A, with 0 on all indexes with a value, and 1 in a...

4년 초과 전 | 1

답변 있음
How to export Excel files to the specific folder?
You can find the answer in the documentation for the writetable function. You must simply format your filename to be E:\AZAR\xls...

4년 초과 전 | 0

답변 있음
Could someone tell me an easy way to plot graph when kk varies from 1 to 100?
Do you need all the variables open with every information in the workspace after the plotting? If not, I would do something like...

4년 초과 전 | 1

| 수락됨

답변 있음
simple for cycle!
Think what happens for massa_pos when i=1. Nothing happens, because massa(i) is negative. But when you get to i=7, you then get ...

4년 초과 전 | 1

| 수락됨

답변 있음
Raman Data Analysis - Normalization
For your baseline, cover the detector with a beam block, and record a spectrum. This will be your baseline. For normalizing a ...

4년 초과 전 | 0

| 수락됨

답변 있음
how to store value computed from into array and plot the value in graph
Issue 1 is that your first loop iteration sees ss=0, and then you have s/ss... Can't divide by 0! :) Aside from that, you simp...

4년 초과 전 | 0

| 수락됨

답변 있음
Consolidating counts & sum by Year Range
Well, if the 2nd row is your toy counts, something like: indexes=find((2002 <= A(1,:)) & (A(1,:) <= 2004)); %finds the column ...

4년 초과 전 | 1

답변 있음
Kolmogorov-Smirnov test for inverse Gaussian distribution
The Kolmogorov-Smirnov test checks if your data is from a standard normal distribution, not an inverse gaussian. Of course, it i...

4년 초과 전 | 1

답변 있음
Compare Two Data Sets: How to Compare Only the non-NaN rows Together?
Question one: how can you have predicted data, if you have no real data? :D Anyways. Does your predicted data for those instan...

4년 초과 전 | 0

더 보기