Answered
How can I add "Edit plot" to tool bar in my own GUI
In your gui figure there is an icone called <http://www.mathworks.com/help/matlab/creating_guis/creating-toolbars.html toolbar e...

13 years ago | 0

Answered
Save Variable in Command Window
prompt = 'Enter the path:'; path = input(prompt,'s') %path is saved as a string. What do you need more?

13 years ago | 0

| accepted

Answered
Save Figures to One Folder
figure; h(1)=plot(x,y) figure; h(2)=plot(x,z) figure; h(3)=plot(x,a) figure; h(4)=plot(x,b) figure; h(5)=plot(x,c) f...

13 years ago | 1

| accepted

Answered
prelocation of array entries
A = [2 4 6 8] B=cell2mat(arrayfun(@(x) [x-1 x x+1],A,'un',0)) %or B=[A-1; A ;A+1] B=B(:)'

13 years ago | 0

| accepted

Answered
Substitute all solutions of a give system of equations.
syms x y eqs=[x^2-1,y^2-1] sol=solve(eqs) M=[sol.x sol.y]

13 years ago | 0

| accepted

Answered
how can I solve this symbolic expression??
sol=solve(ess-0.1,K)

13 years ago | 0

| accepted

Answered
bode plot of 1/(s^0.5+1) or any other fractional order transfer function
If H(s)= 4/(2s+1) your_model=tf(4,[2 1]) bode(your_model)

13 years ago | 0

Answered
Rearrange matrix elements accordi a given set of data
d=cell2mat(arrayfun(@(x) c(index(:,x),x),1:size(c,2),'un',0)) %or a = [3 2 5 6 1 4 1 ...

13 years ago | 0

Answered
Write a date loop in matlab
d1=datenum('1926-11-03','yyyy-mm-dd'), d2=datenum('2012-12-31','yyyy-mm-dd'), d=d1:d2 for k=1:numel(d) %do end

13 years ago | 0

| accepted

Answered
Initializing some variables in base workspace when running simulink model
You can use <http://www.mathworks.com/help/simulink/ug/model-callbacks.html model callbacks> and initialize your parameters in i...

13 years ago | 1

| accepted

Answered
How to call the axes into push button in GUI?
To display your image use imshow(handles.input_image);

13 years ago | 0

| accepted

Answered
How to bring signals of uneven sizes to the same size?
x(end)=[]; y(end+1:15000)=0; z(end+1:15000)=0;

13 years ago | 0

| accepted

Answered
How can I get fprintf to show plus sign in front of positive numbers ?
s=sprintf('%4.2f + %4.2fX1 + %4.2fX2 + %4.2fX1^2 + %4.2fX1X2 + %4.2fX2^2 \n \n',a1 ,a2 ,a3 ,a4 ,a5 ,a6) regexprep(s,'+ -','-'...

13 years ago | 0

Answered
Getting an error after rounding data.
After filtered_hand = sprintf('%6.3f',filtered_hand) filtered_hand becomes a string If you want to round to 3 decimals...

13 years ago | 0

Answered
create plot with two different y axis
you can use plotyy function plotyy(x,y1,x,y2)

13 years ago | 0

| accepted

Answered
How to plot the same function several times with several different angles
x1=[32.1, 46, 81] x= 0:0.001:0.2 y=sin(bsxfun(@times,x',x1)) plot(x,y)

13 years ago | 0

Answered
how to insert and refresh website to matlab
web('www.yahoo.fr')

13 years ago | 0

Answered
mean of cell array with different size
out=cellfun(@mean,yourcellarray,'un',0)

13 years ago | 1

Answered
appending or padding zeros before a matrix in matlab
Maybe you did not correctly concatenate them? u=[1 0 1 1] u1=[zeros(1,7) u]

13 years ago | 0

| accepted

Answered
how do i sort a single row in terms of descending terms
[a,b,c]=xlsread('yourfile.xls') out=sortrows(c,-1)

13 years ago | 0

Answered
Simple array outputing the same number of length(n)
A=0.25*ones(1,20)

13 years ago | 0

| accepted

Answered
Find Function gives empty matrix
a=0:0.1:90 V=find(a==0.1*34)

13 years ago | 0

| accepted

Answered
How to divide image into three equal parts?
[n,m]=size(im) % im is your image id=fix(n/3) im1=im(1:id,:); im2=im(id+1:2*id,:); im3=im(2*id+1:n,:);

13 years ago | 3

| accepted

Answered
How to correct ??? Error using ==> times Matrix dimensions must agree? plz help me?
You can not use beta'.*beta It should be beta.*beta %Or beta'*beta

13 years ago | 0

Answered
Generating Discrete time Rectangular wave
t=-10:0.01:10; y=heaviside(t+5)-heaviside(t-5), plot(t,y)

13 years ago | 0

Answered
Simulink - sum of elements in exact time
Use a discrete transfer function bloc set to: Numerator=1 Denominator=[1 -1] sample time=1

13 years ago | 0

| accepted

Answered
random vectorof zeros and 1
A=zeros(1,1000) A(randperm(1000,300))=1

13 years ago | 0

| accepted

Answered
How do I plot these two graphs with the array/set of inputs?
%Question 1 - plotting five trajectories corresponding to % Theta = 0.4, 0.6, pi/4, 1.0, 1.2 clc; clear; V = 120 theta ...

13 years ago | 0

| accepted

Answered
initializing simulink parameters from simulink
You can use <http://www.mathworks.com/help/simulink/ug/annotating-diagrams.html#bqgu7ay annotations>

13 years ago | 0

Answered
Join matrices in for loop
files=dir('*.csv'); A=[]; for i=1:length(files) fid(i)=fopen(files(i).name); files(i).values=textscan(fid(i), '%f ...

13 years ago | 0

| accepted

Load more