Answered
problem with reading ASCII file
fid=fopen('fic.txt') out=textscan(fid,'%s %f','delimiter',',','headerlines',1) fclose(fid) datetime=out{1} temp=out{2}

11 years ago | 0

| accepted

Answered
Can I get he frequency of each value in a vector without a loop?
out=hist(aa,UniqVal)

11 years ago | 0

| accepted

Answered
if any variables empty in workspace, continue?
you can use while loop while isempty(anyvar) your code end

11 years ago | 0

| accepted

Answered
I need to sort scalars. Is that possible?
x=[1 2 3 0 5 10 ] x1=sort(diff(x))

11 years ago | 1

Answered
how to use cell function to convert string to number
a = { 'a' '0' ; 'b' '1' ; 'c' '2' ; 'd' '3'} a(:,2)=cellfun(@str2double,a(:,2),'un',0)

11 years ago | 0

Answered
Write specific data of the specific lines of a text file into a matrix
fid=fopen('fic.txt'); l=fgetl(fid); k=1; while ischar(l) r{k}=l; k=k+1; l=fgetl(fid); end fclose(fid); id...

11 years ago | 0

Answered
Format a Column in Excel using matlab programmatically
datestr(yourdate)

11 years ago | 0

Answered
How to plot the sums of the columns in a matrix using a for loop?
for i=1:201 A(i)=sum(J(:,i)); B(i)=i; end plot(B,A)

11 years ago | 0

| accepted

Answered
string of binary to letters??
bin=[0 0 1 0 1 0;1 0 0 1 0 1] a=cellstr(num2str(bin)), bina=strrep(a,' ','')

11 years ago | 0

| accepted

Answered
i have a signal and i want to get the FFT for this signal?
You can <http://www.mathworks.com/help/matlab/ref/fft.html fft function>

11 years ago | 0

Answered
Matching the first two words
A={'American Express Corporation','American1 Express Corporation','American2 Express Corporation'} B={'AMERICAN EXPRESS CO','...

11 years ago | 0

| accepted

Answered
Matlab general question ("while" function)
While the condition y>2 is true, Matlab will stay in the loop. When the condition y>2 becomes false, Matlab leaves the loop

11 years ago | 0

Answered
reading multiple excel files
folder='E:\fold1' d=dir(folder) e={d.name} f=e(~cellfun(@isempty,regexp(e,'.+(?=\.xlsx)','match'))) for k=1:numel(f)-1 ...

11 years ago | 0

| accepted

Answered
Can I use Visual Studio 2013 with MATLAB R2011a unofficially?
<http://www.mathworks.com/support/compilers/R2011a/win32.html>

11 years ago | 0

| accepted

Answered
average curve of 10 plots
Read the data from your Excell file, I suppose you have a nx10 matrix M=rand(20,10)% Example A=mean(M,2) plot(A)

11 years ago | 0

Answered
How to convert Binary image into a text file ?
dlmwrite(Text_FileName,Your_Image)

11 years ago | 0

Answered
How to find some specific values of an array in another matrix ?
x=[ 2 10 3 20 7 30 8 40] y= [2 0.2 3 0.3 4 0.2 5 0.2 6 0.2 7 0.5 8 0.6 9 0.2] result_y1=y(...

11 years ago | 1

| accepted

Answered
Hye Everyone. im newbie in matlab, then i want to ask you all about the simple question.
You can save your data in a mat-file v=[1 2 3;4 5 6] % Example save filename v To load them use load function

11 years ago | 0

Answered
How to convert a cell array to a double array
v={1;2 ;3} out=cell2mat(v)

11 years ago | 0

| accepted

Answered
how to pass variable from popup menu to button?
<http://www.mathworks.com/help/matlab/ref/guidata.html>

11 years ago | 0

Answered
Find elements in table without looping (Matlab)
v={'ID' 'var1' 'var2' ;'DHK' 12 14; 'ABC',15 20;'DHK',15 13} w=cell2table(v(2:end,:),'variablenames',v(1,:)) % Example o...

11 years ago | 3

| accepted

Answered
How can transform matrix???
[n,m]=size(A) C=reshape(B(sub2ind([n,m],(1:n)'*ones(1,m),A)),n,m)

11 years ago | 0

| accepted

Answered
HI, i want to plot x=sin(t*pi) fuction like this picture for t[0:1:24] and x will be 0 when t=17
t=0:0.01:24 y=sin(t*pi).*(t<17) plot(t,y)

11 years ago | 3

Answered
help for matrix manipulation with loop
[zeros(3);eye(3)]

11 years ago | 0

| accepted

Answered
finding the frequency of a series of numbers in an array
data=[1,1,1,2,2,3,3,3,4,4,3,3,5,5,5,6,7,8,9,9,9,1,1,1,1,10,10,1,1,1,2,2,2,2,1]; ii=unique(data); for k=1:numel(ii) a=da...

11 years ago | 0

Answered
simulink problem: a red wire appears rather than a simple one when tried to connect 'scope' to a simple circuit
<http://www.mathworks.com/help/physmod/sps/powersys/ug/building-and-simulating-a-simple-circuit.html#f10-23215 Interfacing the E...

11 years ago | 0

| accepted

Answered
search for substring in cell array of strings
A = { 'This is how we do the shuffle', 'All night long there', 'In the club'} idx=find(cellfun(@isempty,regexp(A,'the(\s)+','...

11 years ago | 2

Answered
i have two simulink files how to plot the results in one file so that i can compare both the results
Simulate your two models then compare your results. you can use the <http://www.mathworks.com/help/simulink/slref/toworkspace.ht...

11 years ago | 0

Answered
Converting entire cell array to strings
x={'words',10,20,30,'more words'} out=cellfun(@num2str,x,'un',0)

11 years ago | 6

| accepted

Load more