Community Profile

# Marcel Kreuzberg

Last seen: 1 month ago Active since 2019

All

#### Content Feed

View by

I get different results for the product of two matrices?
change results(2,np)=mean(u(:,np)-mean(u(:,np)).*w(:,np)-mean(w(:,np))); to results(2,np)=mean( (u(:,np)-mean(u(:,np))) .* (w...

1 year ago | 0

| accepted

1 year ago | 0

Why am I getting error : "Line: 21 Column: 1 Illegal use of reserved keyword "variables".
'end' missing after outputs block (before variables) regards Marcel

2 years ago | 0

| accepted

I have Day, Month, Year, Hour and Minute in different columns, how to combine in a datetime format (17-Oct-2019 00:00)?
try Second = zeros(53715,1); Year = Year+2000; t = datetime(Year,Month,Day,Hour,Minute,Second,'Format','dd-MMM-yyyy hh:mm'); ...

4 years ago | 0

detect Circles and squares on the image using regionprops
try this I = imread('test.png'); imshow(I); I = rgb2gray(I); I = im2bw(I,0.01); [L ,num] = bwlabel(I); stats1 = regionprop...

4 years ago | 0

| accepted

Loop to write data in excel from 1 st iteration to n th iteration
for t = 0:1:10 a = cos(t).*[2 3;4 5] b = cos(t).*[6 5;4 6] c = a+b d = eig(c) r = 2*3*d w(:,t+1) = r end csvwrite(...

4 years ago | 0

| accepted

How can i plot this graph?
clear clc clf x = -0.5:0.001:1.8; f2=mod(x,1); f1=mod(-0.5*cos(2*pi*-x),1); plot(x,f1,'.'); hold on plot(x,f2,'.'); hol...

4 years ago | 1

How to print data from cell array to a text file ?
try fprintf(fid ,'%d %f \r\n', FINALSHEET{1,1}{row,:},FINALSHEET{1,2}{row,:});

4 years ago | 0

| accepted

What is the meaning of any_image(:,w:-1:1) in MATLAB
w:-1:1 start with w step -1 till 1 6:-1:1 -> 6 5 4 3 2 1

4 years ago | 0

| accepted

Adding 2 values of old vector into new vector of half size
b = a(1:2:end) + a(2:2:end) (this is not working for uneven amount of inputs)

4 years ago | 0

| accepted

Largest number in Matlab
65535 127

4 years ago | 0