Réponse apportée
picking rows which has negative element.
Hi a=randn([5 5])+1 Nrows=sum(a<0,2); a(Nrows>0,:)

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to create noise manually to a color image without imnoise function explain with example?
Hi. For gaussian noise with standard deviation of S: clear S = 20; I = imread('peppers.png'); J = double(I) + S.*r...

plus de 13 ans il y a | 1

Réponse apportée
Loop to generate n random series (filling a matrix?)
Maybe this: for i=1:1000 x(:,i)=simBM(n,delta,mu,sigma); end

plus de 13 ans il y a | 0

Réponse apportée
how can i check that my image is rgb
Hi if size(a,3)==3

plus de 13 ans il y a | 8

| A accepté

Réponse apportée
how to make a single plot with different colors?
Hi x=1:10; y=1:10; plot(x(1:5),y(1:5),'r') hold on plot(x(5:10),y(5:10),'g')

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Problem with implementing RLC function...
Hi img =[1 1 0 0 0 1 0 1 1 1 0 0 1 1 0 1 0 1 ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Issue with writing multiple variable to excel sheet
Hi a=[1 1 1]; b={'name'}; xlswrite('New.xlsx',a,1,'A1') xlswrite('New.xlsx',b,1,'D1')

plus de 13 ans il y a | 0

Réponse apportée
How to get tau for every c and plot a c vs tau graph
Hi clc clear close all r=3.3; K=898; alpha=0.045; d=1.06; h=0.0437; theta=0.215; ...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
while loop question number 2
Hi A=[ 79, 970108, 1, 5, 0.088, 6.383 79, 970108, 1, 25, 0.075, 4.380 79, 970108, 1, 45, 0.094, 0.7...

plus de 13 ans il y a | 1

Réponse apportée
To find aspect ratio of an image using matlab
Hi. I think n/m: E = imread('peppers.png'); m=size(E,1); n=size(E,2); AR=n/m

plus de 13 ans il y a | 0

Réponse apportée
How do I reduce an {nxm(3x1)} cell to a an {nx{3xm}} cell?
Hi New_Cell={}; for i=1:n New_Cell{i,1}=cell2mat(C(i,:)); end

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to write out multiple mat files, for some kind of regression suite testing?
Hi Diff_Freq_Array = [5, 8, 10, 12, 14]; for i = 1: length(Diff_Freq_Array) Freq = ((Diff_Freq_Array...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How do I create this vector: [10,8,10,8,10, ...]?
Hi a=zeros(1,100); a(1:2:99)=10; a(2:2:100)=8;

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
Fuzzy parameters in Fuzzy Interface Structure
Yes, and use centroid deffuzzification method to compute output. You can change the 'and', 'OR' ,... methods in FIS Properties ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How can I find the n smallest numbers in a two-dimensional array of m numbers?
Hi. n=4; a=[236 245 145 244 112; 225 232 266 111 212]; [r c]=size(a); a = a'; vector=a(:); [B,IX] = sort(vec...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
half of the progarm showing error
Hi. you need to correct these lines: c1=[c1 cc1c1c1c1c1c1c1c1 c1]; c2=cos(t2); c2=[c2 c2c2c2c2 c2]; I edited it...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to convert matlab program to simulink block.
You can use Matlab Function block: Simulink ===> User-Defined Functions ===> Matlab Function

plus de 13 ans il y a | 1

Réponse apportée
How do i read a string with a for loop.
Hi input = 'aaaaabaacaadaae'; n=1; for i=1:3:size(input,2) New{n}=input(i:min(i+2,size(input,2))); n=n+...

plus de 13 ans il y a | 0

Réponse apportée
avoid overwrite with xlswrite
Hi. You can use a number after your output file name: n=1; excelFileName=sprintf('sac_%d.xls',n); or excelFil...

plus de 13 ans il y a | 0

Réponse apportée
How do I specify the ranges of atan2?
I replaced x and y in atan2d: [x,y]=meshgrid(1:-0.1:-1); m = atan2d(x,-y)+180; mesh(x,y,m)

plus de 13 ans il y a | 0

Réponse apportée
how to write matlab code for moments?
You may need to convert your input image to double. In uint8 numbers greater than 255 became 255. function [M]= moments(I) ...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Need help with fractal tree plot.
Hi This works for r=1: %To run this file in the command window, call the function fractal_tree1 %and input the approp...

plus de 13 ans il y a | 1

Réponse apportée
Using a Symbolic Expression
Hi syms a b c; SymExpr = a*b*c; x=subs(SymExpr,[a b c],[1 2 3]) or syms a b c; SymExpr = a*b*c; a=1;b=2...

plus de 13 ans il y a | 1

Réponse apportée
How can i implement least squares of the difference between 2 matrices?
Hi Error= g-u; MSE=mean(Error(:).^2)

plus de 13 ans il y a | 0

Réponse apportée
while processing a code for Image enhnacement..i am getting the following error could you please explain..?
The error says why. Your input is not RGB. Try: size('your input')

plus de 13 ans il y a | 0

Réponse apportée
How to split and replace value of cell array ?
This code may help you: cell_array_1=cell_array(:,1:27); cell_array_2=cell_array(:,28:39); for i=1:39 for j=1...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Shifting operations and bitwise logical operations with binary numbers
a=200 b=dec2bin(200) c=shift(b,3)

plus de 13 ans il y a | 0

Réponse apportée
How to merge data in excel files?
Hi Data=xlsread('name.xlsx'); Data(isnan(Data))=0; for i=1:4 Output(:,i)=[i; sum(Data([false true true true],D...

plus de 13 ans il y a | 0

Réponse apportée
How to want to define a matrix whose name is a value of another variable
Hi V='abc'; u=rand(3);eval([V '=u']);

plus de 13 ans il y a | 0

Réponse apportée
Split array in sub arrays according to growing value in first row
Hi m=[1 1 1 2 3 3;randi(10,2,6)]; c={}; for i=min(m(1,:)):max(m(1,:)) c{i}=m(:,m(1,:)==i); end

plus de 13 ans il y a | 0

| A accepté

Charger plus