Answered
Parsing default function arguments: why isn't it better???
You have described a simple case, what if the situation is more complicated?

12 years ago | 0

Answered
demande de prix complet du logiciel Matlab
Vous trouverez sur ce site <http://www.mathworks.com/products/matlab/> les contacts qui vous indiqueront les prix de tous les to...

12 years ago | 0

Answered
problem with the setdiff function
Read this <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F>

12 years ago | 0

| accepted

Answered
how to get the first 3 characters of each element in a cell to another cell
out=cellfun(@(x) x{1},regexp(filename,'[^\.]+(?=\.(.+))','match'),'un',0)

12 years ago | 0

Answered
convert double matrix to string
B=arrayfun(@num2str,A,'un',0)

12 years ago | 2

| accepted

Answered
Nested loop error help
*EDIT* b = zeros(51,11); for i = 0:0.01:0.5 for j = 0:0.1:1 a = (2*i)+j; p = round((j/0.1)+1); q =...

12 years ago | 0

| accepted

Answered
pass struct of variables to Simulink via gui
function pbuttonStart_Callback(hObject, eventdata, handles) open_system('RakeGAIN16QAM.mdl'); set_param('RakeGAIN16QAM','ini...

12 years ago | 0

| accepted

Answered
error: assignment dimension mismatch
Try clear G G(:,:,2) = I(:,:,2); G(:,:,1) = 0; G(:,:,3) = 0;

12 years ago | 1

| accepted

Answered
How to append data inbetween the Array without overwriting its original data ?
[n,m]=size(A) B=permute(reshape([A;log(A);exp(A)]',m,n,3),[2 1 3]) out=reshape(B(:,:)',m,[])'

12 years ago | 0

| accepted

Answered
Multiply each slice of 3d matrix with 2d matrix
A=rand(11,10,32); b=rand(32,8760); AA=permute(A,[1 3 2]) for k=1:size(AA,3) out{k,1}=AA(:,:,k)*b; end out1=cel...

12 years ago | 0

Answered
how to calculate no of 1 present in binary matrix in matalb
not(A) % Example A=[1 0; 0 0] B=not(A) B= [0 1 1 1] % or maybe you mean number by no out=sum(A(:...

12 years ago | 0

Answered
problem with reading and writing image
It's imwrite (I, fileName, 'jpg'); or imwrite (I, [fileName '.jpg']); or fileName = sprintf('C:\\result\...

12 years ago | 1

| accepted

Answered
How to plot a circle with radius and coordinates?
Your code is correct, check if your function is saved in the current folder

12 years ago | 0

| accepted

Answered
How can I write the following matrix?
out=[x.^2 x.*y y.^2.*x ones(10,1)] % x and y are column vextors

12 years ago | 0

Answered
How an array with 'n' elements, and replicate each element 'm' times and then replace it in the array ?
A= [1 -1 1 1 -1 -1 -1 1 1 -1], B=repmat(A,3,1); B=B(:)' %or A= [1 -1 1 1 -1 -1 -1 1 1 -1], B=reshape(repmat(A...

12 years ago | 1

| accepted

Answered
No help found for myfunc.m?
Check if your function is in the current folder

12 years ago | 1

Answered
How I chance the bars colors?
c(1,:)=[0 0 1] % blue color c(2,:)=[1 0 0] % red c(3,:)=[0 1 0] % green y=[185 145 30;123 100 14 ;65 67 NaN]; h=bar(y,...

12 years ago | 0

| accepted

Answered
how to build a custom signal generator??
you can use a Matlab Function block

12 years ago | 0

| accepted

Answered
complex number root solving
sols=roots([ 1 0 -i]) %or sols=double(solve('z^2-i'))

12 years ago | 1

| accepted

Answered
Need help with simulink
What you need is to find the mathematical model representing your system. After you can simulate your model with Simulink

12 years ago | 0

Answered
In an assignment A(I) = B, the number of elements in B and I must be the same.
Use cell array format long e %poissons ratio pm=0.3 % eleastic modulus :E Em=29e6; %plate thickness t=0.005; % n...

12 years ago | 0

| accepted

Answered
writing cellArray to txt file.
cellArray={'p1' [400] [500] [600] 'p2' [650.45] [400.78] [390.90] [ ...

12 years ago | 0

| accepted

Answered
storing variables using " To Workspace"
In to workspace block set *save format* to array

12 years ago | 0

| accepted

Answered
Convert Matrix to binary format
out=your_array>0.1

12 years ago | 2

| accepted

Answered
Divide vectors of different lengths?
a=[1 2] b=[1 2 3 4] out=bsxfun(@rdivide,a.',b)

12 years ago | 0

| accepted

Answered
Repeated Values in matrix
v=[1 2;1 3;4 5;4 20;10 30] [ii,jj,kk]=unique(v(:,1)) out=[ii accumarray(kk,v(:,2),[],@max)]

12 years ago | 0

Answered
how to read a matrix numbers one by one in simulink
You can use a from workspace block

12 years ago | 0

| accepted

Answered
Construct adjacency list from an adjacency matrix
A =[0 1 1;1 0 0; 1 0 0] B=cellfun(@(x) find(x),num2cell(A,2),'un',0) celldisp(B)

12 years ago | 1

Answered
How to convert 3D matrix to 2D with a specific format
A=rand(1000,64,10); B=permute(A,[ 2 1 3]); out=B(:,:)'

12 years ago | 0

Answered
1x4 matrix assigning values to a variable
x=b(find(b>1)) x contains all what you want. Why do you want to creates the variables a1, a2, ...? Read this link <ht...

12 years ago | 0

Load more