Réponse apportée
Create and combine quiver and contour plots
contourf(x,y,sqrt(vx.^2 + vy.^2));

plus de 11 ans il y a | 0

Réponse apportée
Writing function that ether gives as a result or that uses a two-dimensional array as input?
It is very easy to use arrays in Matlab. Just open a new file "myfun.m", define a function function y = myfun(x) y = 2*y; ...

plus de 11 ans il y a | 0

Réponse apportée
Help regarding "Attempted to access gainx(0.0101768); index must be a positive integer or logical." error.
Matlab needs * to denote multiplikation: gainx = 1 - gainx*(1-R); Does this solves your problem?

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Combined value of different arrays with constraints
result = nan(size(p_th)); for t=1:length(p_th) if ismember(p_th(t), A) result(t) = p_th(t) - p_c(t) - constant_a; ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
A Problem with log10
You overwrite Matlabs log10 function with your log10 matrix; rename it and everything should work fine.

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Remove element from cell array completely
handles.guideGUI(15) = [];

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
How to create a 2D circular intensity plot?
Define your X Y Cartesian coordinates with meshgrid, convert to radius and angle R = sqrt(X^2 + Y^2); A = atan2(Y, X); ...

plus de 11 ans il y a | 1

Réponse apportée
Specify file to be called from command line (.m/.p)
No, you can't run the mfile if a pfile of the same name is in the same directory as the mfile: When you call a P-code file, ...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
How to sort file when reading them with dir ?
Convert each filename to the corresponding number (strip leading doc_ and trailing .txt, then use double); next, sort the number...

plus de 11 ans il y a | 0

Réponse apportée
How to skip a parameter in a function? ex: A = fread(obj,size,'precision') without size.
Supply an empty argument; the function should use the default instead: fread(fid, [], 'uint8') (for fread you can just dr...

plus de 11 ans il y a | 2

Réponse apportée
Can you modify the code provided on given link.?
Just convolve your data with the filter F = [0 1 0; 1 0 1; 0 1 0]/4; You can use imfilter for the convolution.

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Image analysis with 688x520 images works, but same program produces nonsense for 1101x832 images
Maybe there are some variables set from your first analysis. Use clear and rerun your second analysis.

plus de 11 ans il y a | 0

Réponse apportée
Can you help me about this problem?
Lines like r21y -r21x -r22y r22x 0 0 0 0 1; have just 9 colums: r21y -r21x -r22y r22x 0 0...

plus de 11 ans il y a | 0

Réponse apportée
How to store loop values into array?
You can use cell arrays to store variables of different sizes. Like V{i}(j)= y(j+1) - y(j); And something is probably wro...

plus de 11 ans il y a | 0

Réponse apportée
find cannot read all values in .mat file
Try lo=[ -5.2:0.1:8]'; la=[49:-0.1:42.4]'; to get _all_ values at 0.1 spacing.

plus de 11 ans il y a | 0

Réponse apportée
what is the difference between YCbCr and YCuCv models?
From http://en.wikipedia.org/wiki/YCbCr Y′CbCr is often confused with the YUV color space, and typically the terms YCbCr and...

plus de 11 ans il y a | 0

Réponse apportée
how to convert RGB image into YCuCv model by using reversible colour transform ?
See https://en.wikipedia.org/wiki/JPEG_2000#Color_components_transformation I = imread('peppers.png'); R = I(:,:,1); G = ...

plus de 11 ans il y a | 0

Réponse apportée
how to extract Y channel from YCuCv image?
See https://en.wikipedia.org/wiki/JPEG_2000#Color_components_transformation I = imread('peppers.png'); R = I(:,:,1); G =...

plus de 11 ans il y a | 1

Réponse apportée
How to set up Compiler Configuration?
When you run mex -setup you generate a personal mexopts.bat in your prefdir. Copy this to the system default lccopts.bat should ...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How do I use a for-loop to do fft and plot the power?
May be that's because they are the same? I get different curves using random input. BTW: note that n is always 1000 in your c...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
How can I write a program to make someone input a 6 digit number and show a result of the summation of the 6 digits?
Convert the number to a string, and then convert each character of the string to the corresponding value (using arrayfun to work...

plus de 11 ans il y a | 0

Réponse apportée
Subscripted assignment dimension mismatch
The term exp(-UFR*i) is indepent of t, so you could compute it as for i = 1:length(extrapolatedmaturities) expUFR(i) = e...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
find cannot read all values in .mat file
If you change the number of intermediate values in your linspace function you probably get some values that are not contained in...

plus de 11 ans il y a | 0

Réponse apportée
Strange Undefined variable or control error for a function
Have you double-checked that your control.m is seen by Matlab? What does >> which control shows before you type >> c...

plus de 11 ans il y a | 0

Réponse apportée
How to detect SURF features on image in matlab?
You probably have to convert the image to double I = im2double(I); or (without the Image Processing TB) I = double(...

plus de 11 ans il y a | 0

Réponse apportée
Import and format CSV file
You can use num= 48.68; num1= floor(num); num2= (num - num1)*1000;

plus de 11 ans il y a | 0

Réponse apportée
How do I import Data from a different folder?
Easy as addpath('C:\xx\xx\data_folder\composite1.dat')

plus de 11 ans il y a | 0

Réponse apportée
Fzero with defined scalar parameters
If FUN is parameterized, you can use anonymous functions to capture the problem-dependent parameters. Suppose you want to ...

plus de 11 ans il y a | 3

Réponse apportée
Distance from point to plane
Plane= [-37.7423 -74.6518 1.6262 -33.1443 -72.8633 1.6262 -33.6488 -70.8894 62.1935 -38.2...

plus de 11 ans il y a | 0

Charger plus