Réponse apportée
converting .jpeg or matlab fig image to stl or cad format
This link provides a .m to write .stl files from matlab data. http://www.mathworks.com/matlabcentral/fileexchange/20922-stlwrit...

environ 13 ans il y a | 0

Réponse apportée
how i can fix this axes error ?
You are not declaring axes(handles.plotaxes); after if val==2

environ 13 ans il y a | 0

Réponse apportée
How to change the shape of Static/Edit text box in GUI?
It is not possible to change the shape of edit boxes to circular.

environ 13 ans il y a | 2

| A accepté

Réponse apportée
Multiple Bode plots on same graph, how to plot phase ?
[mag_A phase_A] = bode(sys_A,W); [mag_B phase_B] = bode(sys_B,W); subplot(2,1,1) semilogx(W,mag_A);hold on semilog...

environ 13 ans il y a | 2

| A accepté

Réponse apportée
Hi, i have a AVR robotics kit,...and a usb programmer for programming it..i need to control the robot using matlab....ca u please help ????thanx in advance...
When you connect your kit to USB port, it'll be assign a COM number ( COM2, COM12...whatever, check it out). Create a serial ob...

environ 13 ans il y a | 0

Réponse apportée
improve speed --- image matrix replace
1st: initialize w1 w1 = zeros(nx,ny,3); The two inner loops do not make use of _k_, the outer loop index. Why do you hav...

environ 13 ans il y a | 0

Réponse apportée
changing position of numbers in a vector
Andrei's answer maybe the best choice, but in case you want to see what's behind: A=zeros(1,6); for k=1:size(A,2) ...

environ 13 ans il y a | 2

Réponse apportée
How can i import numerical data from non-tabular text file in MAtLAB?
fid=fopen('test.txt'); C=textscan(fid,'%s%s%s%s%s%s%s%s','delimiter','\n'); % read each line in string format fclose(fid...

environ 13 ans il y a | 1

Réponse apportée
How can i import numerical data from non-tabular text file in MAtLAB?
If test.txt is your txt file, the following code will create a cell C whose cell contains your data ( all of it ). You can itera...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
what is the problem of my 'for loop' in a matrix?
You are using a struct as input variable for _isnan_ function. This _isnsn_ does not work with structs. Follow your code upwar...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Elementwise multiplication, function definition
Hi, try your code like this: [x, y] = meshgrid( linspace(0,400,400),linspace(0,30000,400) ); A1 = -8.269000000000000; ...

environ 13 ans il y a | 0

Réponse apportée
if i resize an image is there any possibility is there to loss any information in the original image?
Once you resize the image, obviously, you have to pay the price, and it comes to information. You'll be loosing pixels, since th...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Saving Plots to a Folder with the Title Name
name = 'my_name'; for k = 1:3 name_2 = strcat(name,num2str(k)); h=figure; plot(x(k),y(k)); % your data ther...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Displaying images in the axes of GUI
When showing the images, set the 'Parent' property of the imshow function to the handle of the axis. Ex: if you have axes tagge...

environ 13 ans il y a | 2

Réponse apportée
Problem plotting a 3-D function
Well, I think you are having a scale issue. Your z1 is right, and the way to plot your data as well is right, but bear in mind t...

environ 13 ans il y a | 0

Réponse apportée
Problem plotting a 3-D function
try to hold on the current figure and change your point of view: % Define the input grid clc, clear, close all [x, y]...

environ 13 ans il y a | 1

Réponse apportée
how to access Cell data
my_cell = cell(10,1); % write into a cell for k=1:size(my_cell,1) my_cell{k,1} = rand; end % read the c...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
I want to add grid on my image in matlab GUI
Image Analyst is right. I simplified the code to this: I = imread('cameraman.tif'); imshow(I) hold on M = size(I,...

environ 13 ans il y a | 1

Réponse apportée
Displaying the size of cell array
The number of elements in _Template_ is small enough as to show them all. In case of _Records_, the numbers of elements is too b...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
I want to add grid on my image in matlab GUI
You get a vertical line because you are plotting a vertical line. The values of both elements of your x array are the same ...

environ 13 ans il y a | 0

Réponse apportée
How to work on "for loop" to save different column variable values to single vector?
for i=1:4 VEd(k) = [Ed1(i) Ed2(i) Ed3(i) Ed4(i) Ed5(i) Ed6(i) Ed7(i) Ed8(i) Ed9(i) Ed10(i) Ed11(i) Ed12(i) Ed13(i) Ed14(i...

environ 13 ans il y a | 0

Réponse apportée
I have a mx3 matrix which is string format, I'm assigning this matrix by set(handles.listbox, 'String', matrix) into the listbox. How can I change space between the columns?
It would be clearer if you gave some extended code. If you have string data, you can add some blank spaces using horzcat(): ...

environ 13 ans il y a | 0

Réponse apportée
How to display result
Use the {}Code option, please, that would help a lot in telling code from comment. Did you try figure(2) before disp...

environ 13 ans il y a | 0

Réponse apportée
How to Create a tool so that with a click of a button the Image gets segmented
Create a GUI with the GUIDE tool help guide will tell you more. Once you create a simple GUI with a button or whatever...

environ 13 ans il y a | 0

Réponse apportée
Send SERIAL commands from MATLAB GUI to Arduino
I would delete the while.serial from arduino code and do it as: void loop() { if (Serial.available()>0) ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Send SERIAL commands from MATLAB GUI to Arduino
Hello, the problem is not what Arduino sends to your PC serial port, but how you try to read it. What Matlab function are you us...

environ 13 ans il y a | 0

Réponse apportée
Importing a foler of CSV files into matlab
Are your CSVs in the working directory? my_csvs = dir('*.CSV') should return a struct array with a field called "name", hosting...

environ 13 ans il y a | 0

Réponse apportée
why code using parallel processing has longer running time than the other?
Try your code in this way: matlabpool open local 2 tic spmd x=magic(100); y=magic(100); ...

environ 13 ans il y a | 0

Réponse apportée
How to deal with for loop
N_matrices = 50; % number of matrices total = zeros( size(Z(1) ); % initialization of total a...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
How to deal with for loop
N_matrices = 50; % number of matrices total = zeros( size(Z(1) ); % initialization of total addition f...

environ 13 ans il y a | 0

Charger plus