Réponse apportée
how to draw perpendicular line on angular line..
You can use _line_ and swap the Y-coordinate values to get the perpendicular line: line([2 5],[3 7]) hold on line([2 ...

plus de 12 ans il y a | 0

Réponse apportée
creating a temporary file in specified directory
You can import a file from wherever directory it is. Just point to the full direction: importdata('D:\my_dir1\mydir2\my_Dat...

plus de 12 ans il y a | 0

Réponse apportée
cost funtion between observed and measured .
From Matlab documentation: In general, diff(X) returns the differences calculated along the first non-singleton (size(X,d...

plus de 12 ans il y a | 0

Réponse apportée
Remove NaNs in matrices within cell array
for single line solution, A. Abdelmalek's is the solution. You can perform the same by using the following: A = [3 NaN NaN...

plus de 12 ans il y a | 1

Réponse apportée
Displaying rise time on a plot
Select the data tick option on the plot window: <</matlabcentral/answers/uploaded_files/4138/p1.png>> <</matlabcentr...

plus de 12 ans il y a | 0

Réponse apportée
how to do it...
Option 1: my_data_time = xlsread('your_excell.xls','A1:A10'); % first column my_data_pressure = xlsread('your_excell.xls...

plus de 12 ans il y a | 0

Réponse apportée
how we can change an image into gray scale? and how to detect humps in an given road image?
start by grayscaling your image: I = rgb2gray(your_RGB_image); The hump-detection algorithm is not trivial, but that's t...

plus de 12 ans il y a | 0

Réponse apportée
i want to know how to find the size of original image & compressed image..
Use _size_ for it. [rows cols layers] = size(your_image); % where your_image is the name you gave to your image when readin...

plus de 12 ans il y a | 0

Réponse apportée
How can I set up an RGB threshold
There are easy ways to do this, but if you MUST use for loops and if conditionals: [image_R, image_G, image_B] = seperate_R...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Significance of curve Fit
You should perform a Fast Fourier Transform ( _fft_ ), this will present the frequencies that are present in your data. If it is...

plus de 12 ans il y a | 1

Réponse apportée
How to do band pass filtering?
%By-pass filter with trnasfer function ( change as you please) % 1000 s %-------------------------- %100 s^2 + 11000 ...

plus de 12 ans il y a | 0

Réponse apportée
How do I solve a cable equation problem using MATLAB?
YOu need to use _pdepe_ function: function to solve partial derivative equations. For a good example, go to <http://www.math...

plus de 12 ans il y a | 0

Réponse apportée
Need help with textscan
Your are mixing strings with doubles. Try this out. You'll end up with a cell array containing the heading and the first three d...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
plotyy is not working properly???
Your code is right, I run it and it works for me with no problem. Besides, it is from matlab documentation, for which it should ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Iam new to matlab... Beginner..
rows = input('Enter matrix size: '); % user input end_cell = strcat(char(65+rows),num2str(rows)); range = strcat('A1:',e...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
help me on image blending ??
If both images have the same size, you can add one into the other: I1 = image_1; I2 = image_2; I_blended = I1 + I2;

plus de 12 ans il y a | 0

Réponse apportée
creating a .res with 2 variables side by side (2 columns)
x = 0:.1:1; A = [x; exp(x)]; fileID = fopen('exp.res','w'); fprintf(fileID,'%6s %12s\n','x','exp(x)'); fprintf...

plus de 12 ans il y a | 0

Réponse apportée
How can I fit my data to an inverse tangent function?
x = [0.7 0.8 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2 2.1 2.2 2.3 2.4,2.6]; y = [10 11 15 15 15 17 20 25 34 47 75 100 140 15...

plus de 12 ans il y a | 0

Réponse apportée
I keep getting an error about my inputs in a function I am trying to create?
function output = dim_check(dimension,name) output = dimension; 'name' = name % ---------> this is the cause of you...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How do I split a color image into its 3 RGB channels?
my_rgb = my_image; R = my_rgb(:,:,1); G = my_rgb(:,:,2); B = my_rgb(:,:,3);

plus de 12 ans il y a | 3

Réponse apportée
position of the element have small value
A= [ 3 4 5 6 7; 1 2 4 9 4; 5 3 0 7 6; 6 0 1 8 5; 2 9 8 1 3]; [C I] = min(A,[],1); C is the array of min...

plus de 12 ans il y a | 0

Réponse apportée
First fscanf(s) returns an empty array.
You say "almost" every first reading of the serial port returns an empty array. That could mean that there's nothing in the buff...

plus de 12 ans il y a | 0

Réponse apportée
how can i paste a cropped head of one image into another?
I = imread('cameraman.tif'); head = I( (35:85),(100:140) ); % crop of the head % code to transform head here I( (...

plus de 12 ans il y a | 0

Réponse apportée
Find local differences in a matrix
For k=2:3 D = cmap(:,k) - cmap(:,k-1); end

plus de 12 ans il y a | 0

Réponse apportée
Installing R2013a on Mountain Lion
Make sure the installation files are executable. Use _chmod_ as sudo if not. I had a similar problem that was solved once some f...

plus de 12 ans il y a | 0

Réponse apportée
subtraction of two images
You can not subtract images with different sizes the same way you can not subtract arrays with different lengths: a=[1 2 3...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Double Slider, Two slide bars
There is not. You have to code it yourself.

plus de 12 ans il y a | 1

Réponse apportée
How to change axis legend orientation
You can try this link: <http://www.mathworks.com/matlabcentral/fileexchange/27812-rotate-x-axis-tick-labels/content/rotateXLabe...

plus de 12 ans il y a | 0

Réponse apportée
shared library in linux/ubuntu issue
Did you change the ownership of the file and its access permissions? ( unix commands _chmod_ _chown_)

presque 13 ans il y a | 0

Charger plus