Réponse apportée
Matlab color vector change
I'm going to assume that this homework assignment is past-due, so I'm just going to dump the pending answer so I can clear out m...

environ 4 ans il y a | 0

Réponse apportée
how to use matlab matrix to solve kirchholff circuits?
I was purging my notes and found I still had a pending solution. I guess the homework is long past due, so this is no longer an...

environ 4 ans il y a | 0

Réponse apportée
can anyone help me to correct the matlab code?
Just a guess, but f1 and f2 are undefined. If i change them to ff1 and ff2, the code runs: u2 = -(omegaf-alpha +beta*x1.^2 +...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How can I give different colors to each x, y and z coordinate points?
You'll have to figure out how you want to rescale the data to fit standard data range for a color table, but you can do somethin...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Standard Deviation of Portfolio with NaN values
You should be able to take the std of the non-NaN elements alone: A = [rand(10,1); NaN]; std(A) % includes NaN std(A,'omit...

environ 4 ans il y a | 0

Réponse apportée
Hi, I am a beginner in image processing. My program gives only a smaller angle at the vertices, but I need inner angle at each vertex. How can I fix this issue in my code?
There are probably simpler ways, but here's one way: I = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files...

environ 4 ans il y a | 1

Réponse apportée
How to make the grey area completely black, so it's a binary image?
The mask that was used to create the hole in the image is the binarized image. You shouldn't need to turn the source image into...

environ 4 ans il y a | 0

Réponse apportée
how to extract value of pixel in an image to csv file
Since you never said how you want it formatted, I'm going to assume it doesn't matter. A = imread('peppers.png'); writematrix(...

environ 4 ans il y a | 0

Réponse apportée
How do I draw the Museum of Contemporary Art building by Oscar Niemeyer?
Oh that's easy. sky = [0 0;600 0;600 450;0 450;0 0]; mountains = [0 297;48.9 296;78.9 294;155 283;209 293;239 308;261 307;269 ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
I want to make a double type matrix into an image
Maybe this is a start. A = rand(175,50,432); % some array A = permute(A,[2 3 1]); % now it's oriented as specified % do whate...

environ 4 ans il y a | 0

Réponse apportée
how to increase the brightness of an image?
KSSV already gave the answer that most people need, but I like to throw (somewhat) generalized reference answers on old question...

environ 4 ans il y a | 2

Réponse apportée
How can i enlarge displayed images in a figure ?
The problem has nothing to do with imshow(). It's two things: it's basic geometry default subplot() behavior wastes tons of ...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How do I average individual values across multiple cells?
This is one way: % create an example cell array of numeric matrices a = [10 20; 30 40]; CC = {a+randn(2,2) a+randn(2,2); ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Turning iteratively all elements after and above a '1' into '0'-s starting from the left bottom corner
This might not be particularly efficient, but maybe it's one way (if i'm interpreting it right): A = [0 0 0 0 0 0 1 0 0 0...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Scan a data file for data after keywords
I'm sure there are better ways of doing this, but this is one way. alltext = fileread('testfile.txt'); alltext = split(alltext...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Combine and sorting array values
Maybe something like: A = [3 9 4]; B = [3 8 4 8 15 5 16 1 16 2 16 7 17 6 17 2]; ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Insufficient number of outputs from right hand side of equal sign to satisfy assignment
This isn't really an answerable question, but maybe this is something close: % nobody knows what happens here for j=1:length %...

environ 4 ans il y a | 0

Réponse apportée
Plotting a graph with different colors depending on different vectors
Depends what your data is and what you actually want. Are you thinking of an area plot? n = 6; A = 0.5*rand(n,1) + 0.5; B = ...

environ 4 ans il y a | 0

Réponse apportée
How to access a element of a dynamically created array
Just use an array BS = 3; area = 300; BSx = [area*(rand(BS,2) - 0.5) ones(BS,1)]

environ 4 ans il y a | 2

| A accepté

Réponse apportée
Write a for loop that converts the Data (Data.data) in the text file into matrix of 13 by 31 or 31 by 13.
This should be one way: alltext = split(fileread('Textfile.txt'),newline); allnums = regexp(alltext(1:end-1),'(?<=:\s*)[+-E\d]...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Why can't MATLAB resize an image nicely?
For passers-by: Normally, imshow() displays images using nearest-neighbor interpolation. That leads to thin features disappear...

environ 4 ans il y a | 0

Réponse apportée
Does Matlab support reading JXR files? (JPEG XR from Microsoft)
I would say the answer is no. It's not supported by imread(), and I don't see any submissions on the File Exchange. Normally...

environ 4 ans il y a | 0

Réponse apportée
What the binary language which MATLAB deals with it to convert text to binary ?
Start with textchar = 'Hello world'; textbin = dec2bin(double(textchar),8) if you want that as a logical array, then textlog...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Error in imread function
Files that start with a dot are hidden files, possibly temporary files. Who knows where they came from or if they're actually r...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to convert an image back to a data matrix?
Here. AA = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/962410/example.png'); imshow(AA) % get posi...

environ 4 ans il y a | 0

Réponse apportée
How to implement a sliding window with a condition
You can probably just use movmin(). R = rand(100,1); th = 0.5; w = 2; exceeds_th = movmin(R,w)>th; [R exceeds_th] You ...

environ 4 ans il y a | 0

Réponse apportée
Improfile of images in cell array in for loop
I have no idea how your cell array is shaped (is it actually a 4D cell array?) and there's no indication where the variable 'al'...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How can I automatically insert the name for the created plot from the original file name?
This might be a start: fname = 'CH4 S10.csv'; dataset = readmatrix(fname); sensnum = str2double(regexp(fname,'(?<=S)\d*(?=....

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to store the difference between adjacent pixel values of image
If all you want is the difference in one direction, then just use diff(). A = randi([0 255],10); dAdx = diff(A,1,2); histo...

environ 4 ans il y a | 0

Réponse apportée
Characters are fuzzy. Where do these fonts come from?
Well, this shows up like extra-fuzzy garbage in the forum editor due to the figure resizing, so I don't know if this demonstrate...

environ 4 ans il y a | 0

Charger plus