photo

Iman Ansari


Last seen: plus de 3 ans il y a Actif depuis 2013

Followers: 0   Following: 0

Message

Statistiques

All
MATLAB Answers

1 Question
107 Réponses

Cody

0 Problèmes
75 Solutions

RANG
289
of 300 753

RÉPUTATION
305

CONTRIBUTIONS
1 Question
107 Réponses

ACCEPTATION DE VOS RÉPONSES
0.0%

VOTES REÇUS
41

RANG
 of 21 075

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG
9 214
of 170 858

CONTRIBUTIONS
0 Problèmes
75 Solutions

SCORE
760

NOMBRE DE BADGES
2

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • First Review
  • 3 Month Streak
  • Knowledgeable Level 4
  • First Answer
  • Promoter
  • Solver

Afficher les badges

Feeds

Afficher par

Question


A problem in using imhist to display histogram of indexed image
First i convert the image to an indexed image, and use only 5 colors to show what is my problem. clear img = imrea...

presque 10 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
When i make simulation, the plot at workspace is different the plot at scope?? .. I want the plot at workspace same as the plot at scope
Hi Use simulation time vector to plot in command widow, maybe the simulation ran with variable steps. Something like this: ...

plus de 10 ans il y a | 0

| A accepté

Réponse apportée
use evalfis to read input under a range
In your code, input isn't same as [88 134 144]. They are logical (0,1): evalfis([88 134 144]) but: evalfis([0 1 1...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Open many files using uiopen or uigetfile
filename = uigetfile('*.*', 'All Files (*.*)','MultiSelect','on');

plus de 12 ans il y a | 1

| A accepté

A résolu


Create an 8-color version of an image
This problem was inspired by a tweet I saw from @MATLAB regarding <http://www.mathworks.com/matlabcentral/fileexchange/37816-the...

plus de 12 ans il y a

Réponse apportée
How to use find function in cell array
C = {100*rand(100,2);100*rand(100,2);100*rand(100,2)}; X = cellfun(@(x) find(x(:,1)<27),C,'Un',0);

plus de 12 ans il y a | 0

Réponse apportée
A moving point plot in MATLAB figure with animation.
n = 50; XY = 10 * rand(2,n) - 5; for i=1:n plot(XY(1,i),XY(2,i),'or','MarkerSize',5,'MarkerFaceColor','r') ...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
Generate gaussian random points in 3D space with a given mean position.
m = [2 0 2]; s = 1; n = bsxfun(@plus,m,s.*randn(100,3)); plot3(n(:,1),n(:,2),n(:,3),'.r') M = mean(n,1) S =...

plus de 12 ans il y a | 2

Réponse apportée
Write in Excel With Matlab on continues Cells
First put your data in a cell array then write it: rangT = 1:10; maximox = rand(10,10); fprintf('Select file locati...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
how to eliminate the error
@time ===> @times s1.coefs=bsxfun(@times,s1.coefs(:,1:end-1),s1.order:-1:1)

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
how to draw a temperature distribution on (x,y,z)?
t defines color: [x y] = meshgrid(-10:0.1:10); z =zeros(size(x)); z(x+2*y>-9 & 2*x+y<9 & x-y>-10 & x-y<15) = 1; ...

plus de 12 ans il y a | 0

Réponse apportée
Stor data in a vector
p_t2=1:1000 pt2=1:40 JJ=[]; for z=1:40 for v=1:25 XX=p_t2(v)./pt2; JJ=[JJ sum(XX)]; ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
im trying to make array of images s1,s2,s3 and s4 and want to show them in different figures ........... what is wrong over there? .........
clear arr={s1,s2,s3,s4}; for i=1:4 b=imread(arr{i}); figure imshow(b); end

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
how to use "if" statement properly?
A=rand(10,1); B=rand(10,1); z=B./A; z(z<1)=-1./z(z<1)

plus de 12 ans il y a | 1

Réponse apportée
how to draw circles with different radii
n=10; X=rand(n,1)*10; Y=rand(n,1)*10; R=rand(n,1)*3; P=[0:0.1:2*pi 0]; xr=R*cos(P); yr=R*sin(P); X_C=bsxf...

plus de 12 ans il y a | 1

Réponse apportée
inverse laplace transformation and plot of transfer function
Why residue(b,roots(a))? b=[0,-1.387778780781446e-017, -2.775557561562891e-017, 3.333333333333329e-005]; a=[1.0000000000...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Getting element row and column (index location) out of a matrix?
Resultant=rand(10,10); [B,IX] = sort(Resultant(:),'descend') [r c] = ind2sub(size(Resultant),IX(1:5))

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
histogram of 3D intensity image and normalize the intensity by linearly fitting the histogram to the ICBM-152
A=uint8(randi(256,256,124,256)-1); H1=imhist(A(:)); % Or %H2=histc(A(:),0:255); B=imread('cameraman.tif'); ...

plus de 12 ans il y a | 0

A résolu


Distance walked 3D
suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

plus de 12 ans il y a

A résolu


Omit columns averages from a matrix
Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

plus de 12 ans il y a

A résolu


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

plus de 12 ans il y a

A résolu


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

plus de 12 ans il y a

Réponse apportée
Organize data as vector matrix and do calculation ?
lightV = zeros(1, 1, 3); lightV(1,1,1) = 0.5; lightV(1,1,2) = 0.4; lightV(1,1,3) = 0.7; [Az El] = meshgrid(0:60:36...

plus de 12 ans il y a | 0

Réponse apportée
Howto arrange panels in desktop
After adding editor panel in position [1,2], drag workspace panel and drop it in right half of editor panel: <<http://snag.g...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Export to a fixed width text file
A={'s09' 1111222003 321 'P' 'ehz';'z09' 1011222003 321 'O' 'edz'}; A=cellfun(@num2str,A,'Un',false) B=strcat(A(:,1),{' ...

plus de 12 ans il y a | 0

Réponse apportée
horzcat error while using ' '
names=['john'; 'ravi'; 'mary'; 'xiao'] howdy=['10'; '20'; '30' ;'40'] result=[names repmat(' ',4,1) howdy]

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to evaluate dirac function in matlab?
syms x; y=diff(dirac(x),x) subs(y,1)

plus de 12 ans il y a | 1

A résolu


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

plus de 12 ans il y a

A résolu


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

plus de 12 ans il y a

A résolu


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

plus de 12 ans il y a

Charger plus