Answered
How to put string on the x axes and plot more than 1 graph?
a=[ 1 2 3 4 3 4 1 2 4 1 2 3 2 3 4 1] plot(a) set(gca,'xtick',1:4,'xticklabel',{'A','B...

13 years ago | 1

Answered
axes handle does not exist in GUI
Try to run the .fig file instead of the .m file

13 years ago | 0

Answered
i want to know whether this command is correct or not?
your variable f is not defined. What is regwht?

13 years ago | 0

Answered
Suming data over 10 sec period
C = [2 3 5 1 0 9 8 7 3 0 2 3 8 0 8]; %data t = [0.04 1 3 6.4 10 12 19.9 22 26.2 28 30 33.3 35 37 39]; %time id=[0 10:10:ceil...

13 years ago | 0

Answered
Create a global variable in a GUI
You don't need global variables, use guidata function button_browse_Callback(hObject, eventdata, handles) filename = uiget...

13 years ago | 14

| accepted

Answered
Hi. My question is that;
b=subs(b,x)

13 years ago | 0

| accepted

Answered
How to work with GUI data , perform functions and see output in workspace?
When you use variables x,y and z in one function and want to pass them to another function. At the end of your function add ...

13 years ago | 0

| accepted

Answered
export csv file without NaN values
DATA(isnan(DATA))=0

13 years ago | 0

Answered
How do I make a table of a value with its coordinate ung nested for loop?
Your code is wrong. You can notice that j is constant because |sort_mat(i,1:3)| is erasing itself until |j=size(I,2)-31|. Your s...

13 years ago | 0

Answered
How can I rebuild the Table as a 5x1 structured array with "struct" Code ??
data1=['Helium','Hydrogen','Oxygen','Chlorine','CarbonDioxide']'; data2=[ 'He', 'H2', 'O2', 'Cl2','CO2']'; data3=[0.0341,...

13 years ago | 0

| accepted

Answered
Is there an equivalent function to the "kron(x,y)" that uses subtraction as its operation rather than multiplication?
A = [1 2;3 4] B = [5 6;7 8] C=cell2mat(arrayfun(@(x) x-B,A,'un',0))

13 years ago | 0

| accepted

Answered
Random dot product tricks
If you sort a or b or both the result will be different. Maybe you want to do other thing. Clarify what you want to achieve ...

13 years ago | 0

Answered
Plot graph with different labels
y = [10,15,23]; x = {'jan','feb','mar'}; z=[1,2,3]; plot(z,y) set(gca,'xtick',z,'xticklabel',x)

13 years ago | 1

| accepted

Answered
Is there a way to count the number of sequential values in a vector?
a=[1 1 0 1 1 0 1 1]; b=[1 0 0 1 1 1 0 0]; ia=find(a) % Location of 1 in a ib=find(b) % Location of 1 in b ida=diff(ia); i...

13 years ago | 0

Answered
Why matlab return me a complex number
% By definition a^n=exp(n*log(a)) % also if a is a positive real number, log(-a)=log(a)+j*pi a=-27; n=1/3 out1=exp(n*log(a...

13 years ago | 0

Answered
Wrong solution of a tangent using a matrix.
|tan(1.5807)=-100.9693| How did you get |-272241.8| ?

13 years ago | 1

Answered
find the furthest point
AA=[x ;y]; id=numel(x); idx=unique(sort(fullfact([id id]),2),'rows'); idx(~diff(idx'),:)=[] distance=sqrt((x(idx(:,1))-x(i...

13 years ago | 0

Answered
What is wrong with the following script?
m is not defined

13 years ago | 0

Answered
Divide a data set into sub data sets
A=1:100 % Example data=reshape(A,[],20) % each column represent your part of data id=randi(20) random_vector=data(:,id)

13 years ago | 2

| accepted

Answered
Removing quotations from matrix
char(Imatrix)

13 years ago | 1

| accepted

Answered
auto plot scaling in one axis
xlim([xmin xmax])

13 years ago | 1

| accepted

Answered
Confusion on function handles
for k=1:numel(t) y(k)=f(t(k))+g(t(k))+h(t(k)) end plot(t,y)

13 years ago | 0

Answered
Structure array to array
s(1).x = 5; s(2).x = 6; s(1).y = 1; s(2).y = 8; plot([s.x],[s.y])

13 years ago | 1

Answered
How to add limited row to specific row
A= zeros(2,9) B=round(10*rand(6,3)) d=B' out=[A reshape(d(:),9,[])']

13 years ago | 1

Answered
Regular Expression to extract bigram
*EDIT* Do you want? string = 'ab bc cd ef gh ij kl' regexp(string,'\s+','split');

13 years ago | 1

| accepted

Answered
Reading data into a structure
%That's what you have y=1:10 s.date=y %result s = date: [1 2 3 4 5 6 7 8 9 10] %and you want s=struc...

13 years ago | 0

Answered
Numerical derivative in matlab
If you have a series of data t=[0 1 2 3 4 5] % Vector time y=[1 2 4 8 12 13] % Your signal % The derivative can be app...

13 years ago | 4

| accepted

Answered
Extract number from data file name
s={'Data_T2_31_4c_comb_1_9-10-11-12.mat' 'Data_T2_31_4c_comb_2_9-10-11-13.mat'} out=regexp(s,'\d+','match') out=str2dou...

13 years ago | 5

| accepted

Answered
How do you replace letters so that they are not the same as the original?
s='elephant' alf=setdiff('a':'z','ae') s(ismember(s,'ae'))=alf(randperm(numel(alf),3)) % In the previous the 3 letters ...

13 years ago | 0

| accepted

Answered
Error using ==> sprintf
Replace z by z{1} (because z is a cell array) message = sprintf('The name is: %s \n Marks : %.1f \n Aggregate is : %.1f \n ...

13 years ago | 0

| accepted

Load more