Réponse apportée
How to smoothen contourf plot to make it look better
You need to use a finer mesh if you want the contour to appear smoother. This is complicated by the fact that all I have is a b...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
want to draw a graph of a derivative
Something like this: % parameters rmax = 262; Wmax= 10.6*pi; % create values x = -rmax:rmax; y = x.'; rsq = (x.^2 + y.^...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to create a matrix with special block diagonal structure
Here's one way. I'm sure there are plenty of others. n = 8; sz = sum(1:n); A = zeros(sz); idx0 = 1; for k = 1:n A(i...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
multiply values in different rows
I'm going to guess that this is what you're after: A = [2 3 1 4; 8 5 2 3; 1 2 6 7; 6 8 4 1]; B = [0.1; 0.5; 0.4; 0.2]; C = [1...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
hey can any one help me with this error?
Okay, then that's what I suspected. Move the function section into its own file and save it. You can't have the function insid...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
HOW TO ADD MSE TO EXISTING TOOL (CODE)?
Use immse() A = imread('peppers.png'); % some reference image B = imnoise(A,'gaussian',0.001); % a modified copy immse(A,B)...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
i have create a figure like circle
Try something like this. % parameters rmax = 262; Wmax= 10.6*pi; % create values x = -rmax:rmax; y = x.'; rsq = (x.^2...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to find the center of matrix
This seems fairly straightforward. % a test array F = zeros(5); F(2,2) = 10; F(4,4) = 10; % global sum of F Ft = sum(F(:...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Draw a solid bounded by many surface
These answers demonstrate one possible method for plotting the truncated surfaces. It's up to you to apply it to your assignmen...

environ 4 ans il y a | 0

Réponse apportée
How to formulate the following vector?
Something like this should work: V = reshape([1:size(R,2); R(4,:)],1,[]);

environ 4 ans il y a | 0

Réponse apportée
Plot Boxes then Plot them in the original photo ?
The above comment should suffice if all you want is to plot with polyshape. If you actually want to modify the image without ch...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
I want to imread multiple selected files via uigetfile
This assumes that the images are all simple I/RGB images (not indexed images, no RGBA images or multiframe GIFs) [fname dirname...

environ 4 ans il y a | 0

Réponse apportée
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
Well, I skimmed a bunch of these threads (you might have noticed) and I didn't see anything about this sort of thing, so I'll ju...

environ 4 ans il y a | 1

Réponse apportée
how to split a string
To address the OP's particular request: linew = 4; teststr = '123456789'; excess = rem(numel(teststr),linew); output = res...

environ 4 ans il y a | 0

Réponse apportée
convert vector of character to number
Are the inputs always single characters? Are the inputs only A or B? Are the inputs always letters? Does case matter? Here's...

environ 4 ans il y a | 0

Réponse apportée
multi-dimensional array - summing the layers (combining)
To sum along a given dimension: dim3sum = sum(val,3);

environ 4 ans il y a | 1

| A accepté

Réponse apportée
showing warning in command window
Yes, as I mentioned, you need to rename that file or move it somewhere off the search path so that MATLAB doesn't try to use it....

environ 4 ans il y a | 0

Réponse apportée
Please explain the following line
Without any context, all anyone can give is an answer without context. min(inp(:)) % this is the global minimum of inp max(in...

environ 4 ans il y a | 0

Réponse apportée
i have an error in imshow
You likely have a user-created file called image.m somewhere on the path. You can try to see what is on the path by doing whic...

environ 4 ans il y a | 0

Réponse apportée
Fading/shading an image
A 'multiply' blend is one of the simple and fundamental kinds of image blending. If you have appropriate images to begin with a...

environ 4 ans il y a | 0

Réponse apportée
delete an element from string
How do you intend to identify the thing you want to delete? Do you simply want to delete the second string in the array? str...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
help on graph (w/o common matrix plotting built-in functions)
In the spirit of ridiculousness, here is my attempt: % random binary data data = randi([0 1],10,10) data = 1 1 ...

environ 4 ans il y a | 0

Réponse apportée
how to convert rgb to hsi
MATLAB has no tools for HSI or HSL. There are tools on the File Exchange. The ones I use are here: https://www.mathworks.com/...

environ 4 ans il y a | 0

Réponse apportée
How to find mean Hue and mean Saturation of an HSI image not HSV image?
MATLAB has no tools for HSI or HSL. There are tools on the File Exchange. The ones I use are here: https://www.mathworks.com/...

environ 4 ans il y a | 0

Réponse apportée
Highlighting a Region of interest and getting the average Hue value ?
Taking the mean of hues is not as simple as described, and it's likely an unnecessary complication. H is a circular continuum. ...

environ 4 ans il y a | 0

Réponse apportée
row that increases more every element
Here's my guess: A = randi([10 20], 1,10) B = cumsum(A) % cumulative sum of A

environ 4 ans il y a | 0

Réponse apportée
extracting mean pixel value from an image
This might be a start, but bear in mind how fragile this will be if the colors change or the swatch becomes rotated or something...

environ 4 ans il y a | 2

| A accepté

Réponse apportée
Masking multiple parts of image
As for creating a mask with multiple circular regions, you can use the ROI tools. You could do this interactively something l...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How to change white on the outside to black?
Some of the objects are connected to the surrounding white blob. You'll need to deal with that. You might be able to do someth...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Can I convert shades of red (Pink, Red, Maroon) in this RGB image to one single color, lets say blue?
Greetings from the distant future. Since the question leaves some details unknown and OP likely no longer needs the answer, I'm...

environ 4 ans il y a | 0

Charger plus