photo

David Sanchez


Last seen: presque 2 ans il y a Actif depuis 2013

Followers: 0   Following: 0

Message

Physicist, working as control engineer for a wind turbine manufacturer. Professional Interests: control,optimization, computer vision, robotics, renewable energies.

Programming Languages:
Python, C++, C, MATLAB
Spoken Languages:
English, French, Spanish
Professional Interests:
Control Systems, Physics, Engineering, Renewable Energy

Statistiques

All
  • MATLAB Central Treasure Hunt Finisher
  • 12 Month Streak
  • Pro
  • Revival Level 1
  • Knowledgeable Level 5
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
why is it not plotting or graph? it comes out blank
Hi there, if you run your code by blocks, after finishing the first while loop, you end up having: x = 0 0.5000 ...

environ 2 ans il y a | 0

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

environ 2 ans il y a

Réponse apportée
Create a plot with values from matrices of many dimensions.
Hi Stelios, it seems you are trying to plug 4D matrices into the surfc function, and as you mention: surfc: "Value must be a ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
How to save data in for loop to excel
Hi Jidapa, type in your matlab terminal doc xlswrite This will give you lots of information about how to do it. As an example...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Control systems failing to plot
Hi Daniel, your problem has definitely to do with your PC for sure. As you mention, the code works in your colleagues machines (...

plus de 2 ans il y a | 0

Réponse apportée
i can not figure out what is wrong with my code,when i call my function it does show eny outpout
Hi Tasos, your nested "ff" conditions only contemplate cases for temp(i) equal to 10, 20, 30 or 40. When temp(i) is differente t...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Cut Sinusoidal signal in a integer number of periods
Hi, bear in mind that the sampling of your curve might play an important role in the game. The code below might help you out: ...

presque 5 ans il y a | 1

| A accepté

Réponse apportée
State observer bode plot
Hi, I'm sure that you can find an example similar to your problem in the Bode documentation: https://mathworks.com/help/ident/...

presque 5 ans il y a | 0

| A accepté

Réponse apportée
How I can split a matrix in four matrixes
M = rand(1001,3); % your matrix L = size(M,1); % L = number of rows n = floor(L/4); % number of rows for your matrices ...

presque 8 ans il y a | 0

Réponse apportée
Respected sir, i have code for extracting ROI from dorsal hand image, my problem is to read and save multiple images from folder. in following code only single image has read and save but i want multiple images to read and save please help me.
Hi, firstly, your way of asking the question does not make it easy to help you. Your code presentation is really annoying, but ...

environ 8 ans il y a | 1

| A accepté

Réponse apportée
Saving a file with name of reference of other file name ?
Hi, it all depends on how the user introduces the *.stl file name, but taking for granted that the name is somehow available to ...

environ 8 ans il y a | 0

Réponse apportée
I have a 6000x9424x50 matrix and want to convert it into 6000x9424x10 and 6000x9424x20?? I meant to to split 50 bands to 10 or 20 bands individually?
your_matrix = rand(6000,9424,50); % random matrix M_10 = your_matrix(:,:,1:10); % 10 bands M_20 = your_matrix(:,:,11...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
How do I index within a structure?
% dummy struct your_struct.field_1 = rand(5,1); your_struct.field_2 = rand(5,1); % array with field-mean your_...

plus de 8 ans il y a | 1

Réponse apportée
Set image roi to zero
If _I_ is your image I(201:210,201:210) = 0;

plus de 8 ans il y a | 0

Réponse apportée
Clean way to find which elements of categorical array are part of a set of labels
I think you are looking for this: data = {'a', 'b', 'c', 'b', 'a'} ; members = {'a','b'}; ismember(data,membe...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
How do I ajust the vallues the X-axis of a mesh (Z,Y,X) plot?
hi, adjust this example to your needs: [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; ...

plus de 8 ans il y a | 0

Réponse apportée
Apply code on matlab files in different directories ?
From Documentation: path(path,'newpath') adds the newpath folder to the end of the search path. If newpath is already on the ...

presque 9 ans il y a | 0

Réponse apportée
How to execute fft and ifft
Hi thereb, the sine wave is right there, but the problem is that after FFTing the your _y_ data, _YfreqD_ contains half the sam...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
changing names of files
% Renaming a File in the Current Folder % In the current folder, rename oldname.m to newname.m: % movefile('oldname.m','...

presque 9 ans il y a | 0

Réponse apportée
the code wont display an answers calculated
Hi there, after reordering your code, I saw it follows this structure: method=='f' --> n= 1,2,3,other_value meth...

presque 9 ans il y a | 0

Réponse apportée
Adding phase noise in simple signal
Hello Kutru, I do not know exactly what were you expecting to find in your plots. The difference in your plots is only the nois...

presque 9 ans il y a | 0

Réponse apportée
The expression to the left of the equals sign is not a valid target for an assignment.
You are using the notation used by numeric::int instead of that to int Take a look at their differences in the ...

environ 9 ans il y a | 0

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

environ 9 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

environ 9 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

environ 9 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 9 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

environ 9 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

environ 9 ans il y a

Réponse apportée
how can store multiple value in a matrix??
ncadre=15; nbclasse=1000; load('D:\Documents\MATLAB\classifieur1.mat'); load('D:\Documents\MATLAB\classifieur2.mat');...

environ 9 ans il y a | 0

| A accepté

Réponse apportée
Efficient Frontier code error
Watch the last line of code: print portfolio03.ps - deps ; Mind the blank space right before deps simply delete it: ...

environ 9 ans il y a | 0

| A accepté

Charger plus