Answered
Use text concatenated with GUI variable in filename
The filename with |:| is not valid try id = get(handles.patientid,'String'); filename = strcat(id,datestr(now,'dd-mm-yy...

12 years ago | 0

Answered
Writing Cell Arrays to Excel
% Look at this example n=79; v={'h1' 'h2' 'h3' 'h4';'a' 'b' rand(n,1) rand(n,1)} % Your cell array h=v(1,:) a=[v(2...

12 years ago | 0

| accepted

Answered
how to take image as a user input from folder?
You can use uigetfile and copyfile functions

12 years ago | 0

| accepted

Answered
How to set the properties...
*Edit* set(gca,'yticklabel',{'25' '26' '27'}) set(gca,'xticklabel',{'0' '1' '2' '3' '4' '5'})

12 years ago | 0

Answered
Assignment help... Inputting double array into function.
If you want to use vectors as input argument, replace |*| by |.*| and |^| by |.^| function [ S , V ] = myCylinder( R,H )...

12 years ago | 0

| accepted

Answered
transforming some cells having 2-dimensional matrics to 3-dimensional matrics
A=cellfun(@(x) ones(16,5)*999999,A,'un',0) ;% Example out=cellfun(@(x) reshape(x,4,1,[]),A,'un',0)

12 years ago | 0

| accepted

Answered
Compare two eeg signals
You can do simple comparison s=sign(y1-y2); %For a specific comparison, you have to tell us what are your criterion

12 years ago | 0

Answered
Problem with importdata while retrieving string from txt file.
v=importdata(FileName1) num=v.data % Your numeric data text1=v.textdata

12 years ago | 0

| accepted

Answered
limit computation time of a simulink simulation
You can control your simulink model by using a set_param command. set_param('your_simulink_model_name', 'SimulationCommand'...

12 years ago | 0

| accepted

Answered
Retrieving data from txt file.
[FileName1,PathName] = uigetfile('*.xlsx','Select the excel file') [num,txt1,raw] = xlsread(fullfile(PathName,FileName1)) ...

12 years ago | 0

| accepted

Answered
Plotting 3D with points id.
point_id={'n1','n2','n3','n4'} x=[100,115,120,130] y=[250,267,288,310] z=[50,54,68,72] scatter3(x,y,z) for k=1:numel(x) ...

12 years ago | 0

Answered
insert string in a numerical vector
n=length(A); k=100; B=num2cell(A); for i=1:n if A(i)<k B{i}= 'wrong'; end end

12 years ago | 0

Answered
How to select the combinations without repetitions in a matrix?
[ii,jj]=unique(sort(A,2),'rows','stable') B=A(jj,:)

12 years ago | 1

| accepted

Answered
Specifying properties of a subplot
t=0:.1:10; y=sin(t); figure(1) sp_v=1; % vertical space sp_h=0.25; % horizontal space w=4; % width h=2.5; % height ma...

12 years ago | 0

Answered
how to resolve this error?
That means the value of |i| exceeds the number of element in |imgNameList| . you can check it by typing size(imgNameList) ...

12 years ago | 0

| accepted

Answered
Answer format of "solve"
sol=solve(your_equation) double(sol)

12 years ago | 4

Answered
concatenate each element of two arrays
A=['a' 'b' 'c']; B = ['1' '2']; [ii,jj]=ndgrid(1:numel(A),1:numel(B)); out=arrayfun(@(x,y) [A(y) B(x)],jj(:),ii(:),'un',0)...

12 years ago | 3

| accepted

Answered
Replace zero in a matrix with value in previous row
A=[1 2 3 4;4 5 0 0;1 0 0 1 ;0 1 1 1] while any(A(:)==0) ii1=A==0; ii2=circshift(ii1,[-1 0]); A(ii1)=A(ii2); ...

12 years ago | 1

| accepted

Answered
-HOW TO CORRECT THIS TYPE OF ERROR
The answer is in the error message: Undefined function or variable 'Ts' In Matlab worksapce give a value to Ts

12 years ago | 0

| accepted

Answered
Cells in MatLab R2013a?
doc cell

12 years ago | 0

Answered
How can I can I create a square diagonal matrix and insert variables into it?
A=zeros(6) [n,m]=size(A); idx=sub2ind([n m],1:n,n:-1:1) x=5; y=10; A(idx)=[x x x y y y ]

12 years ago | 1

| accepted

Answered
How Extract a value into a cell?
For your case A1=num2cell(rand(10,3)) A1{2}-A1{1} For another column n n=2 A1{2,n}-A1{1,n}

12 years ago | 0

| accepted

Answered
How can I call the properties of figure with more than 1 graph in it?
t=0:0.1:10; y1=sin(t) y2=cos(t) h=plot(t,y1,t,y2) set(h(1),'linewidth',12) % h(1) and h(2) are handles of plot 1 and p...

12 years ago | 0

Answered
Bar plot problem with legend
A1 =1.0e-013 *[ 0.1481 0.1574 0.1465 0.1481 0.1574 0.1465 0.1481 0.1574] A2= 1.0e-013 *[0.1250 0.1523...

12 years ago | 0

| accepted

Answered
Extract data from cell array
Look at this example y={rand(1,3) rand(1,3) rand(1,3) rand(1,3) rand(1,3)} y([2 3]) You can have cell2mat(y([2 3])...

12 years ago | 3

| accepted

Answered
how to read excel data
To get numerical data v=xlsread('your_file.xlsx')

12 years ago | 0

Answered
calculate the integral of sin of x
The integral of sin(x) is -cos(x).

12 years ago | 0

Answered
How to prevent user from changing directory using uiputfile
You can use Listdlg function folder='E:\matlab'; d=dir([folder '\*.m']); f={d.name}; a=listdlg('PromptString','Select a ...

12 years ago | 0

Answered
How to prevent user from changing directory using uiputfile
folder='E:\matlab'; fol=''; while ~isequal(folder,fol) [fil,fol]=uigetfile(folder,message) end

12 years ago | 0

Answered
Passing variables in a GUI
In your function arguments, add a variable |handles|. for example function y=fcn1(a,b,handles)

12 years ago | 0

Load more