How to solve incosistent scientific format ?

Hi guys, im facing trouble when i use 'strcmp'. I was trying to get a data from variable "Stepnum" when its "R3Plastic" is 3,673E-06. But i only have string "3,673e-06" which is automatic created in previous calculation.
how to fix the text-formatting scientific, want to make it fix only using "E"

1 Kommentar

Stephen23
Stephen23 am 8 Mär. 2024
Verschoben: Stephen23 am 11 Mär. 2024
Do not convert to text and compare text.
Compare the numeric values. Best of all by comparing the absolute difference against a tolerance:
abs(A-B)<tol

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 8 Mär. 2024

1 Stimme

1 Kommentar

Arif
Arif am 11 Mär. 2024
hey thank you so much. u solved my problem. But what is the difference ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Polymers finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 8 Mär. 2024

Verschoben:

am 11 Mär. 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by