Réponse apportée
3D Matrix to 2D Matrix
Hi Adnan 1. generating test matrices Y=randi([-10 10],2,2,4) YT=zeros(8,8) YT([1 2],[1 2])=Y(:,:,1) YT([...

plus de 9 ans il y a | 1

Réponse apportée
System identification Windkessel - pulse wave
Hi David 1. I have simulated the circuit of your question in ADS and I get the following transient <</matlabcentral/ans...

plus de 9 ans il y a | 0

Réponse apportée
Crop an image using coordinate
Hi Hu A=imread('im1.jpg');imshow(A) <</matlabcentral/answers/uploaded_files/71376/001.jpg>> p=ginput(2) p...

plus de 9 ans il y a | 10

Réponse apportée
How to reshape two cell arrays of strings into a cell array of cell arrays
Hi Paolo the following has the same size and type as the result of your for loop A=reshape({row1{:} row2{:}},2,8...

plus de 9 ans il y a | 0

Réponse apportée
plotting function over interval
Hi Marien 1. the new function *fplot* works, although with a speed warning, that is not that critical a=62; b=95; ...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
how to save multiple figure without displaying
Yu Li why don't you just save the variables, [x,y] for each plot BEFORE plotting in a .mat file? if you find this answer...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
How to calculate the mean of the values of the elements of several arrays according to polygons of a shapefile. And how to fill these values in the dbf of the shepefile.
Hi Denilson one way to calculate the mean values of such sets belonging to same matrix is mean(A(mask)) let me r...

plus de 9 ans il y a | 0

Réponse apportée
Splitting a large vector into smaller ones of random size
Hola Paco tal y como se indica en el HELP del MATLAB, si sigues las recomendaciones indicadas, 'evalin' es un comando muy p...

plus de 9 ans il y a | 1

Réponse apportée
How to plot specific rows and columns from a matrix?
Hi Ian 1. generating test matrix A=randi([0 100],50); imshow(uint8(A)) <</matlabcentral/answers/uploaded_files/...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How does the command unique work?
Hi Haroon it does return the unique values sorted out, but what perhaps confuses you is the amount of output arguments you ar...

plus de 9 ans il y a | 9

| A accepté

Réponse apportée
how to make a colum of multiple 1 to 5. i want to make column vector of [1;1;1;1;1;1;1;1;1;1;1;1;1;1;2;2;2;2;2;2;2;2;2;2;2;2;2;2;3;3;3;3;3;3;3;3;3;3;3;3;3]. is there any way to make this kind of vector instead of typing this many times.
thanks Guillame for pointing that out Hi Pooja Patel even easier 1. for the data given in the question A=[ones(1,1...

plus de 9 ans il y a | 1

Réponse apportée
Simple question, array of strings
Walter is right, with no additional details, type cell is the preferred class for building arrays of varying length strings: ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
how to make a colum of multiple 1 to 5. i want to make column vector of [1;1;1;1;1;1;1;1;1;1;1;1;1;1;2;2;2;2;2;2;2;2;2;2;2;2;2;2;3;3;3;3;3;3;3;3;3;3;3;3;3]. is there any way to make this kind of vector instead of typing this many times.
even easier A=[ones(1,1) 2*ones(1,20) 3*ones(1,50)]' if you find this answer useful would you please be so kind to mark ...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
Array with a changing sequence
Hi Y.U. I like composing signals, so I hope you like this one: % time frame t0=7200 nx=[1:1:t0]; % allocating ...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to add up multiple values at every co-ordinate.
thanks for attaching the images showing what you get so far and what you expect. Are you reading with MATLAB from XML format ...

plus de 9 ans il y a | 0

Réponse apportée
How can I write a matlab code for three index summation? Please help me.
John with the additional details perhaps the following would qualify to accepted answer 1. for 1 product B=[2 1;3 ...

plus de 9 ans il y a | 0

Réponse apportée
How to add up multiple values at every co-ordinate.
Alexandra understanding that contourf(LIG6.Fer(:,:,1)'); is a matrix 3x3xN where N is constant or varies from Lat Lo...

plus de 9 ans il y a | 0

Réponse apportée
How can I write a matlab code for three index summation? Please help me.
John d=4;c=2;p=3; Q=randi([-10 10],d,c,p) B=randi([-10 10],d,c) C=randi([-10 10],d,c,p) beta=randi([-...

plus de 9 ans il y a | 0

Réponse apportée
how to calculate signal to noise ratio for a sound recorded by microphone?
to tell if a place is noisy, pros usually measure dBA: on a microphone with known reception diagram, weighted air pressure...

plus de 9 ans il y a | 3

Réponse apportée
How do I write a function which computes the first n values of factorial k using a for loop?
Hi Haley please have a look at the recursive implementation of factorial with anonymous functions. iif = @(varargin) var...

plus de 9 ans il y a | 0

Réponse apportée
How to create a silhouette from image
Hi Brenton please help me out and tell if I am on the right direction 1. capture A=imread('etiquette.jpg'); % f...

plus de 9 ans il y a | 0

Réponse apportée
How to plot the values from while loop? I got blank graph
Hi Mr Lee now your script plots theta=input('Enter the launch angle in degrees:'); TimeIncrement=input('Enter the t...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How to draw a log function?
is this what you are after? clc close all warning off z = @(x) 10.^(-.3+(1.75*log10(x))); y = @(x) (10.^-.3)*(x...

plus de 9 ans il y a | 2

Réponse apportée
scatter randomized points with circles
Hi Marwen Here are 2 functions that solve the question, not randomly guessing points from the entire area, but excluding grad...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Executing the while loop
Hi DIP I agree with Rahul You can get the loop to spin more times by increasing the error threshold. 1. .. er...

plus de 9 ans il y a | 1

Réponse apportée
How to get RGB of each pixel of grain
Hi Mahirah A start point for your RGB coding could be the following 1. RGB A=imread('001.jpg'); title('init...

plus de 9 ans il y a | 1

A soumis


Scatter Points complying minimal distance
rectangle W H scatter fixed amount circles or saturating rectangle complying minimal distance

plus de 9 ans il y a | 1 téléchargement |

0.0 / 5
Thumbnail

Réponse apportée
Is there a way to extract a specific element adjacent to an element that you specify in a matrix and change it. So I would like to extract 0 adjacent to 153 in this matrix. | 0 0 0 0 | | 0 153 0 0 | | 0 0 0 0 |
Let's focus on providing working MATLAB code to the people originating questions. Ahmed function [val perx pery]=perimet...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
Getting rid of for loop in one-liner code
Sakil ok for a matrix, look: A=[1 2;3 4];n=[1:1:10];L=A(:);B=reshape(bsxfun(@power,L,n),[size(A),10]) the...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
Solve the system of equations
A=[1 2 0 0 4 3 -6 0 0 5 -1 9 0 0 7 7]; b=[1;2;0;0]; since det(A)==0 = 0 the operator ...

plus de 9 ans il y a | 1

| A accepté

Charger plus