Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
how i can fix this axes error ?
You are not declaring axes(handles.plotaxes); after if val==2

fast 13 Jahre vor | 0

Beantwortet
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.

fast 13 Jahre vor | 2

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 2

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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) ...

fast 13 Jahre vor | 2

Beantwortet
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...

fast 13 Jahre vor | 1

Beantwortet
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...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 1

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 2

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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]...

fast 13 Jahre vor | 1

Beantwortet
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...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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,...

fast 13 Jahre vor | 1

Beantwortet
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...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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(): ...

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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) ...

fast 13 Jahre vor | 0

| akzeptiert

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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...

fast 13 Jahre vor | 0

Beantwortet
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); ...

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

Mehr laden