Answered
How to clear the variables used in GUI??
clearvars v1 v2 v3

14 years ago | 0

| accepted

Answered
Does Matlab support strcpy?
strcpy is not a matlab function, and it should give an error, how are you using it?

14 years ago | 0

Answered
I have four 1x50 matrices and I want to save them to one 4x50 matrix. How can I do this?
for k=1:50 title{k}=sprintf('title%d',k) end a=rand(1,50); b=rand(1,50); c=rand(1,50); d=rand(1,50); M=[title;num2...

14 years ago | 0

| accepted

Answered
how to define face affine matrix
face={'face1','face2','face3'} x=1:3 % corresponding to face1,face2 and face3 y=1:3 %corresponding to face1, face2 and f...

14 years ago | 0

Answered
Having trouble getting the plot
|factorial(n)| is an array then you have to use ./ instead of / amplitude = (N.^n)*exp(-N)./(factorial(n))

14 years ago | 0

Answered
How can use isempty function or another function in matlab??
if ~isempty(x) % your code else % end

14 years ago | 1

| accepted

Answered
How do I find a min/max value within a defined range for each column of a matrix?
x=rand(513,86); a=x(200:400,:); min1=min(a(:)) max1=max(a(:))

14 years ago | 2

Answered
Why can't Matlab calculate a(0)
It's just how Matlab works, allows only positive integer or logical index. You can resolve the problem, for example for k=...

14 years ago | 1

| accepted

Answered
starting Simulink -- the output from Repeat and Integrate blocks
If you want to check your model, add a to, workspace block, repeat your sequence 2 times, and 4 times, then compare your two y

14 years ago | 0

Answered
Can't Figure out where I have gone wrong, could use some help please
What gender = ('male','female') degree = ('BS','MS','PhD') is doing in your code?

14 years ago | 0

Answered
How to group and convert to decimal?
x=[ 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1] x=num2str(x) x(x==' ')=[]; y=reshape(x,[],8); out=bin2dec(y)

14 years ago | 2

| accepted

Answered
How to change the specified part of URL when I use MatLab's web function?
Part='1583859' web(['http://www.thisismoney.co.uk/money/saving/article-',Part,'/'])

14 years ago | 0

| accepted

Answered
How do I use logical indexing on an array made up of structs that contain character fields?
x={A.type} A(strcmp(x, 'insect')).specie

14 years ago | 3

| accepted

Answered
Matlab no longer running scripts
Close your Matlab session, then reopen it

14 years ago | 1

Answered
Show tick marks above plot
Use a=xlim; set(gca,'xlabel',linspace(a(1),a(2),8)) %do the same for ylabel and zlabel

14 years ago | 0

Answered
Deleting line containing symbol.
E={'| 00:00 | A| | A| A| A|' '| 00:15 | 1.21 | | 1.34 | 1.42 | 1.34 |' '| 00:30 | 1.42 | | 1.76 | 1.34 | 1.45 |' '|...

14 years ago | 0

| accepted

Answered
Replacing string variables that satisfy some criteria by other string variables
AW={'derf','wedgrdt','ftervd','lofwfr'} AWnew={'AW3', 'AW2', 'AW5','AW8'}; for k=1:numel(AW) Matrix(find(strcmp(Matrix,...

14 years ago | 0

| accepted

Answered
Deleting line containing symbol.
E='assA|stA|' idx=regexp(E,'A|') E(idx+1)=[]

14 years ago | 0

Answered
How to prevent the function within a Timer to keep displaying the answer in Command Windows?
Try a=MyFuc(Input); set(handles.edit3,'String',num2str(a)); tmr=timer('Period',10,'ExecutionMode','FixedRate',... ...

14 years ago | 0

Answered
how to write variables in a functions workspace by assignin
dummy=20 k=3; assignin('base',sprintf('h_ann%d',k),dummy)

14 years ago | 0

Answered
Converting 1*4 array into 1*1
a=[1 2 3 4]; b=num2str(a); b(b==' ')=[]; out=str2num(b)

14 years ago | 0

| accepted

Answered
How can i define a parameter with if condition?
You have to initialize y y=0 %for example %or maybe in the last else you wanted y=x then x = normrnd(140,10...

14 years ago | 0

| accepted

Answered
save more than one image in a matfile
Saving your first image im1={imread('first_image')} save yourfile im1 Adding a new image im1=imread('news_image') ...

14 years ago | 1

Answered
Does matlab have data type of sym?
clear syms a class(a) The class of a is sym, not char

14 years ago | 0

| accepted

Answered
Form a matrix from a structure
Try x(1,1).data=1; x(1,2).data=[2 1]; x(2,1).data=rand(2); x(2,2).data=[1;2]; out=struct2cell(x); out(:)

14 years ago | 1

| accepted

Answered
How to convert 16 X 2 char into a String?
Ok, I did not read your edit, try this x='69 C4 E0 D8 6A 7B 04 30 D8 CD B7 80 70 B4 C5 5A'; x=regexp(x,' ','split')

14 years ago | 0

Answered
How to convert 16 X 2 char into a String?
x='69 C4 E0 D8 6A 7B 04 30 D8 CD B7 80 70 B4 C5 5A'; x(regexp(x,' '))=[]

14 years ago | 0

Answered
how to implement ordinary differential equation in Simulink ?
Use *derivative* , *sum* , *prod* , *gain* , *constant* and *step* blocks. you will need also, a *source* block to your perturb...

14 years ago | 0

| accepted

Answered
How can I write a program and plot a 3-D graph?
x=1:5;y=1:4; % Example [x1,y1]=meshgrid(x,y) z=x1+y1 mesh(x1,y1,z) %or plot3(x1(:),y1(:),z(:))

14 years ago | 0

| accepted

Answered
Saving values in a matrix
n=0; A=zeros(10); k=0; while(n<10) f=0; n=n+1; while(f<10) f=f+1; k=k+1; A(n,f)=k...

14 years ago | 0

Load more