[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.6490274 [DELETED]  [View]
File: 33 KB, 560x420, matlab_1.gif [View same] [iqdb] [saucenao] [google]
6490274

Hey guys
Any one that uses Matlab? my code gives me
the following error:Undefined function 'imoverlay' for input arguments of type 'uint8'.
and I'm about to cry cause I don't know how to solve this shit.

This is my code:
%read the picture and convert
%it to .tiff file
I = imread('bath.jpeg');
imwrite(I, 'bath.tiff');
figure, imshow(I);

%turn the image in grayscale
%for two dimensional convertion
%to apply edge detection
J = rgb2gray(I);
threshold = graythresh(J);
figure, imshow(J);

%apply edge detection
ED = edge(J,'canny');
figure, imshow(ED);

OV = imoverlay(J,ED, [0 255 0]);
figure, imshow(OV);

>> No.5994936 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5994936

can we have a collection of Matlab tutorials?

>> No.5786521 [View]
File: 33 KB, 560x420, matlab_logo[1].gif [View same] [iqdb] [saucenao] [google]
5786521

>> No.5653925 [View]
File: 33 KB, 560x420, matla.gif [View same] [iqdb] [saucenao] [google]
5653925

Guys could any one help me with the following code: I need to plot a vector and a plan perpedicular to it in matlab and keep running in to issues, could some one post sample code ?

>> No.5619412 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5619412

Alright guys, I need a way to reiterate some code for a set number of times. I would very much appreciate any help you can give me. If it isn't obvious by the pic, the language is matlab.

>> No.5500384 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5500384

Do any of you guys know where I can get a free copy of MATLAB? Right now if we're on our own laptops/computers we have to connect to the schools linux server to access MATLAB and it's painfully slow and uses the Linux operating system, which I personally don't like. Can any of you guys help me out?

>> No.5484885 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5484885

I've been messing around with Matlab a little bit recently. I'm migrating from Mathematica so I'm a bit confused - is Matlab not capable of letting me define variables with other variables? I can't seem to define, say, y=x+2. Does this mean Matlab can't take derivatives, either? I thought transitioning from Mathematica to Matlab would be easy but I'm finding it very different

>> No.5424317 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5424317

http://www.youtube.com/watch?v=91RZYO1cv_o

>> No.5329242 [View]
File: 33 KB, 560x420, 1123581321.gif [View same] [iqdb] [saucenao] [google]
5329242

Just curious

How much is MatLab used in the real world, we've just finished our first semester on it and it seems useful for simple things but how much is it used in a professional environment?

Thanks

>> No.5280468 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5280468

I know it's a stretch asking it here but, I can't copy
anything from Matlab simulink to word because the copy model to clipboard isn't available. What do I do? I can't find anything on the net related to this problem

>> No.5273577 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5273577

function [dft2d]=dft2D(f)
[M, N]=size(f);
u=1;
v=1;
for x=1:M
for y=1:N
F(u,v)=f(x,y)*exp(-j*2*pi*(u*x/M + v*y/N));
v=v+1;
end
u=u+1;
end
F(u,v)=F(u,v)/(M*N);

??? Error using ==> times
Complex integer arithmetic is not supported.

How fucked am I?

>> No.5266774 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5266774

I'm doing an image processing assignment in MATLAB and need to use a 2-d fft, but do it from scratch. I used the command "edit fft2" in the command window to view what the MATLAB function does, itself, but it uses fft, and when I check what fft does, it won't give me the code MATLAB uses for that particular function and the nuances involved (is there zero padding, etc.). I can't see inside functions using the documentation unless they're in a toolbox, apparently.
Does anyone know how to view it?

>> No.5248041 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5248041

How does one take an array in MATLAB of 8 bit integers and output a grayscale image?

I'm running an older version of MATLAB (2010) and it's being a nuisance.

>> No.5211308 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5211308

I'm no longer a student though.

>> No.5201316 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5201316

>>5201046
85MS was my highschool calculator...
oh sweet memories. The keys rubbed off but I can still remember the functions.

>>5201274
God tier indeed. 4 years of EE through this.

>pic related: this is my calculator now.

>> No.5189355 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5189355

Anyone want to help me out and write a script in MatLab for the following problem:
A worker is paid according to his hourly wage up to 40 hours, and 55% more for overtime. Write a program in a script file that calculates the pay to a worker. The program asks the user to enter the number of hours and the hourly wage. The program then displays the pay. Test your program on two cases: (a) 30 hours and $8 hourly wage (b) 52 hours and $9 hourly wage. Show the program and the two testing results.

Anyone who helps would have my undying gratitude.

>> No.5130123 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
5130123

I prefer MATLAB and Simulink. LabVIEW just doesn't seem as intuitive.

>> No.4885937 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
4885937

meshgrid-> to generate 2d matrices for plotting
surf,mesh, -> plot 3d surfaces

if you want to draw lines: plot3

>> No.4855211 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
4855211

matlab nub reporting in.

I need some help on creating this loop:
for a=1:3,
for b=1:3,
x=5*d
end
end
where d varies depending on a and b, for example i would define d11,d12,d13,d21,d22,d23,d31,d32,d33 and for case a=1 b=1 i would need to load d11, for a=2 b=1 gotta load d21 and so on...any way to achieve this?

>> No.4641509 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
4641509

>>4641495
damn right you can. There was something similiar done in rats. Essentially, part of a rat's brain was running in MatLab.

So yeah, you can do ANYTHING in MatLab.

>> No.4524595 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
4524595

>>4524553
This sounds very interesting.
Recently /b/ introduced force ID, it expires after every 24 hours (or so I think).
We can test our algo to identify /b/tards from each day into the next.

>> pic related, just installed this.

>> No.4510032 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
4510032

newfag reporting in.

i have to write an .m file (matlab) about solving this (x-3)sin(x)/7 with secant method. can you help me /sci/ ? thank you.

(i do not know anything about matlab)

>> No.4486079 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
4486079

Hello everyone, I have a little problem with a Simulink (Matlab) application. After using a user-defined function block, at the compilation moment it tells me:

"Unable to locate 'mexopts.bat', and therefore cannot determine which compiler to use for simulation builds.
Use 'mex -setup' to select a supported compiler."

I just installed it and do not know what that message means, I did use the mex-setup command but it does not show any choice for compilators. Does any of you know what my problem is? and how to deal with it?

Thank you in advance for your help

>> No.4422435 [View]
File: 33 KB, 560x420, matlab_logo.gif [View same] [iqdb] [saucenao] [google]
4422435

I have a vector in matlab that is 502 entries long. I want to shrink it to 236 entries long, but keep the overall shape of the vector. How do I do this?

Navigation
View posts[+24][+48][+96]