Réponse apportée
want a rows to split into multiple rows
I don't see why reshape() wouldn't work A = ones(1,90); A = reshape(A,3,30)

plus de 4 ans il y a | 0

Réponse apportée
How to keep roi points visible when replotting
Whenever you draw a new image with imshow(), and definitely when you clear the axes, the roi object gets deleted. You'll have t...

plus de 4 ans il y a | 1

| A accepté

Question


Guidelines for appropriate moderation?
This question is a bit twofold. I keep seeing "answers" like this: They tend to take one of two forms: Terse, often single-...

plus de 4 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
Zero out values ​​from a specific row in a matrix
Depends if you want before or after. Since there's no specified mechanism to determine which, I'm assuming they're separate cas...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
how to extract a value with a specific character out of an character array
I'm not sure which extra emails should be rejected. I'm going to assume that all other emails get rejected emails = {'someone,...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Extract float from a filename
Well I guess this is one way. There are probably more elegant ways of unpacking the nested cell array and converting to numeric...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to replace letters with numbers in matrix
Here's one way: m = 'D2F1C2A3B2B1C2A1C2F2D2B3C3A2F1A2F1C1F2A1A1A3F1D1B2B1B2B2D3D1F1F3D2C2D3A1A2'; m2 = replace(m,{'A','B','C',...

plus de 4 ans il y a | 0

Réponse apportée
How can I remove the line for nan in my ploting
This is one way mdot = 115; % Source Strength g/s U = 6.82; % Wind speed m/s h = 80; % Stack Height (m) Sh = 20; % Plume Ri...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Save figures in png format
This lists multiple methods to maximize a figure window. The suggestions depend on version and environment, so take note of tha...

plus de 4 ans il y a | 0

Réponse apportée
What is the reason while plotting sinc function in mathematical it is cutting at 0 why ? what is the difference
What do you mean "plotting ... in mathematical"? If you're just comparing the MATLAB sinc() function against sin(x)/x or sin(pi...

plus de 4 ans il y a | 0

Réponse apportée
How to dynamically create multiple column vectors?
How about something like this? M = 5; % Number or elements in each vector L = 1000; % Number of column vectors N = M+L; a ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Keep always on top
Similar to Jan's suggestion, you can always do the window management with ... your window management tools. Jan's recommendati...

plus de 4 ans il y a | 1

Réponse apportée
Define origin and length of the Strel function
No need for strel(). A = false(7); A(4,4) = true st1 = [1 1 1 0 0 ]; B1 = imdilate(A,st1) st2 = [0 0 1 1 1]; B2 = imdila...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Convert vector loop to matrix loop
You mean like this? c = rand(1,900); x = zeros(100,900); y = x; for k = 1:99 x(k+1,:) = x(k,:) + 0.4*cos(20)/0.226*pi +...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
moving mean over 5 cells
Well yeah I imagine it's off by a factor of 1/5 ... because you're dividing the mean by 5.

plus de 4 ans il y a | 0

Réponse apportée
How to solve this, why is it giving an error?
It's not really clear what you're intending. What are your integration limits? If I assume that you're integrating over [-1....

plus de 4 ans il y a | 0

Réponse apportée
I am getting an error using interp1
Strip out all the multiply-defined points: color_1 = [0.7411, 0, 0.1490]; color_2 = [0.9412, 0.2314, 0.1255]; color_3 = [0.99...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
how to get common range between 20 intervals?
Finding a non-empty intersection is easy enough, so I'm going to concentrate on the latter part of the question. I'm sure there...

plus de 4 ans il y a | 1

Réponse apportée
How to fill array with value 0 if function returns empty []
I hardly ever use symbolic tools, so I'm sure someone knows a better way. Just paying attention to the output alone, this is on...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Line colour and style
Without data, I'm just going to strip out everything that's irrelevant. This is a routine demonstration of the fact that lege...

plus de 4 ans il y a | 0

Réponse apportée
How to Crop and get SSIM Value apply on two images
If it's assumed that there is no scale or rotation transformation, then you can go ahead and try to align the images. load coi...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Look up a value in an incomplete list
How about: keys = ["a", "b", "c", "d"]; vals = [1,2,3,4]; x = ["c", "d", "e"]; [~,y] = ismember(x,keys); y(y==0) = NaN

plus de 4 ans il y a | 0

Réponse apportée
How to concatenate 3D matrixes effectively/fast
... why not just concatenate them? ntables=10 nlines=10 ncolumns1=10 ncolumns2=15 ncolumns3=20 ncolumns4=25 ncolumns5=30 ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
using a viridis colormap
Use scatter() instead of plot(). The behavior of viridis() is otherwise the same as the built-in functions like jet(). N = 20;...

plus de 4 ans il y a | 1

Réponse apportée
Intercept of each line to y-line
Consider the example: Data=[ 0.11 0.3 0.28 0.6 0.31 0.23 0.78 0.57 1.08 0.43 0.26 0.95 0.84 1.25 0.46 0.55 ...

plus de 4 ans il y a | 0

Réponse apportée
Using regexp to extract data
You haven't clearly stated what you want it to match and not match. I'm going to assume that you want it to match "n1" follow...

plus de 4 ans il y a | 0

Réponse apportée
How to change color of graph after a certain temperature in GUI while live recording
What exactly does the plotting routine currently look like? Without knowing, I'm going to assume you're just plotting unconne...

plus de 4 ans il y a | 0

Réponse apportée
Block sub diagonals matrix
If my interpretation is correct, this should be one method: bksize = [2 2]; % smaller for example A = ones(bksize); B = 11*...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
create variables' name in pattern
If your files may vary in size/depth/class, use a loop to read them into a cell array instead. If you create a bunch of named...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to draw a ball by plot3?
I choose to assume that a request to plot a solid volume with a line/point plotting tool should suggest that the usage of the te...

plus de 4 ans il y a | 1

| A accepté

Charger plus