Answered
how to calculate parameter of a function
[x',-y']\(x'.*y');

5 years ago | 0

| accepted

Answered
Can't exit a for loop correctly
for num = index_peak-1:-1:1 if ODv(num) > ODv(num+1) baseline = ODv(num+1); break; end end Alterna...

5 years ago | 0

Answered
finding the corresponding value in a for loop
[~,idx]=max(sum(img597==0));

5 years ago | 0

| accepted

Answered
How can concatenate matrices with dimension expansion.
Why not 25x25x2? img(:,:,1) = imread('0.png'); img(:,:,2) = imread('1.png');

5 years ago | 1

Answered
Matrix Dimension Must Agree
theta = linspace(0,2*(pi),629); l = linspace((5.1)*lambda,(7.1)*lambda,629); Azimuth = linspace(0,2*(pi),629);%these all need ...

5 years ago | 0

Answered
Read table in .txt to MATLAB
t=readtable('Save_CdCl.txt'); alpha=t.alpha; names=t.Properties.VariableNames; for k=1:length(names) writetable(t(:,k),nam...

5 years ago | 0

Answered
How to use linspace on a matrix
yourMatrix=repmat(linspace(.8112,.6,100)',1,13);

5 years ago | 0

Answered
How do i save values for each iteration ?
a = [0.01 0.01 0.01 0.03 0.1 0.2 0.3 0.3 0.3 0.4 0.4 0.4 0.3 0.4 0.5 0.8 0.9 1...

5 years ago | 0

| accepted

Answered
Not enough input arguments
y =@(x)1./sqrt(1+x.^2)+exp(-x/5).*cos(sqrt(1+x.^2))-0.0486;%I would just use an anonymous function x=0:.01:10; plot(x,y(x));

5 years ago | 0

| accepted

Answered
Average values only next to each other in a matrix
I don't think there is an easy way, but a simple loop works. A = [ 62.9; 63; 83.10; 83; 43; 43; 63; 63.2; 83; 83; 62.90; 62.90 ...

5 years ago | 0

| accepted

Solved


Number Puzzle - 099

5 years ago

Solved


Number Puzzle - 117

5 years ago

Solved


Number Puzzle - 116

5 years ago

Solved


Number Puzzle - 115

5 years ago

Solved


Number Puzzle - 114

5 years ago

Solved


Number Puzzle - 113

5 years ago

Solved


Number Puzzle - 112

5 years ago

Solved


Number Puzzle - 111

5 years ago

Solved


Number Puzzle - 110

5 years ago

Solved


Number Puzzle - 109

5 years ago

Answered
How to change a value in one column dependent on another table column?
a=unique(table1.Var2); for k=1:length(a) b=find(table1.Var2==a(k)); for j=2:length(b) table1.Var1(b(j))=table1.Var1(...

5 years ago | 0

| accepted

Answered
adding noise to images
black=find(image==0); white=randperm(length(black),floor(x/100*length(black))); image(white)=uint8(255);

5 years ago | 0

Answered
Make if statement more readable
if numel(intersect(VID1{index(1)},VID2{index(2)}))||... numel(intersect(VID2{index(2)},VID3{index(3)}))||... n...

5 years ago | 0

| accepted

Answered
why is my plot not working
t=1:10; F=1./(4.^t)-1./(5.^t); plot(t,F);

5 years ago | 2

| accepted

Answered
How to call columns of matrices using 'for loop' ?
s=diag(S); for i=1:3 Approx(:,:,i)=U(:,i)*V(:,i)'*s(i);%I am assuming this is what you want, s(i) being scalar along the dia...

5 years ago | 0

Answered
How to split .mat file data into different variables?
a=readmatrix('yourData'); m=reshape(a,1024,[]);%why not just keep in a matrix that you can index into?

5 years ago | 0

| accepted

Answered
How to apply a colormap to rgb image ?
I=imread('Capture3.PNG'); I_gray= im2gray(I); imshow(I_gray); colormap('jet');

5 years ago | 1

Load more